From 47a5845e7c701ca542acce7b2b97e0d465713090 Mon Sep 17 00:00:00 2001 From: xudafeng Date: Sun, 26 Jul 2015 15:37:53 +0800 Subject: [PATCH 1/3] tweak style --- AndroidManifest.xml | 14 +- project.properties | 2 +- res/anim/slide_left_in.xml | 1 + res/anim/slide_left_out.xml | 1 + res/anim/slide_right_in.xml | 1 + res/anim/slide_right_out.xml | 1 + res/layout/activity_about.xml | 20 +-- res/layout/activity_history.xml | 71 ++++---- res/layout/activity_main.xml | 26 +-- res/layout/cell_body.xml | 2 +- res/layout/title.xml | 19 ++- res/values-v11/styles.xml | 1 - res/values-v14/styles.xml | 1 - res/values/colors.xml | 151 +++++++++++++++++- res/values/styles.xml | 2 +- .../iscanner_android/AboutActivity.java | 7 +- .../iscanner_android/HistoryActivity.java | 4 +- .../iscanner_android/MainActivity.java | 4 +- .../SwipeableCellAdapter.java | 4 +- 19 files changed, 251 insertions(+), 81 deletions(-) diff --git a/AndroidManifest.xml b/AndroidManifest.xml index 432f73c..455ba17 100644 --- a/AndroidManifest.xml +++ b/AndroidManifest.xml @@ -2,7 +2,7 @@ + android:versionName="1.3.0" > @@ -26,9 +26,17 @@ - + - + \ No newline at end of file diff --git a/project.properties b/project.properties index 8937e94..4ab1256 100644 --- a/project.properties +++ b/project.properties @@ -11,4 +11,4 @@ #proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt # Project target. -target=android-14 +target=android-19 diff --git a/res/anim/slide_left_in.xml b/res/anim/slide_left_in.xml index c07a54b..77f91ec 100644 --- a/res/anim/slide_left_in.xml +++ b/res/anim/slide_left_in.xml @@ -3,5 +3,6 @@ \ No newline at end of file diff --git a/res/anim/slide_left_out.xml b/res/anim/slide_left_out.xml index b4cdb4c..6339ef0 100644 --- a/res/anim/slide_left_out.xml +++ b/res/anim/slide_left_out.xml @@ -3,5 +3,6 @@ \ No newline at end of file diff --git a/res/anim/slide_right_in.xml b/res/anim/slide_right_in.xml index 0f356ca..304c5f8 100644 --- a/res/anim/slide_right_in.xml +++ b/res/anim/slide_right_in.xml @@ -3,5 +3,6 @@ \ No newline at end of file diff --git a/res/anim/slide_right_out.xml b/res/anim/slide_right_out.xml index 29e69a4..f4a07ac 100644 --- a/res/anim/slide_right_out.xml +++ b/res/anim/slide_right_out.xml @@ -3,5 +3,6 @@ \ No newline at end of file diff --git a/res/layout/activity_about.xml b/res/layout/activity_about.xml index c5b3a20..b1353f4 100644 --- a/res/layout/activity_about.xml +++ b/res/layout/activity_about.xml @@ -2,11 +2,13 @@ xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" - android:paddingBottom="@dimen/activity_vertical_margin" - android:paddingLeft="@dimen/activity_horizontal_margin" - android:paddingRight="@dimen/activity_horizontal_margin" - android:paddingTop="@dimen/activity_vertical_margin" tools:context="com.github.iscanner.iscanner_android.MainActivity" > + + + + android:textColor="@color/lightgrey" + android:textSize="14sp" /> \ No newline at end of file diff --git a/res/layout/activity_history.xml b/res/layout/activity_history.xml index 2d4c826..2bdffdc 100644 --- a/res/layout/activity_history.xml +++ b/res/layout/activity_history.xml @@ -3,39 +3,46 @@ android:layout_width="match_parent" android:layout_height="match_parent" tools:context=".MainActivity" > - - - - - + + - + android:layout_height="match_parent" + android:layout_above="@+id/qr_dialog" + android:divider="#dddbdb" + android:dividerHeight="1dp" > + + + + + + \ No newline at end of file diff --git a/res/layout/activity_main.xml b/res/layout/activity_main.xml index 3189381..cff9bf0 100644 --- a/res/layout/activity_main.xml +++ b/res/layout/activity_main.xml @@ -2,7 +2,13 @@ + android:background="#ffffff" > + + + + android:id="@+id/copyright" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_alignParentBottom="true" + android:layout_centerHorizontal="true" + android:layout_marginBottom="14dp" + android:gravity="center_vertical|center" + android:text="@string/copyright_content" + android:textColor="#0074ea" /> \ No newline at end of file diff --git a/res/layout/cell_body.xml b/res/layout/cell_body.xml index 1416396..fde6095 100644 --- a/res/layout/cell_body.xml +++ b/res/layout/cell_body.xml @@ -29,7 +29,7 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentLeft="true" - android:background="@color/lightgray" + android:background="@color/lightgrey" android:drawableLeft="@drawable/qrcode" android:focusable="false" android:height="60dp" diff --git a/res/layout/title.xml b/res/layout/title.xml index 6071e3f..516b011 100644 --- a/res/layout/title.xml +++ b/res/layout/title.xml @@ -1,17 +1,20 @@ + android:layout_width="fill_parent" + android:layout_height="50dp" + android:background="@color/gainsboro" >