aboutsummaryrefslogtreecommitdiff
path: root/res/values
diff options
context:
space:
mode:
authorAndy Doan <andy.doan@linaro.org>2012-02-21 17:03:40 -0600
committerAndy Doan <andy.doan@linaro.org>2012-02-21 17:42:35 -0600
commit47dd1672acd9b0b5ec38adabb4939344d05558e5 (patch)
tree2a159032773d52599ac01a1dfbc81d97f8ae726e /res/values
parent61e2cc10e4ccf641b17c43ca83f1a6f53024908d (diff)
downloadLinaroConnect-master.tar.gz
convert layouts to use theme/styleHEADmaster
This moves the styling of the GUI components into the styles.xml file. This allows a more central place to be able to update branding of the app from
Diffstat (limited to 'res/values')
-rw-r--r--res/values/styles.xml55
-rw-r--r--res/values/themes.xml9
2 files changed, 64 insertions, 0 deletions
diff --git a/res/values/styles.xml b/res/values/styles.xml
new file mode 100644
index 0000000..0c6b8a0
--- /dev/null
+++ b/res/values/styles.xml
@@ -0,0 +1,55 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+
+ <style name="list_view">
+ <item name="android:layout_width">fill_parent</item>
+ <item name="android:divider">@android:color/transparent</item>
+ <item name="android:dividerHeight">10.0sp</item>
+ <item name="android:paddingTop">10.0sp</item>
+ </style>
+
+ <style name="connect_item_text_view">
+ <item name="android:textStyle">bold</item>
+ <item name="android:background">@drawable/rounded</item>
+ <item name="android:textColor">@color/linaro_green</item>
+ <item name="android:gravity">center</item>
+ <item name="android:paddingTop">15dp</item>
+ <item name="android:paddingBottom">15dp</item>
+ </style>
+
+ <style name="posting_item">
+ <item name="android:background">@drawable/rounded</item>
+ </style>
+ <style name="item_title">
+ <item name="android:paddingLeft">6dp</item>
+ <item name="android:textColor">@color/linaro_green</item>
+ <item name="android:textSize">12dp</item>
+ </style>
+ <style name="item_summary">
+ <item name="android:paddingLeft">12dp</item>
+ <item name="android:textSize">10dp</item>
+ <item name="android:textColor">@color/light_text</item>
+ </style>
+ <style name="item_info">
+ <item name="android:paddingLeft">6dp</item>
+ <item name="android:textColor">@color/light_text</item>
+ <item name="android:textSize">8dp</item>
+ </style>
+
+ <style name="schedule_activity_title" parent="item_title">
+ <item name="android:paddingLeft">0dp</item>
+ </style>
+ <style name="schedule_activity_detail">
+ <item name="android:textSize">10dp</item>
+ </style>
+ <style name="schedule_activity_desc" parent="schedule_activity_detail">
+ <item name="android:textColor">@color/dark_text</item>
+ <item name="android:paddingLeft">10dp</item>
+ <item name="android:paddingRight">10dp</item>
+ <item name="android:background">@drawable/rounded</item>
+ </style>
+ <style name="schedule_activity_addbtn">
+ <item name="android:textSize">10dp</item>
+ </style>
+
+</resources> \ No newline at end of file
diff --git a/res/values/themes.xml b/res/values/themes.xml
new file mode 100644
index 0000000..ba52053
--- /dev/null
+++ b/res/values/themes.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+
+ <style name="Linaro" parent="android:Theme">
+ <item name="android:background">@color/main_bg</item>
+
+ <item name="android:listViewStyle">@style/list_view</item>
+ </style>
+</resources> \ No newline at end of file