diff options
| -rw-r--r-- | api/current.txt | 2 | ||||
| -rw-r--r-- | core/res/res/layout/activity_list_item.xml | 4 | ||||
| -rw-r--r-- | core/res/res/layout/list_menu_item_layout.xml | 6 | ||||
| -rw-r--r-- | core/res/res/layout/select_dialog_item_holo.xml | 2 | ||||
| -rw-r--r-- | core/res/res/layout/simple_expandable_list_item_1.xml | 2 | ||||
| -rw-r--r-- | core/res/res/layout/simple_expandable_list_item_2.xml | 2 | ||||
| -rw-r--r-- | core/res/res/layout/simple_list_item_1.xml | 5 | ||||
| -rw-r--r-- | core/res/res/layout/simple_list_item_2.xml | 6 | ||||
| -rw-r--r-- | core/res/res/layout/simple_list_item_activated_1.xml | 2 | ||||
| -rw-r--r-- | core/res/res/layout/simple_list_item_activated_2.xml | 4 | ||||
| -rw-r--r-- | core/res/res/layout/simple_list_item_checked.xml | 6 | ||||
| -rw-r--r-- | core/res/res/layout/simple_list_item_multiple_choice.xml | 6 | ||||
| -rw-r--r-- | core/res/res/layout/simple_list_item_single_choice.xml | 6 | ||||
| -rw-r--r-- | core/res/res/layout/simple_selectable_list_item.xml | 6 | ||||
| -rwxr-xr-x | core/res/res/values/attrs.xml | 5 | ||||
| -rw-r--r-- | core/res/res/values/public.xml | 3 | ||||
| -rw-r--r-- | core/res/res/values/themes.xml | 4 |
17 files changed, 43 insertions, 28 deletions
diff --git a/api/current.txt b/api/current.txt index 8a643fd6dcd5..8e0684771dd8 100644 --- a/api/current.txt +++ b/api/current.txt @@ -958,6 +958,8 @@ package android { field public static final int textAppearanceLarge = 16842816; // 0x1010040 field public static final int textAppearanceLargeInverse = 16842819; // 0x1010043 field public static final int textAppearanceLargePopupMenu = 16843521; // 0x1010301 + field public static final int textAppearanceListItem = 16843688; // 0x10103a8 + field public static final int textAppearanceListItemSmall = 16843689; // 0x10103a9 field public static final int textAppearanceMedium = 16842817; // 0x1010041 field public static final int textAppearanceMediumInverse = 16842820; // 0x1010044 field public static final int textAppearanceSearchResultSubtitle = 16843424; // 0x10102a0 diff --git a/core/res/res/layout/activity_list_item.xml b/core/res/res/layout/activity_list_item.xml index 25d95fd74e5d..7022fe1858e3 100644 --- a/core/res/res/layout/activity_list_item.xml +++ b/core/res/res/layout/activity_list_item.xml @@ -22,8 +22,8 @@ android:layout_height="wrap_content" android:paddingTop="1dip" android:paddingBottom="1dip" - android:paddingLeft="6dip" - android:paddingRight="6dip"> + android:paddingLeft="8dip" + android:paddingRight="8dip"> <ImageView android:id="@+id/icon" android:layout_width="24dip" diff --git a/core/res/res/layout/list_menu_item_layout.xml b/core/res/res/layout/list_menu_item_layout.xml index aaff4c789a81..93bd76b732de 100644 --- a/core/res/res/layout/list_menu_item_layout.xml +++ b/core/res/res/layout/list_menu_item_layout.xml @@ -26,8 +26,8 @@ android:layout_weight="1" android:layout_height="wrap_content" android:layout_gravity="center_vertical" - android:layout_marginLeft="6dip" - android:layout_marginRight="6dip" + android:layout_marginLeft="16dip" + android:layout_marginRight="16dip" android:duplicateParentState="true"> <TextView @@ -36,7 +36,7 @@ android:layout_height="wrap_content" android:layout_alignParentTop="true" android:layout_alignParentLeft="true" - android:textAppearance="?android:attr/textAppearanceLarge" + android:textAppearance="?android:attr/textAppearanceListItemSmall" android:singleLine="true" android:duplicateParentState="true" android:ellipsize="marquee" diff --git a/core/res/res/layout/select_dialog_item_holo.xml b/core/res/res/layout/select_dialog_item_holo.xml index 0c700cfd1c97..3d19c06a147b 100644 --- a/core/res/res/layout/select_dialog_item_holo.xml +++ b/core/res/res/layout/select_dialog_item_holo.xml @@ -27,7 +27,7 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:minHeight="?android:attr/listPreferredItemHeightSmall" - android:textAppearance="?android:attr/textAppearanceMedium" + android:textAppearance="?android:attr/textAppearanceListItemSmall" android:textColor="?android:attr/textColorAlertDialogListItem" android:gravity="center_vertical" android:paddingLeft="16dip" diff --git a/core/res/res/layout/simple_expandable_list_item_1.xml b/core/res/res/layout/simple_expandable_list_item_1.xml index dc3e58e7f3a4..df4324b17f4a 100644 --- a/core/res/res/layout/simple_expandable_list_item_1.xml +++ b/core/res/res/layout/simple_expandable_list_item_1.xml @@ -19,6 +19,6 @@ android:layout_width="match_parent" android:layout_height="?android:attr/listPreferredItemHeight" android:paddingLeft="?android:attr/expandableListPreferredItemPaddingLeft" - android:textAppearance="?android:attr/textAppearanceLarge" + android:textAppearance="?android:attr/textAppearanceListItem" android:gravity="center_vertical" /> diff --git a/core/res/res/layout/simple_expandable_list_item_2.xml b/core/res/res/layout/simple_expandable_list_item_2.xml index b48b444e66d8..c0935fa282e5 100644 --- a/core/res/res/layout/simple_expandable_list_item_2.xml +++ b/core/res/res/layout/simple_expandable_list_item_2.xml @@ -27,7 +27,7 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginTop="6dip" - android:textAppearance="?android:attr/textAppearanceLarge" + android:textAppearance="?android:attr/textAppearanceListItem" /> <TextView android:id="@android:id/text2" diff --git a/core/res/res/layout/simple_list_item_1.xml b/core/res/res/layout/simple_list_item_1.xml index c9c77a5f9c11..252e006a307f 100644 --- a/core/res/res/layout/simple_list_item_1.xml +++ b/core/res/res/layout/simple_list_item_1.xml @@ -18,8 +18,9 @@ android:id="@android:id/text1" android:layout_width="match_parent" android:layout_height="wrap_content" - android:textAppearance="?android:attr/textAppearanceLarge" + android:textAppearance="?android:attr/textAppearanceListItem" android:gravity="center_vertical" - android:paddingLeft="6dip" + android:paddingLeft="8dip" + android:paddingRight="8dip" android:minHeight="?android:attr/listPreferredItemHeight" /> diff --git a/core/res/res/layout/simple_list_item_2.xml b/core/res/res/layout/simple_list_item_2.xml index c87922cef9b2..9b6c62a707fe 100644 --- a/core/res/res/layout/simple_list_item_2.xml +++ b/core/res/res/layout/simple_list_item_2.xml @@ -24,9 +24,9 @@ <TextView android:id="@android:id/text1" android:layout_width="match_parent" android:layout_height="wrap_content" - android:layout_marginLeft="6dip" - android:layout_marginTop="6dip" - android:textAppearance="?android:attr/textAppearanceLarge" + android:layout_marginLeft="8dip" + android:layout_marginTop="8dip" + android:textAppearance="?android:attr/textAppearanceListItem" /> <TextView android:id="@android:id/text2" diff --git a/core/res/res/layout/simple_list_item_activated_1.xml b/core/res/res/layout/simple_list_item_activated_1.xml index 8416df2632e5..d60f93b46a86 100644 --- a/core/res/res/layout/simple_list_item_activated_1.xml +++ b/core/res/res/layout/simple_list_item_activated_1.xml @@ -18,7 +18,7 @@ android:id="@android:id/text1" android:layout_width="match_parent" android:layout_height="wrap_content" - android:textAppearance="?android:attr/textAppearanceLarge" + android:textAppearance="?android:attr/textAppearanceListItem" android:gravity="center_vertical" android:background="?android:attr/activatedBackgroundIndicator" android:minHeight="?android:attr/listPreferredItemHeight" diff --git a/core/res/res/layout/simple_list_item_activated_2.xml b/core/res/res/layout/simple_list_item_activated_2.xml index 2ffbf0268233..5be5c9220547 100644 --- a/core/res/res/layout/simple_list_item_activated_2.xml +++ b/core/res/res/layout/simple_list_item_activated_2.xml @@ -27,8 +27,8 @@ <TextView android:id="@android:id/text1" android:layout_width="match_parent" android:layout_height="wrap_content" - android:layout_marginLeft="6dip" - android:layout_marginTop="6dip" + android:layout_marginLeft="8dip" + android:layout_marginTop="8dip" android:textAppearance="?android:attr/textAppearanceLarge" /> diff --git a/core/res/res/layout/simple_list_item_checked.xml b/core/res/res/layout/simple_list_item_checked.xml index 5f99044e58fd..79d3a18464e1 100644 --- a/core/res/res/layout/simple_list_item_checked.xml +++ b/core/res/res/layout/simple_list_item_checked.xml @@ -18,9 +18,9 @@ android:id="@android:id/text1" android:layout_width="match_parent" android:layout_height="?android:attr/listPreferredItemHeight" - android:textAppearance="?android:attr/textAppearanceLarge" + android:textAppearance="?android:attr/textAppearanceListItem" android:gravity="center_vertical" android:checkMark="?android:attr/textCheckMark" - android:paddingLeft="6dip" - android:paddingRight="6dip" + android:paddingLeft="8dip" + android:paddingRight="8dip" /> diff --git a/core/res/res/layout/simple_list_item_multiple_choice.xml b/core/res/res/layout/simple_list_item_multiple_choice.xml index 05c66f31510a..03054278bd94 100644 --- a/core/res/res/layout/simple_list_item_multiple_choice.xml +++ b/core/res/res/layout/simple_list_item_multiple_choice.xml @@ -18,9 +18,9 @@ android:id="@android:id/text1" android:layout_width="match_parent" android:layout_height="?android:attr/listPreferredItemHeight" - android:textAppearance="?android:attr/textAppearanceLarge" + android:textAppearance="?android:attr/textAppearanceListItem" android:gravity="center_vertical" android:checkMark="?android:attr/listChoiceIndicatorMultiple" - android:paddingLeft="6dip" - android:paddingRight="6dip" + android:paddingLeft="8dip" + android:paddingRight="8dip" /> diff --git a/core/res/res/layout/simple_list_item_single_choice.xml b/core/res/res/layout/simple_list_item_single_choice.xml index 27afd1d6f4b5..ac4a4a8cfa35 100644 --- a/core/res/res/layout/simple_list_item_single_choice.xml +++ b/core/res/res/layout/simple_list_item_single_choice.xml @@ -18,9 +18,9 @@ android:id="@android:id/text1" android:layout_width="match_parent" android:layout_height="?android:attr/listPreferredItemHeight" - android:textAppearance="?android:attr/textAppearanceLarge" + android:textAppearance="?android:attr/textAppearanceListItem" android:gravity="center_vertical" android:checkMark="?android:attr/listChoiceIndicatorSingle" - android:paddingLeft="6dip" - android:paddingRight="6dip" + android:paddingLeft="8dip" + android:paddingRight="8dip" /> diff --git a/core/res/res/layout/simple_selectable_list_item.xml b/core/res/res/layout/simple_selectable_list_item.xml index 518bcd0fcbd4..6ce22d611d92 100644 --- a/core/res/res/layout/simple_selectable_list_item.xml +++ b/core/res/res/layout/simple_selectable_list_item.xml @@ -18,9 +18,9 @@ android:id="@android:id/text1" android:layout_width="match_parent" android:layout_height="?android:attr/listPreferredItemHeight" - android:textAppearance="?android:attr/textAppearanceLarge" + android:textAppearance="?android:attr/textAppearanceListItem" android:gravity="center_vertical" android:background="?android:attr/listChoiceBackgroundIndicator" - android:paddingLeft="6dip" - android:paddingRight="9dip" + android:paddingLeft="8dip" + android:paddingRight="8dip" /> diff --git a/core/res/res/values/attrs.xml b/core/res/res/values/attrs.xml index aa3397fac6ab..8db6b4f346a7 100755 --- a/core/res/res/values/attrs.xml +++ b/core/res/res/values/attrs.xml @@ -236,6 +236,11 @@ <!-- The list item height for search results. @hide --> <attr name="searchResultListItemHeight" format="dimension" /> + <!-- The preferred TextAppearance for the primary text of list items. --> + <attr name="textAppearanceListItem" format="reference" /> + <!-- The preferred TextAppearance for the primary text of small list items. --> + <attr name="textAppearanceListItemSmall" format="reference" /> + <!-- The drawable for the list divider. --> <attr name="listDivider" format="reference" /> <!-- The list divider used in alert dialogs. --> diff --git a/core/res/res/values/public.xml b/core/res/res/values/public.xml index 730d971d05ea..a6bf1e0b6a16 100644 --- a/core/res/res/values/public.xml +++ b/core/res/res/values/public.xml @@ -1792,6 +1792,9 @@ <public type="attr" name="actionBarItemBackground" /> <public type="attr" name="actionModeSplitBackground" /> + <public type="attr" name="textAppearanceListItem" /> + <public type="attr" name="textAppearanceListItemSmall" /> + <public type="style" name="TextAppearance.SuggestionHighlight" /> <public type="style" name="Theme.Holo.Light.DarkActionBar" /> diff --git a/core/res/res/values/themes.xml b/core/res/res/values/themes.xml index 786cdb544f94..dd8bdd85938a 100644 --- a/core/res/res/values/themes.xml +++ b/core/res/res/values/themes.xml @@ -122,6 +122,8 @@ please see themes_device_defaults.xml. <item name="listPreferredItemHeightSmall">?android:attr/listPreferredItemHeight</item> <item name="listPreferredItemHeightLarge">?android:attr/listPreferredItemHeight</item> <item name="dropdownListPreferredItemHeight">?android:attr/listPreferredItemHeight</item> + <item name="textAppearanceListItem">?android:attr/textAppearanceLarge</item> + <item name="textAppearanceListItemSmall">?android:attr/textAppearanceLarge</item> <!-- @hide --> <item name="searchResultListItemHeight">58dip</item> @@ -920,6 +922,7 @@ please see themes_device_defaults.xml. <item name="listPreferredItemHeightSmall">48dip</item> <item name="listPreferredItemHeightLarge">80dip</item> <item name="dropdownListPreferredItemHeight">?android:attr/listPreferredItemHeightSmall</item> + <item name="textAppearanceListItemSmall">?android:attr/textAppearanceMedium</item> <!-- @hide --> <item name="searchResultListItemHeight">58dip</item> @@ -1222,6 +1225,7 @@ please see themes_device_defaults.xml. <item name="listPreferredItemHeightSmall">48dip</item> <item name="listPreferredItemHeightLarge">80dip</item> <item name="dropdownListPreferredItemHeight">?android:attr/listPreferredItemHeightSmall</item> + <item name="textAppearanceListItemSmall">?android:attr/textAppearanceMedium</item> <!-- @hide --> <item name="searchResultListItemHeight">58dip</item> |