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:
parent
9eadd15c09
commit
6e9145f037
5 changed files with 23 additions and 5 deletions
|
@ -2,9 +2,10 @@
|
|||
<LinearLayout
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="?android:attr/listPreferredItemHeight"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal"
|
||||
android:paddingRight="6dip"
|
||||
android:paddingBottom="2dip"
|
||||
android:gravity="center_vertical" >
|
||||
|
||||
<View
|
||||
|
@ -80,6 +81,7 @@
|
|||
android:layout_alignParentBottom="true"
|
||||
android:layout_gravity="bottom"
|
||||
android:layout_marginBottom="1dip"
|
||||
android:layout_below="@id/new_message_count"
|
||||
android:paddingTop="6dip"
|
||||
android:paddingBottom="4dip"
|
||||
android:paddingLeft="10dip"
|
||||
|
|
12
res/layout/folder_list.xml
Normal file
12
res/layout/folder_list.xml
Normal 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>
|
|
@ -2,7 +2,7 @@
|
|||
<LinearLayout
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
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:gravity="left"
|
||||
android:orientation="horizontal">
|
||||
|
|
|
@ -2,8 +2,9 @@
|
|||
<LinearLayout
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="?android:attr/listPreferredItemHeight"
|
||||
android:layout_height="wrap_content"
|
||||
android:paddingRight="4dip"
|
||||
android:paddingBottom="2dip"
|
||||
android:orientation="horizontal"
|
||||
android:gravity="center_vertical" >
|
||||
|
||||
|
@ -16,9 +17,10 @@
|
|||
|
||||
<LinearLayout
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_height="fill_parent"
|
||||
android:layout_weight="1"
|
||||
android:orientation="vertical"
|
||||
android:gravity="center_vertical"
|
||||
android:paddingLeft="6dip" >
|
||||
|
||||
<TextView
|
||||
|
@ -78,6 +80,7 @@
|
|||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="bottom"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:layout_below="@id/folder_unread_message_count"
|
||||
android:layout_marginBottom="1dip"
|
||||
android:paddingTop="6dip"
|
||||
android:paddingBottom="4dip"
|
||||
|
|
|
@ -255,7 +255,8 @@ public class FolderList extends K9ListActivity
|
|||
{
|
||||
super.onCreate(savedInstanceState);
|
||||
requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS);
|
||||
|
||||
|
||||
setContentView(R.layout.folder_list);
|
||||
mListView = getListView();
|
||||
mListView.setScrollBarStyle(View.SCROLLBARS_OUTSIDE_INSET);
|
||||
mListView.setLongClickable(true);
|
||||
|
|
Loading…
Reference in a new issue