Android-x86
Fork
Donation

  • R/O
  • HTTP
  • SSH
  • HTTPS

external-koush-Widgets: Commit

external/koush/Widgets


Commit MetaInfo

Revisióne076c7c358eab6fb3d823882744e48bf5f92fc1e (tree)
Tiempo2013-03-08 13:01:09
AutorKoushik Dutta <koushd@gmai...>
CommiterKoushik Dutta

Log Message

style fixes for pre ics

Change-Id: I3f8f5334971202793bf376348a5c6b277f272786

Cambiar Resumen

Diferencia

--- a/Widgets/res/layout-large/list_content_header.xml
+++ b/Widgets/res/layout-large/list_content_header.xml
@@ -1,8 +1,8 @@
11 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
22 android:layout_width="fill_parent"
33 android:layout_height="wrap_content"
4- android:paddingEnd="?attr/listItemMarginHorizontal"
5- android:paddingStart="?attr/listItemMarginHorizontal" >
4+ android:paddingRight="?attr/listPreferredItemPaddingRight"
5+ android:paddingLeft="?attr/listPreferredItemPaddingLeft" >
66
77 <TextView
88 android:id="@android:id/text1"
--- a/Widgets/res/layout-large/list_item_selectable.xml
+++ b/Widgets/res/layout-large/list_item_selectable.xml
@@ -5,8 +5,8 @@
55 android:background="?attr/listItemSelectableLargeBackground"
66 android:minHeight="?android:attr/listPreferredItemHeight"
77 android:orientation="horizontal"
8- android:paddingEnd="?attr/listItemMarginHorizontal"
9- android:paddingStart="?attr/listItemMarginHorizontal" >
8+ android:paddingRight="?attr/listPreferredItemPaddingRight"
9+ android:paddingLeft="?attr/listPreferredItemPaddingLeft" >
1010
1111 <View
1212 style="?attr/listItemSelectableLargeIndicatorStyle"
--- a/Widgets/res/layout/list_content_header.xml
+++ b/Widgets/res/layout/list_content_header.xml
@@ -1,8 +1,8 @@
11 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
22 android:layout_width="fill_parent"
33 android:layout_height="wrap_content"
4- android:paddingEnd="?attr/listItemMarginHorizontal"
5- android:paddingStart="?attr/listItemMarginHorizontal" >
4+ android:paddingRight="?attr/listPreferredItemPaddingRight"
5+ android:paddingLeft="?attr/listPreferredItemPaddingLeft" >
66
77 <TextView
88 android:id="@android:id/text1"
--- a/Widgets/res/layout/list_header.xml
+++ b/Widgets/res/layout/list_header.xml
@@ -1,8 +1,8 @@
11 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
22 android:layout_width="fill_parent"
33 android:layout_height="wrap_content"
4- android:paddingEnd="?attr/listItemMarginHorizontal"
5- android:paddingStart="?attr/listItemMarginHorizontal" >
4+ android:paddingRight="?attr/listPreferredItemPaddingRight"
5+ android:paddingLeft="?attr/listPreferredItemPaddingLeft" >
66
77 <TextView
88 android:id="@android:id/text1"
--- a/Widgets/res/layout/list_item.xml
+++ b/Widgets/res/layout/list_item.xml
@@ -1,7 +1,7 @@
11 <?xml version="1.0" encoding="utf-8"?>
22 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
3- android:paddingStart="?attr/listItemMarginHorizontal"
4- android:paddingEnd="?attr/listItemMarginHorizontal"
3+ android:paddingRight="?attr/listPreferredItemPaddingRight"
4+ android:paddingLeft="?attr/listPreferredItemPaddingLeft"
55 android:paddingTop="8dip"
66 android:paddingBottom="8dip"
77 android:layout_width="fill_parent"
--- a/Widgets/res/layout/list_item_selectable.xml
+++ b/Widgets/res/layout/list_item_selectable.xml
@@ -5,8 +5,8 @@
55 android:minHeight="?android:attr/listPreferredItemHeight"
66 android:orientation="horizontal"
77 android:paddingBottom="8dip"
8- android:paddingEnd="?attr/listItemMarginHorizontal"
9- android:paddingStart="?attr/listItemMarginHorizontal"
8+ android:paddingRight="?attr/listPreferredItemPaddingRight"
9+ android:paddingLeft="?attr/listPreferredItemPaddingLeft"
1010 android:paddingTop="8dip" >
1111
1212 <include layout="@layout/list_item_base" />
--- a/Widgets/res/values-large-v14/styles.xml
+++ b/Widgets/res/values-large-v14/styles.xml
@@ -6,8 +6,12 @@
66 res/values-v11/styles.xml on API 14+ devices.
77 -->
88 <style name="AppBaseLargeTheme" parent="AndroidTheme">
9+ <item name="listPreferredItemPaddingLeft">?android:attr/listPreferredItemPaddingLeft</item>
10+ <item name="listPreferredItemPaddingRight">?android:attr/listPreferredItemPaddingRight</item>
911 </style>
1012
1113 <style name="AppBaseDarkLargeTheme" parent="AndroidDarkTheme">
14+ <item name="listPreferredItemPaddingLeft">?android:attr/listPreferredItemPaddingLeft</item>
15+ <item name="listPreferredItemPaddingRight">?android:attr/listPreferredItemPaddingRight</item>
1216 </style>
1317 </resources>
\ No newline at end of file
--- a/Widgets/res/values-large/styles.xml
+++ b/Widgets/res/values-large/styles.xml
@@ -1,9 +1,13 @@
11 <resources xmlns:android="http://schemas.android.com/apk/res/android">
22
33 <style name="AppBaseLargeTheme" parent="android:Theme">
4+ <item name="listPreferredItemPaddingLeft">6dp</item>
5+ <item name="listPreferredItemPaddingRight">6dp</item>
46 </style>
57
68 <style name="AppBaseDarkLargeTheme" parent="android:Theme.Black">
9+ <item name="listPreferredItemPaddingLeft">6dp</item>
10+ <item name="listPreferredItemPaddingRight">6dp</item>
711 </style>
812
913 <style name="AppBaseTheme" parent="@style/AppBaseLargeTheme">
@@ -17,11 +21,13 @@
1721 </style>
1822
1923 <style name="AppActivityTheme" parent="AppActivityBaseTheme">
20- <item name="listItemMarginHorizontal">0dp</item>
24+ <item name="listPreferredItemPaddingLeft">0dp</item>
25+ <item name="listPreferredItemPaddingRight">0dp</item>
2126 </style>
2227
2328 <style name="AppDarkActivityTheme" parent="AppDarkActivityBaseTheme">
24- <item name="listItemMarginHorizontal">0dp</item>
29+ <item name="listPreferredItemPaddingLeft">0dp</item>
30+ <item name="listPreferredItemPaddingRight">0dp</item>
2531 </style>
2632
2733 <style name="ListContentHeader" parent="@android:style/TextAppearance.Medium.Inverse">
--- a/Widgets/res/values-v14/styles.xml
+++ b/Widgets/res/values-v14/styles.xml
@@ -11,11 +11,17 @@
1111 <style name="AppBaseTheme" parent="AndroidTheme">
1212 <item name="listContentHeader">?android:attr/listSeparatorTextViewStyle</item>
1313 <item name="listHeaderTextColor">@color/holo_blue_dark</item>
14+ <item name="listPreferredItemPaddingLeft">?android:attr/listPreferredItemPaddingLeft</item>
15+ <item name="listPreferredItemPaddingRight">?android:attr/listPreferredItemPaddingRight</item>
16+
1417 </style>
1518
1619 <style name="AppBaseDarkTheme" parent="AndroidDarkTheme">
1720 <item name="listContentHeader">?android:attr/listSeparatorTextViewStyle</item>
1821 <item name="listHeaderTextColor">@null</item>
22+ <item name="listPreferredItemPaddingLeft">?android:attr/listPreferredItemPaddingLeft</item>
23+ <item name="listPreferredItemPaddingRight">?android:attr/listPreferredItemPaddingRight</item>
24+
1925 </style>
2026
2127 <style name="ListItemTitle" parent="@android:style/TextAppearance.Medium" >
--- a/Widgets/res/values/attrs.xml
+++ b/Widgets/res/values/attrs.xml
@@ -9,5 +9,6 @@
99 <attr name="listItemSelectableLargeBackground" format="reference|color" />
1010 <attr name="listItemSelectableLargeIndicatorStyle" format="reference" />
1111 <attr name="iconSize" format="dimension" />
12- <attr name="listItemMarginHorizontal" format="dimension" />
12+ <attr name="listPreferredItemPaddingLeft" format="dimension" />
13+ <attr name="listPreferredItemPaddingRight" format="dimension" />
1314 </resources>
\ No newline at end of file
--- a/Widgets/res/values/styles.xml
+++ b/Widgets/res/values/styles.xml
@@ -15,6 +15,8 @@
1515 -->
1616 <item name="listContentHeader">?android:attr/listSeparatorTextViewStyle</item>
1717 <item name="listHeaderTextColor">@color/holo_blue_dark</item>
18+ <item name="listPreferredItemPaddingLeft">6dp</item>
19+ <item name="listPreferredItemPaddingRight">6dp</item>
1820 </style>
1921
2022 <!-- Application theme. -->
@@ -27,8 +29,7 @@
2729 <item name="listItemSelectableLargeBackground">@null</item>
2830 <item name="listItemSelectableLargeIndicatorStyle">?android:attr/activatedBackgroundIndicator</item>
2931 <item name="iconSize">24dp</item>
30- <item name="listItemMarginHorizontal">?android:attr/listPreferredItemPaddingStart</item>
31-
32+
3233 </style>
3334
3435 <style name="ListContentIndicator">
@@ -38,6 +39,8 @@
3839 <style name="AppBaseDarkTheme" parent="AndroidDarkTheme">
3940 <item name="listContentHeader">?android:attr/listSeparatorTextViewStyle</item>
4041 <item name="listHeaderTextColor">@null</item>
42+ <item name="listPreferredItemPaddingLeft">6dp</item>
43+ <item name="listPreferredItemPaddingRight">6dp</item>
4144 </style>
4245
4346 <!-- Application theme. -->
@@ -50,7 +53,6 @@
5053 <item name="listItemSelectableLargeBackground">?android:attr/activatedBackgroundIndicator</item>
5154 <item name="listItemSelectableLargeIndicatorStyle">@style/ListContentIndicator</item>
5255 <item name="iconSize">24dp</item>
53- <item name="listItemMarginHorizontal">?android:attr/listPreferredItemPaddingStart</item>
5456
5557 </style>
5658
@@ -61,11 +63,13 @@
6163 </style>
6264
6365 <style name="AppActivityTheme" parent="AppActivityBaseTheme">
64- <item name="listItemMarginHorizontal">@dimen/activity_horizontal_margin</item>
66+ <item name="listPreferredItemPaddingLeft">@dimen/activity_horizontal_margin</item>
67+ <item name="listPreferredItemPaddingRight">@dimen/activity_horizontal_margin</item>
6568 </style>
6669
6770 <style name="AppDarkActivityTheme" parent="AppDarkActivityBaseTheme">
68- <item name="listItemMarginHorizontal">@dimen/activity_horizontal_margin</item>
71+ <item name="listPreferredItemPaddingLeft">@dimen/activity_horizontal_margin</item>
72+ <item name="listPreferredItemPaddingRight">@dimen/activity_horizontal_margin</item>
6973 </style>
7074
7175 <style name="ListItemTitle" >
Show on old repository browser