tablet headline row layout updates

This commit is contained in:
Andrew Dolgov 2012-12-31 13:25:23 +04:00
parent c3e8c5c4b1
commit 6510295056
4 changed files with 45 additions and 76 deletions

View File

@ -50,15 +50,6 @@
android:textColor="?headlineExcerptTextColor"
android:textSize="13sp" >
</TextView>
</LinearLayout>
<LinearLayout
android:id="@+id/linerLayout3"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="center"
android:orientation="vertical"
android:padding="3dip" >
<TextView
android:id="@+id/date"
@ -66,8 +57,19 @@
android:layout_height="wrap_content"
android:text="Jan 01"
android:textColor="?headlineExcerptTextColor"
android:textSize="13sp" >
</TextView>
android:textSize="11sp"
android:textStyle="italic" />
</LinearLayout>
<LinearLayout
android:id="@+id/linerLayout3"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginRight="15px"
android:gravity="center"
android:orientation="vertical"
android:padding="3dip" >
<LinearLayout
android:id="@+id/linearLayout4"
@ -95,16 +97,4 @@
</LinearLayout>
</LinearLayout>
<ImageButton
android:id="@+id/article_menu_button"
android:layout_width="50dp"
android:layout_height="wrap_content"
android:layout_gravity="right"
android:background="@android:color/transparent"
android:paddingBottom="4dp"
android:paddingRight="4dp"
android:paddingTop="4dp"
android:scaleType="fitEnd"
android:src="@drawable/ic_mailbox_collapsed_holo_light" />
</LinearLayout>

View File

@ -39,7 +39,6 @@
android:textColor="?headlineSelectedTextColor"
android:textSize="16sp"
android:textStyle="bold" >
</TextView>
<TextView
@ -50,15 +49,6 @@
android:textColor="?headlineSelectedExcerptTextColor"
android:textSize="13sp" >
</TextView>
</LinearLayout>
<LinearLayout
android:id="@+id/linerLayout3"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="center"
android:orientation="vertical"
android:padding="3dip" >
<TextView
android:id="@+id/date"
@ -66,8 +56,19 @@
android:layout_height="wrap_content"
android:text="Jan 01"
android:textColor="?headlineSelectedExcerptTextColor"
android:textSize="13sp" >
</TextView>
android:textSize="11sp"
android:textStyle="italic" />
</LinearLayout>
<LinearLayout
android:id="@+id/linerLayout3"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginRight="15px"
android:gravity="center"
android:orientation="vertical"
android:padding="3dip" >
<LinearLayout
android:id="@+id/linearLayout4"
@ -95,16 +96,4 @@
</LinearLayout>
</LinearLayout>
<ImageButton
android:id="@+id/article_menu_button"
android:layout_width="50dp"
android:layout_height="wrap_content"
android:layout_gravity="right"
android:background="@android:color/transparent"
android:paddingBottom="4dp"
android:paddingRight="4dp"
android:paddingTop="4dp"
android:scaleType="fitEnd"
android:src="@drawable/ic_mailbox_collapsed_holo_light" />
</LinearLayout>

View File

@ -50,15 +50,6 @@
android:textColor="?headlineExcerptTextColor"
android:textSize="13sp" >
</TextView>
</LinearLayout>
<LinearLayout
android:id="@+id/linerLayout3"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="center"
android:orientation="vertical"
android:padding="3dip" >
<TextView
android:id="@+id/date"
@ -66,8 +57,19 @@
android:layout_height="wrap_content"
android:text="Jan 01"
android:textColor="?headlineExcerptTextColor"
android:textSize="13sp" >
</TextView>
android:textSize="11sp"
android:textStyle="italic" />
</LinearLayout>
<LinearLayout
android:id="@+id/linerLayout3"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginRight="15px"
android:gravity="center"
android:orientation="vertical"
android:padding="3dip" >
<LinearLayout
android:id="@+id/linearLayout4"
@ -95,16 +97,4 @@
</LinearLayout>
</LinearLayout>
<ImageButton
android:id="@+id/article_menu_button"
android:layout_width="50dp"
android:layout_height="wrap_content"
android:layout_gravity="right"
android:background="@android:color/transparent"
android:paddingBottom="4dp"
android:paddingRight="4dp"
android:paddingTop="4dp"
android:scaleType="fitEnd"
android:src="@drawable/ic_mailbox_collapsed_holo_light" />
</LinearLayout>

View File

@ -641,8 +641,8 @@ public class HeadlinesFragment extends Fragment implements OnItemClickListener,
if (te != null) {
String excerpt = Jsoup.parse(articleContent).text();
if (excerpt.length() > 100)
excerpt = excerpt.substring(0, 100) + "...";
if (excerpt.length() > 200)
excerpt = excerpt.substring(0, 200) + "...";
te.setText(excerpt);
}