Improved tablet main screen layout.

Reduced thumbnail size so that more items can be displayed at the same time.
This commit is contained in:
daniel oeh 2013-10-03 14:48:54 +02:00
parent 088878fcfd
commit 483ddecca6
3 changed files with 28 additions and 17 deletions

View File

@ -10,8 +10,12 @@
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"
android:numColumns="auto_fit"
android:stretchMode="columnWidth"
android:numColumns="auto_fit"
android:verticalSpacing="4dp"
android:horizontalSpacing="4dp"
android:gravity="center"
android:columnWidth="@dimen/thumbnail_length"
tools:listitem="@layout/feedlist_item_grid" />
<TextView

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="wrap_content"
android:layout_height="wrap_content" >
android:layout_height="wrap_content">
<ImageView
android:id="@+id/imgvFeedimage"
@ -12,7 +12,7 @@
android:layout_margin="8dp"
android:adjustViewBounds="true"
android:cropToPadding="true"
android:scaleType="fitXY" />
android:scaleType="fitXY"/>
<LinearLayout
android:id="@+id/lEpisodeCounts"
@ -21,7 +21,7 @@
android:layout_alignRight="@id/imgvFeedimage"
android:layout_below="@id/imgvFeedimage"
android:layout_centerVertical="true"
android:orientation="vertical" >
android:orientation="vertical">
<RelativeLayout
android:id="@+id/lNewStatusLabel"
@ -30,7 +30,7 @@
android:layout_marginBottom="8dp"
android:layout_marginTop="4dp"
android:layout_weight="1"
android:background="@color/status_unread" >
android:background="@color/status_unread">
<ImageView
android:layout_width="wrap_content"
@ -38,7 +38,7 @@
android:layout_alignParentRight="true"
android:layout_centerVertical="true"
android:layout_marginRight="4dp"
android:src="@drawable/white_circle" />
android:src="@drawable/white_circle"/>
<TextView
android:id="@+id/txtvNewEps"
@ -52,7 +52,7 @@
android:minEms="2"
android:textColor="@color/white"
android:textSize="@dimen/text_size_micro"
android:textStyle="bold" />
android:textStyle="bold"/>
</RelativeLayout>
<RelativeLayout
@ -61,7 +61,7 @@
android:layout_height="0dip"
android:layout_marginBottom="8dp"
android:layout_weight="1"
android:background="@color/ics_gray" >
android:background="@color/ics_gray">
<TextView
android:id="@+id/txtvProgressEps"
@ -75,7 +75,7 @@
android:paddingLeft="4dp"
android:textColor="@color/white"
android:textSize="@dimen/text_size_micro"
android:textStyle="bold" />
android:textStyle="bold"/>
<ImageView
android:layout_width="10dp"
@ -84,7 +84,7 @@
android:layout_centerVertical="true"
android:layout_marginLeft="2dp"
android:layout_marginRight="2dp"
android:src="@drawable/av_play_dark" />
android:src="@drawable/av_play_dark"/>
</RelativeLayout>
</LinearLayout>
@ -94,7 +94,7 @@
android:layout_alignLeft="@id/imgvFeedimage"
android:layout_below="@id/imgvFeedimage"
android:layout_toLeftOf="@id/lEpisodeCounts"
android:orientation="vertical" >
android:orientation="vertical">
<TextView
android:id="@+id/txtvFeedname"
@ -104,22 +104,29 @@
android:layout_marginRight="8dp"
android:ellipsize="end"
android:lines="1"
android:textSize="@dimen/text_size_medium"
android:textStyle="bold" />
android:textSize="@dimen/text_size_small"
android:textColor="?android:attr/textColorPrimary"
android:textStyle="bold"/>
<TextView
android:id="@+id/txtvLastUpdate"
android:lines="2"
android:ellipsize="end"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textColor="?android:attr/textColorSecondary" />
android:textSize="@dimen/text_size_micro"
android:textColor="?android:attr/textColorTertiary"/>
<TextView
android:id="@+id/txtvNumEpisodes"
android:lines="1"
android:ellipsize="end"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="8dp"
android:layout_marginRight="8dp"
android:textColor="?android:attr/textColorSecondary" />
android:textSize="@dimen/text_size_micro"
android:textColor="?android:attr/textColorTertiary"/>
</LinearLayout>
</RelativeLayout>

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<dimen name="thumbnail_length">260dp</dimen>
<dimen name="thumbnail_length">170dp</dimen>
<dimen name="thumbnail_length_itemlist">70dp</dimen>
</resources>