1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-11-16 22:45:04 -05:00

- Added 1dip bottom margin to "number of starred messages" in account and folder list (looks nicer with dark theme)

- Prettified folder_list_item.xml
This commit is contained in:
cketti 2010-04-26 22:22:23 +00:00
parent d082809524
commit 02f4d08396
2 changed files with 51 additions and 46 deletions

View File

@ -80,6 +80,7 @@
android:layout_alignParentBottom="true" android:layout_alignParentBottom="true"
android:layout_alignRight="@+id/new_message_count" android:layout_alignRight="@+id/new_message_count"
android:layout_gravity="bottom" android:layout_gravity="bottom"
android:layout_marginBottom="1dip"
android:paddingTop="6dip" android:paddingTop="6dip"
android:paddingBottom="4dip" android:paddingBottom="4dip"
android:paddingLeft="10dip" android:paddingLeft="10dip"

View File

@ -3,42 +3,44 @@
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent" android:layout_width="fill_parent"
android:layout_height="?android:attr/listPreferredItemHeight" android:layout_height="?android:attr/listPreferredItemHeight"
android:paddingRight="4dip"
android:orientation="horizontal" android:orientation="horizontal"
android:gravity="center_vertical" android:gravity="center_vertical" >
android:background="@android:color/transparent"
android:paddingRight="4dip">
<View <View
android:id="@+id/chip" android:id="@+id/chip"
android:background="@android:color/transparent"
android:layout_width="4dip" android:layout_width="4dip"
android:layout_height="fill_parent" android:layout_height="fill_parent"
android:layout_centerVertical="true" android:layout_centerVertical="true"
android:layout_alignParentLeft="true" android:layout_alignParentLeft="true" />
/>
<LinearLayout <LinearLayout
android:layout_width="0dip" android:layout_width="fill_parent"
android:layout_height="fill_parent" android:layout_height="wrap_content"
android:layout_weight="1" android:layout_weight="1"
android:orientation="vertical" android:orientation="vertical"
android:gravity="center_vertical" android:paddingLeft="6dip" >
android:paddingLeft="6dip">
<TextView <TextView
android:id="@+id/folder_name" android:id="@+id/folder_name"
android:textAppearance="?android:attr/textAppearanceLarge"
android:textColor="?android:attr/textColorPrimary"
android:layout_width="fill_parent" android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:singleLine="true" android:singleLine="true"
android:ellipsize="end" android:ellipsize="end"
android:layout_height="wrap_content" /> android:textColor="?android:attr/textColorPrimary"
android:textAppearance="?android:attr/textAppearanceLarge" />
<TextView <TextView
android:id="@+id/folder_status" android:id="@+id/folder_status"
android:textAppearance="?android:attr/textAppearanceSmall"
android:textColor="?android:attr/textColorTertiary"
android:layout_width="fill_parent" android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:singleLine="true" android:singleLine="true"
android:ellipsize="end" android:ellipsize="end"
android:layout_height="wrap_content" /> android:textColor="?android:attr/textColorTertiary"
android:textAppearance="?android:attr/textAppearanceSmall" />
</LinearLayout> </LinearLayout>
<RelativeLayout <RelativeLayout
android:id="@+id/active_icons" android:id="@+id/active_icons"
android:layout_width="wrap_content" android:layout_width="wrap_content"
@ -49,45 +51,47 @@
android:paddingLeft="6dip" android:paddingLeft="6dip"
android:paddingRight="6dip" android:paddingRight="6dip"
android:gravity="right" android:gravity="right"
android:clickable="true" android:clickable="true" >
>
<TextView <TextView
android:id="@+id/folder_unread_message_count" android:id="@+id/folder_unread_message_count"
android:ellipsize="end" android:layout_width="wrap_content"
android:singleLine="true" android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceMedium" android:layout_gravity="top"
android:textColor="#ffffff" android:layout_alignParentTop="true"
android:textStyle="bold"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/envelope"
android:paddingTop="4dip" android:paddingTop="4dip"
android:paddingBottom="4dip" android:paddingBottom="4dip"
android:paddingLeft="10dip" android:paddingLeft="10dip"
android:paddingRight="10dip" android:paddingRight="10dip"
android:gravity="right" android:gravity="right"
android:layout_gravity="top" android:singleLine="true"
android:layout_alignParentTop="true" android:ellipsize="end"
android:clickable="true" android:textAppearance="?android:attr/textAppearanceMedium"
/> android:textColor="#ffffff"
android:textStyle="bold"
android:background="@drawable/envelope"
android:clickable="true" />
<TextView <TextView
android:id="@+id/folder_flagged_message_count" android:id="@+id/folder_flagged_message_count"
android:ellipsize="end" android:layout_width="wrap_content"
android:singleLine="true" android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceSmall" android:layout_gravity="bottom"
android:textColor="#000000" android:layout_alignParentBottom="true"
android:background="@drawable/btn_star_big_buttonless_on" android:layout_alignRight="@+id/folder_unread_message_count"
android:layout_width="wrap_content" android:layout_marginBottom="1dip"
android:layout_height="wrap_content" android:paddingTop="6dip"
android:paddingTop="6dip"
android:paddingBottom="4dip" android:paddingBottom="4dip"
android:paddingLeft="10dip" android:paddingLeft="10dip"
android:paddingRight="10dip" android:paddingRight="10dip"
android:gravity="right" android:gravity="right"
android:layout_gravity="bottom" android:singleLine="true"
android:layout_alignParentBottom="true" android:ellipsize="end"
android:layout_alignRight="@id/folder_unread_message_count" android:textAppearance="?android:attr/textAppearanceSmall"
android:clickable="true" android:textColor="#000000"
/> android:background="@drawable/btn_star_big_buttonless_on"
android:clickable="true" />
</RelativeLayout> </RelativeLayout>
</LinearLayout> </LinearLayout>