From eb142b1cfc83647129a4c424eba131fa9fea905e Mon Sep 17 00:00:00 2001 From: Majid Valipour Date: Sat, 31 Jan 2015 16:21:11 -0500 Subject: [PATCH] Update UI --- pom.xml | 2 +- src/main/java/ca/zgrs/clipper/Main.java | 2 ++ src/main/res/layout/main.xml | 9 +++++++-- src/main/res/values/strings.xml | 10 +++++----- 4 files changed, 15 insertions(+), 8 deletions(-) diff --git a/pom.xml b/pom.xml index dcb58ce..2f272a4 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ 4.0.0 ca.zgrs.clipper clipboard-service - 1.1 + 1.2 apk clipboard-service diff --git a/src/main/java/ca/zgrs/clipper/Main.java b/src/main/java/ca/zgrs/clipper/Main.java index 1465bc3..fe81a8c 100644 --- a/src/main/java/ca/zgrs/clipper/Main.java +++ b/src/main/java/ca/zgrs/clipper/Main.java @@ -10,6 +10,8 @@ public class Main extends Activity { public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); + setContentView(R.layout.main); + //start clipboard service Intent serviceIntent = new Intent(this, ClipboardService.class); startService(serviceIntent); diff --git a/src/main/res/layout/main.xml b/src/main/res/layout/main.xml index fbf4d36..0408608 100644 --- a/src/main/res/layout/main.xml +++ b/src/main/res/layout/main.xml @@ -11,12 +11,17 @@ android:singleLine="false" android:enabled="true" android:textStyle="bold" - android:id="@+id/head" /> + android:id="@+id/head" + android:textAppearance="?android:attr/textAppearanceLarge" + android:paddingBottom="20dp" + android:paddingTop="20dp" /> + android:id="@+id/sub" + android:textAppearance="?android:attr/textAppearanceMedium" /> + diff --git a/src/main/res/values/strings.xml b/src/main/res/values/strings.xml index e86d922..625c8d9 100644 --- a/src/main/res/values/strings.xml +++ b/src/main/res/values/strings.xml @@ -1,11 +1,11 @@ - Clipper service is started! + Clipper service is started. - Usage: You can copy to or paste from clipboard from adb shell using the - following commands:\n - * am broadcast -a clipper.set -e text \'This may be pasted now\' \n - * am broadcast -a clipper.get + You can now copy to or paste from clipboard using the + following commands in adb shell:\n \n + 1. am broadcast -a clipper.set -e text \'This may be pasted now\' \n + 2. am broadcast -a clipper.get Clipper