summaryrefslogtreecommitdiffstats
path: root/res
diff options
context:
space:
mode:
authorfaketruth <faketruth@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-08-18 23:00:51 +0200
committerfaketruth <faketruth@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-08-18 23:00:51 +0200
commitb6138129e668681d2c16146dea3d66b0ea2f0381 (patch)
tree0888a6d4f115fd02ba1ea65c944a4daca1eda85e /res
parentChat packet handled in the new way; fixed missing packet sending for inventory slot. (diff)
downloadcuberite-b6138129e668681d2c16146dea3d66b0ea2f0381.tar
cuberite-b6138129e668681d2c16146dea3d66b0ea2f0381.tar.gz
cuberite-b6138129e668681d2c16146dea3d66b0ea2f0381.tar.bz2
cuberite-b6138129e668681d2c16146dea3d66b0ea2f0381.tar.lz
cuberite-b6138129e668681d2c16146dea3d66b0ea2f0381.tar.xz
cuberite-b6138129e668681d2c16146dea3d66b0ea2f0381.tar.zst
cuberite-b6138129e668681d2c16146dea3d66b0ea2f0381.zip
Diffstat (limited to 'res')
-rw-r--r--res/layout/main.xml36
-rw-r--r--res/values/strings.xml7
2 files changed, 41 insertions, 2 deletions
diff --git a/res/layout/main.xml b/res/layout/main.xml
index e24cd5f23..b270bca03 100644
--- a/res/layout/main.xml
+++ b/res/layout/main.xml
@@ -2,12 +2,46 @@
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
+ android:gravity="center_horizontal"
android:orientation="vertical" >
-
+
<TextView
android:id="@+id/textView1"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/hello" />
+ <TextView
+ android:id="@+id/textView2"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:text="@string/app_name"
+ android:textAppearance="?android:attr/textAppearanceLarge" />
+
+ <Button
+ android:id="@+id/start_server"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:text="@string/start" />
+
+ <Button
+ android:id="@+id/stop_server"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:enabled="true"
+ android:text="@string/stop" />
+
+ <TextView
+ android:id="@+id/server_status_text"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:text="@string/mcserver_is_not_running"
+ android:textAppearance="?android:attr/textAppearanceMedium" />
+
+ <TextView
+ android:id="@+id/ip_address"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:text="@string/your_ip" />
+
</LinearLayout> \ No newline at end of file
diff --git a/res/values/strings.xml b/res/values/strings.xml
index 8c782a739..9fce753a4 100644
--- a/res/values/strings.xml
+++ b/res/values/strings.xml
@@ -2,6 +2,11 @@
<resources>
<string name="hello">Hello World, MCServerActivity!</string>
- <string name="app_name">MCServer</string>
+ <string name="app_name">MCServer</string>
+ <string name="start">Start</string>
+ <string name="stop">Stop</string>
+ <string name="mcserver_is_running">MCServer is running</string>
+ <string name="mcserver_is_not_running">MCServer is not running</string>
+ <string name="your_ip">Your IP …</string>
</resources> \ No newline at end of file