Skip to content

Commit

Permalink
Update UI
Browse files Browse the repository at this point in the history
  • Loading branch information
majido committed Jan 31, 2015
1 parent eba97eb commit eb142b1
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 8 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>ca.zgrs.clipper</groupId>
<artifactId>clipboard-service</artifactId>
<version>1.1</version>
<version>1.2</version>
<packaging>apk</packaging>
<name>clipboard-service</name>

Expand Down
2 changes: 2 additions & 0 deletions src/main/java/ca/zgrs/clipper/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
9 changes: 7 additions & 2 deletions src/main/res/layout/main.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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" />

<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/usage"
android:enabled="true"
android:id="@+id/sub" />
android:id="@+id/sub"
android:textAppearance="?android:attr/textAppearanceMedium" />

</LinearLayout>
10 changes: 5 additions & 5 deletions src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="started">Clipper service is started!</string>
<string name="started">Clipper service is started.</string>
<string name="usage">
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
</string>
<string name="app_name">Clipper</string>
</resources>

0 comments on commit eb142b1

Please sign in to comment.