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

Adjunct to the new variable font sizes, allow the Account list and

Folder list items to vary in size based on the font sizes.
This commit is contained in:
Daniel Applebaum 2010-05-02 04:54:09 +00:00
parent 9eadd15c09
commit 6e9145f037
5 changed files with 23 additions and 5 deletions

View File

@ -2,9 +2,10 @@
<LinearLayout <LinearLayout
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="wrap_content"
android:orientation="horizontal" android:orientation="horizontal"
android:paddingRight="6dip" android:paddingRight="6dip"
android:paddingBottom="2dip"
android:gravity="center_vertical" > android:gravity="center_vertical" >
<View <View
@ -80,6 +81,7 @@
android:layout_alignParentBottom="true" android:layout_alignParentBottom="true"
android:layout_gravity="bottom" android:layout_gravity="bottom"
android:layout_marginBottom="1dip" android:layout_marginBottom="1dip"
android:layout_below="@id/new_message_count"
android:paddingTop="6dip" android:paddingTop="6dip"
android:paddingBottom="4dip" android:paddingBottom="4dip"
android:paddingLeft="10dip" android:paddingLeft="10dip"

View File

@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_height="fill_parent"
android:layout_width="fill_parent">
<ListView
android:id="@android:id/list"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
/>
</LinearLayout>

View File

@ -2,7 +2,7 @@
<LinearLayout <LinearLayout
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="fill_parent"
android:background="@drawable/message_list_item_footer_background" android:background="@drawable/message_list_item_footer_background"
android:gravity="left" android:gravity="left"
android:orientation="horizontal"> android:orientation="horizontal">

View File

@ -2,8 +2,9 @@
<LinearLayout <LinearLayout
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="wrap_content"
android:paddingRight="4dip" android:paddingRight="4dip"
android:paddingBottom="2dip"
android:orientation="horizontal" android:orientation="horizontal"
android:gravity="center_vertical" > android:gravity="center_vertical" >
@ -16,9 +17,10 @@
<LinearLayout <LinearLayout
android:layout_width="fill_parent" android:layout_width="fill_parent"
android:layout_height="wrap_content" android:layout_height="fill_parent"
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
@ -78,6 +80,7 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_gravity="bottom" android:layout_gravity="bottom"
android:layout_alignParentBottom="true" android:layout_alignParentBottom="true"
android:layout_below="@id/folder_unread_message_count"
android:layout_marginBottom="1dip" android:layout_marginBottom="1dip"
android:paddingTop="6dip" android:paddingTop="6dip"
android:paddingBottom="4dip" android:paddingBottom="4dip"

View File

@ -256,6 +256,7 @@ public class FolderList extends K9ListActivity
super.onCreate(savedInstanceState); super.onCreate(savedInstanceState);
requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS); requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS);
setContentView(R.layout.folder_list);
mListView = getListView(); mListView = getListView();
mListView.setScrollBarStyle(View.SCROLLBARS_OUTSIDE_INSET); mListView.setScrollBarStyle(View.SCROLLBARS_OUTSIDE_INSET);
mListView.setLongClickable(true); mListView.setLongClickable(true);