summaryrefslogtreecommitdiffstats
path: root/res/layout/widget_cell.xml
diff options
context:
space:
mode:
authorSunny Goyal <sunnygoyal@google.com>2017-02-07 13:11:17 -0800
committerSunny Goyal <sunnygoyal@google.com>2017-02-09 10:16:22 -0800
commitd5d5e22715c19c361d264693929c15c4325e80fa (patch)
treede664e7f61c2088de817483d57860a83a1f87228 /res/layout/widget_cell.xml
parentdb7b82960a54b85510aaeba2f543b37b4dc59fc8 (diff)
downloadandroid_packages_apps_Trebuchet-d5d5e22715c19c361d264693929c15c4325e80fa.tar.gz
android_packages_apps_Trebuchet-d5d5e22715c19c361d264693929c15c4325e80fa.tar.bz2
android_packages_apps_Trebuchet-d5d5e22715c19c361d264693929c15c4325e80fa.zip
Updating widget tray theme
Using standard theme attributes rather than custom color codes, so that it plays nice with system theme changes. Bug: 34819119 Bug: 34897402 Bug: 21446746 Change-Id: I265fba3ceae8873650fd09e4704838d313155e83
Diffstat (limited to 'res/layout/widget_cell.xml')
-rw-r--r--res/layout/widget_cell.xml12
1 files changed, 5 insertions, 7 deletions
diff --git a/res/layout/widget_cell.xml b/res/layout/widget_cell.xml
index c5a675351..b9b098c3c 100644
--- a/res/layout/widget_cell.xml
+++ b/res/layout/widget_cell.xml
@@ -20,7 +20,7 @@
android:layout_weight="1"
android:orientation="vertical"
android:focusable="true"
- android:background="?android:attr/colorPrimary"
+ android:background="?android:attr/colorPrimaryDark"
android:gravity="center_horizontal">
<LinearLayout
@@ -42,10 +42,9 @@
android:fadingEdge="horizontal"
android:fontFamily="sans-serif-condensed"
android:gravity="start"
- android:shadowColor="#B0000000"
- android:shadowRadius="2.0"
android:singleLine="true"
- android:textColor="@color/widgets_view_item_text_color"
+ android:maxLines="1"
+ android:textColor="?android:attr/textColorSecondary"
android:textSize="14sp" />
<!-- The original dimensions of the widget (can't be the same text as above due to different
@@ -56,11 +55,10 @@
android:layout_height="wrap_content"
android:layout_marginStart="5dp"
android:layout_marginLeft="5dp"
- android:textColor="@color/widgets_view_item_text_color"
+ android:textColor="?android:attr/textColorSecondary"
android:textSize="14sp"
android:fontFamily="sans-serif-condensed"
- android:shadowRadius="2.0"
- android:shadowColor="#B0000000" />
+ android:alpha="0.8" />
</LinearLayout>
<!-- The image of the widget. This view does not support padding. Any placement adjustment