Match task adapter row height to font size

pull/14/head
Sam Bosley 13 years ago
parent 4d535ea4fa
commit 762294778d

@ -3,18 +3,13 @@
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:astrid="http://schemas.android.com/apk/res/com.timsu.astrid"
android:layout_width="fill_parent"
android:layout_height="70dip"
android:layout_height="wrap_content"
android:minHeight="57dip"
android:paddingTop="2dip"
android:paddingBottom="2dip"
android:gravity="center_vertical"
android:orientation="horizontal">
<!-- importance -->
<View android:id="@+id/importance"
android:layout_width="4dip"
android:layout_height="fill_parent"
android:layout_marginRight="5dip" />
<!-- indent -->
<View android:id="@+id/indent"
android:layout_width="0dip"
@ -57,10 +52,11 @@
<LinearLayout
android:id="@+id/task_row"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_alignTop="@id/completeBox"
android:layout_height="wrap_content"
android:layout_toRightOf="@id/completeBox"
android:layout_centerVertical="true"
android:orientation="horizontal"
android:gravity="center_vertical"
android:paddingLeft="5dip" >
<!-- task name -->
@ -69,7 +65,7 @@
android:id="@+id/title"
style="@style/TextAppearance.TAd_ItemTitle"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_height="wrap_content"
android:layout_weight="100"
android:gravity="center_vertical"
android:maxLines="2" />
@ -79,7 +75,7 @@
<TextView
android:id="@+id/dueDate"
android:layout_width="wrap_content"
android:layout_height="fill_parent"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_marginRight="4dip"
android:gravity="center_vertical|right" />

@ -6,8 +6,8 @@
android:id="@+id/rowBody"
android:background="@android:drawable/list_selector_background"
android:layout_width="fill_parent"
android:layout_height="70dip"
android:minHeight="70dip" >
android:layout_height="wrap_content"
android:minHeight="57dip" >
<!-- completion check-box -->
<greendroid.widget.AsyncImageView
@ -48,6 +48,7 @@
android:layout_toRightOf="@id/completeBox"
android:layout_centerVertical="true"
android:orientation="horizontal"
android:gravity="center_vertical"
android:paddingLeft="2dip" >
<!-- task name -->
@ -66,7 +67,7 @@
<TextView
android:id="@+id/dueDate"
android:layout_width="wrap_content"
android:layout_height="fill_parent"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_marginRight="4dip"
android:gravity="center_vertical|right" />

Loading…
Cancel
Save