summaryrefslogtreecommitdiff
path: root/android/sdremote/res
diff options
context:
space:
mode:
authorAndrzej J.R. Hunt <andrzej@ahunt.org>2012-08-23 15:06:22 +0200
committerAndrzej J.R. Hunt <andrzej@ahunt.org>2012-08-23 15:07:14 +0200
commite29c020ee25fb820f4ae49c5f8d1e3df38aa76da (patch)
treecd753193ff8fbfeec72d146734a697de8422bb8f /android/sdremote/res
parente4b0ce8887a743d30a0107bc7b8f652b0e3b074c (diff)
Manual IP adding implemented.
Change-Id: Ifad2a206e3ddbb46094be6638581358484522695
Diffstat (limited to 'android/sdremote/res')
-rw-r--r--android/sdremote/res/layout/dialog_addserver.xml46
-rw-r--r--android/sdremote/res/menu/selector_activity.xml6
-rw-r--r--android/sdremote/res/values/strings.xml6
-rw-r--r--android/sdremote/res/values/styles.xml3
4 files changed, 61 insertions, 0 deletions
diff --git a/android/sdremote/res/layout/dialog_addserver.xml b/android/sdremote/res/layout/dialog_addserver.xml
new file mode 100644
index 000000000000..01ddba28c73c
--- /dev/null
+++ b/android/sdremote/res/layout/dialog_addserver.xml
@@ -0,0 +1,46 @@
+<?xml version="1.0" encoding="utf-8"?>
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:id="@+id/addserver_root"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:orientation="vertical" >
+
+ <TextView
+ android:id="@+id/addserver_namelabel"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:text="@string/addserver_entername" />
+
+ <EditText
+ android:id="@+id/addserver_nameentry"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:ems="10"
+ android:inputType="textCapWords" >
+
+ <requestFocus />
+ </EditText>
+
+ <TextView
+ android:id="@+id/addserver_addressabel"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:text="@string/addserver_enteraddress" />
+
+ <EditText
+ android:id="@+id/addserver_addressentry"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:ems="10"
+ android:inputType="textUri" >
+
+ </EditText>
+
+ <CheckBox
+ android:id="@+id/addserver_remember"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:checked="true"
+ android:text="@string/addserver_remember" />
+
+</LinearLayout> \ No newline at end of file
diff --git a/android/sdremote/res/menu/selector_activity.xml b/android/sdremote/res/menu/selector_activity.xml
new file mode 100644
index 000000000000..dab6e207b678
--- /dev/null
+++ b/android/sdremote/res/menu/selector_activity.xml
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="utf-8"?>
+<menu xmlns:android="http://schemas.android.com/apk/res/android" >
+ <item android:id="@+id/menu_selector_addServer" android:title="@string/addserver" android:showAsAction="always"></item>
+
+
+</menu> \ No newline at end of file
diff --git a/android/sdremote/res/values/strings.xml b/android/sdremote/res/values/strings.xml
index 6ede30d83423..fb1ac80c845f 100644
--- a/android/sdremote/res/values/strings.xml
+++ b/android/sdremote/res/values/strings.xml
@@ -32,5 +32,11 @@
<string name="about_close">Close</string>
<string name="about_versionstring">Version: {0} (Build ID: {1})</string>
<string name="about_copyright">Copyright \u00A9 2012 LibreOffice Contributors and/or their affiliates.</string>
+ <string name="addserver">Add Server</string>
+ <string name="addserver_entername">Server name:</string>
+ <string name="addserver_enteraddress">Server address as IP or hostname:</string>
+ <string name="addserver_remember">Remember this server next time</string>
+ <string name="addserver_add">Add</string>
+ <string name="addserver_cancel">Cancel</string>
</resources> \ No newline at end of file
diff --git a/android/sdremote/res/values/styles.xml b/android/sdremote/res/values/styles.xml
index de47193feb9f..73d2209746b2 100644
--- a/android/sdremote/res/values/styles.xml
+++ b/android/sdremote/res/values/styles.xml
@@ -24,6 +24,8 @@
<item name="background">@color/orange</item>
<item name="android:titleTextStyle">@style/Theme.ImpressRemote.ActionBar.Title</item>
<item name="titleTextStyle">@style/Theme.ImpressRemote.ActionBar.Title</item>
+ <item name="backgroundSplit">@color/text_grey</item>
+ <item name="android:backgroundSplit">@color/text_grey</item>
</style>
<style name="Theme.ImpressRemote.ActionBarWidget" parent="android:style/Widget.Holo.Light">
@@ -54,6 +56,7 @@
<item name="android:windowBackground">@color/light_grey</item>
<item name="android:homeAsUpIndicator">@drawable/up_indicator_white</item>
<item name="android:textColor">@color/text_grey</item>
+
</style>
</resources> \ No newline at end of file