summaryrefslogtreecommitdiff
path: root/altosdroid/res
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2012-08-07 11:48:20 -0700
committerKeith Packard <keithp@keithp.com>2012-08-07 11:48:20 -0700
commit4d4ad34aec0c75c66162b992f1e52947e4685730 (patch)
treeab7a29204eea195db77aa302fbe3e2012ef5049e /altosdroid/res
parentc7f228503870c44dfd278ede8b0980dbac73d3c7 (diff)
parent8e4ebd1f6eb928b5cb7bcda4ed88851aa9e61bdf (diff)
Merge remote-tracking branch 'mjb/master'
Diffstat (limited to 'altosdroid/res')
-rw-r--r--altosdroid/res/drawable-hdpi/am_status_c.pngbin0 -> 994 bytes
-rw-r--r--altosdroid/res/drawable-hdpi/am_status_g.png (renamed from altosdroid/res/drawable-hdpi/am_status.png)bin804 -> 804 bytes
-rw-r--r--altosdroid/res/drawable-mdpi/am_status_c.pngbin0 -> 703 bytes
-rw-r--r--altosdroid/res/drawable-mdpi/am_status_g.png (renamed from altosdroid/res/drawable-mdpi/am_status.png)bin595 -> 595 bytes
-rw-r--r--altosdroid/res/layout/main.xml25
-rw-r--r--altosdroid/res/menu/option_menu.xml12
-rw-r--r--altosdroid/res/values/strings.xml29
7 files changed, 33 insertions, 33 deletions
diff --git a/altosdroid/res/drawable-hdpi/am_status_c.png b/altosdroid/res/drawable-hdpi/am_status_c.png
new file mode 100644
index 00000000..d4393217
--- /dev/null
+++ b/altosdroid/res/drawable-hdpi/am_status_c.png
Binary files differ
diff --git a/altosdroid/res/drawable-hdpi/am_status.png b/altosdroid/res/drawable-hdpi/am_status_g.png
index 03f9dd7d..03f9dd7d 100644
--- a/altosdroid/res/drawable-hdpi/am_status.png
+++ b/altosdroid/res/drawable-hdpi/am_status_g.png
Binary files differ
diff --git a/altosdroid/res/drawable-mdpi/am_status_c.png b/altosdroid/res/drawable-mdpi/am_status_c.png
new file mode 100644
index 00000000..30a8d29a
--- /dev/null
+++ b/altosdroid/res/drawable-mdpi/am_status_c.png
Binary files differ
diff --git a/altosdroid/res/drawable-mdpi/am_status.png b/altosdroid/res/drawable-mdpi/am_status_g.png
index 07f7f073..07f7f073 100644
--- a/altosdroid/res/drawable-mdpi/am_status.png
+++ b/altosdroid/res/drawable-mdpi/am_status_g.png
Binary files differ
diff --git a/altosdroid/res/layout/main.xml b/altosdroid/res/layout/main.xml
index 17025f6b..070928a5 100644
--- a/altosdroid/res/layout/main.xml
+++ b/altosdroid/res/layout/main.xml
@@ -19,24 +19,31 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
>
- <ListView android:id="@+id/in"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:stackFromBottom="true"
- android:transcriptMode="alwaysScroll"
+
+ <TextView
+ android:id="@+id/in"
+ android:layout_width="fill_parent"
+ android:layout_height="fill_parent"
android:layout_weight="1"
- />
+ android:gravity="bottom"
+ android:scrollbars="vertical"
+ android:textSize="7dp"
+ android:typeface="monospace" />
+
<LinearLayout
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="wrap_content"
>
- <EditText android:id="@+id/edit_text_out"
+
+ <EditText
+ android:id="@+id/edit_text_out"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:layout_weight="1"
android:layout_gravity="bottom"
- />
+ android:layout_weight="1"
+ android:inputType="text|textNoSuggestions" />
+
<Button android:id="@+id/button_send"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
diff --git a/altosdroid/res/menu/option_menu.xml b/altosdroid/res/menu/option_menu.xml
index 27625e9c..feb5668e 100644
--- a/altosdroid/res/menu/option_menu.xml
+++ b/altosdroid/res/menu/option_menu.xml
@@ -14,19 +14,13 @@
limitations under the License.
-->
<menu xmlns:android="http://schemas.android.com/apk/res/android">
+ <item android:id="@+id/connect_scan"
+ android:icon="@android:drawable/ic_menu_search"
+ android:title="@string/connect_device" />
<item android:id="@+id/telemetry_service_control"
android:icon="@android:drawable/ic_menu_manage"
android:title="@string/telemetry_service_control" />
<item android:id="@+id/telemetry_service_bind"
android:icon="@android:drawable/ic_menu_rotate"
android:title="@string/telemetry_service_bind" />
- <item android:id="@+id/secure_connect_scan"
- android:icon="@android:drawable/ic_menu_search"
- android:title="@string/secure_connect" />
- <item android:id="@+id/insecure_connect_scan"
- android:icon="@android:drawable/ic_menu_search"
- android:title="@string/insecure_connect" />
- <item android:id="@+id/discoverable"
- android:icon="@android:drawable/ic_menu_mylocation"
- android:title="@string/discoverable" />
</menu>
diff --git a/altosdroid/res/values/strings.xml b/altosdroid/res/values/strings.xml
index 0b2f9227..72a4ddec 100644
--- a/altosdroid/res/values/strings.xml
+++ b/altosdroid/res/values/strings.xml
@@ -21,12 +21,12 @@
<string name="send">Send</string>
<string name="not_connected">You are not connected to a device</string>
<string name="bt_not_enabled_leaving">Bluetooth was not enabled. Leaving Bluetooth Chat.</string>
- <string name="title_connecting">connecting...</string>
+ <string name="title_connecting">connecting…</string>
<string name="title_connected_to">connected: </string>
<string name="title_not_connected">not connected</string>
<!-- DeviceListActivity -->
- <string name="scanning">scanning for devices...</string>
+ <string name="scanning">scanning for devices…</string>
<string name="select_device">select a device to connect</string>
<string name="none_paired">No devices have been paired</string>
<string name="none_found">No devices found</string>
@@ -35,32 +35,31 @@
<string name="button_scan">Scan for devices</string>
<!-- Options Menu -->
- <string name="secure_connect">Connect a device - Secure</string>
- <string name="insecure_connect">Connect a device - Insecure</string>
- <string name="discoverable">Make discoverable</string>
+ <string name="connect_device">Connect a device</string>
+ <string name="telemetry_service_control">Control Service</string>
+ <string name="telemetry_service_bind">(Un)Bind Service</string>
+
+
<!-- Service -->
- <string name="telemetry_service_label">AltOS Telemetry Service</string>
+ <string name="telemetry_service_label">AltosDroid Telemetry Service</string>
<string name="telemetry_service_started">Telemetry Service Started</string>
<string name="telemetry_service_stopped">Telemetry Service Stopped</string>
-
-
- <string name="telemetry_service_control">Start/Stop Service</string>
- <string name="telemetry_service_bind">Bind/Unbind Service</string>
-
- <string name="activity_telemetry_service_controller">App/Service/Local Service Controller</string>
- <string name="telemetry_service_controller">This demonstrates how you can implement persistent services that
- may be started and stopped as desired.</string>
+ <!-- Service control activity - temporary! -->
+ <string name="activity_telemetry_service_controller">Telemetry Service Controller</string>
+ <string name="telemetry_service_controller">Use the following buttons to start and stop the Telemetry
+ service.</string>
<string name="start_service">Start Service</string>
<string name="stop_service">Stop Service</string>
- <string name="activity_telemetry_service_binding">App/Service/Local Service Binding</string>
+ <string name="activity_telemetry_service_binding">Telemetry Service Binding</string>
<string name="telemetry_service_binding">This demonstrates how you can connect with a persistent
service. Notice how it automatically starts for you, and play around with the
interaction between this and Local Service Controller.</string>
<string name="bind_service">Bind Service</string>
<string name="unbind_service">Unbind Service</string>
+
<string name="telemetry_service_connected">Connected to local service</string>
<string name="telemetry_service_disconnected">Disconnected from local service</string>