aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndy Doan <andy.doan@linaro.org>2011-10-20 01:48:38 -0500
committerAndy Doan <andy.doan@linaro.org>2011-10-20 01:48:38 -0500
commitf954772e9c44a599730350ec945aaa3e8490267d (patch)
treef419e8421d4508b7712f27360f9530d85fc88e7c
parent62eef43e9d9ecc15d9d64b2ed620d56530b0b591 (diff)
downloadLinaroConnect-f954772e9c44a599730350ec945aaa3e8490267d.tar.gz
move to use a color file
this helps make global changes easier
-rw-r--r--res/layout/connect_item.xml2
-rw-r--r--res/layout/image_item.xml2
-rw-r--r--res/layout/image_view.xml2
-rw-r--r--res/layout/posting_item.xml8
-rw-r--r--res/values/colors.xml6
5 files changed, 13 insertions, 7 deletions
diff --git a/res/layout/connect_item.xml b/res/layout/connect_item.xml
index b07e2d6..60f9622 100644
--- a/res/layout/connect_item.xml
+++ b/res/layout/connect_item.xml
@@ -11,7 +11,7 @@
android:layout_width="match_parent"
android:textStyle="bold"
android:background="@drawable/rounded"
- android:textColor="#88b12d"
+ android:textColor="@color/linaro_green"
android:gravity="center"
android:paddingTop="15px"
android:paddingBottom="15px"
diff --git a/res/layout/image_item.xml b/res/layout/image_item.xml
index 54e8649..4a00dc4 100644
--- a/res/layout/image_item.xml
+++ b/res/layout/image_item.xml
@@ -9,7 +9,7 @@
<TextView android:id="@+id/image_item_label"
android:layout_height="wrap_content"
android:layout_width="match_parent"
- android:textColor="#88b12d"
+ android:textColor="@color/linaro_green"
android:gravity="center"
/>
<ImageView android:id="@+id/image_item_id"
diff --git a/res/layout/image_view.xml b/res/layout/image_view.xml
index 22c33e3..5df6851 100644
--- a/res/layout/image_view.xml
+++ b/res/layout/image_view.xml
@@ -8,7 +8,7 @@
<TextView android:id="@+id/image_view_label"
android:layout_height="wrap_content"
android:layout_width="match_parent"
- android:textColor="#88b12d"
+ android:textColor="@color/linaro_green"
android:gravity="center"
/>
<ImageView android:id="@+id/image_view_id"
diff --git a/res/layout/posting_item.xml b/res/layout/posting_item.xml
index 5352177..b92a35f 100644
--- a/res/layout/posting_item.xml
+++ b/res/layout/posting_item.xml
@@ -14,14 +14,14 @@
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:paddingLeft = "6px"
- android:textColor="#666666"
+ android:textColor="@color/light_text"
android:textSize="8sp"/>
<TextView android:id="@+id/posting_date"
android:layout_height="wrap_content"
android:layout_width="fill_parent"
android:paddingRight="5px"
android:gravity="right"
- android:textColor="#666666"
+ android:textColor="@color/light_text"
android:textSize="8sp"/>
</LinearLayout>
@@ -29,7 +29,7 @@
android:layout_height="wrap_content"
android:layout_width="match_parent"
android:paddingLeft = "6px"
- android:textColor="#88b12d"
+ android:textColor="@color/linaro_green"
android:textSize="12sp"
/>
<TextView android:id="@+id/posting_item_summary"
@@ -37,6 +37,6 @@
android:layout_width="match_parent"
android:paddingLeft = "12px"
android:textSize="10sp"
- android:textColor="#666666"
+ android:textColor="@color/light_text"
/>
</LinearLayout> \ No newline at end of file
diff --git a/res/values/colors.xml b/res/values/colors.xml
new file mode 100644
index 0000000..22124bd
--- /dev/null
+++ b/res/values/colors.xml
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+ <color name="main_bg">#555</color>
+ <color name="linaro_green">#88b12d</color>
+ <color name="light_text">#666666</color>
+</resources>