diff options
author | Yuichi Araki <yaraki@google.com> | 2014-09-01 19:50:36 +0900 |
---|---|---|
committer | Yuichi Araki <yaraki@google.com> | 2014-09-02 16:53:24 +0900 |
commit | 0a5978937ff95a266c3a70415393c15fd340c1a3 (patch) | |
tree | 7f49b3acf2665c1e6333111d354dd7731f7d6437 /connectivity/bluetooth/BluetoothChat/BluetoothChatSample/src/main/res/layout/activity_device_list.xml | |
parent | 33cef3fa89217b4cd159c1eab2de4d2a136796f4 (diff) | |
download | android-0a5978937ff95a266c3a70415393c15fd340c1a3.tar.gz |
BluetoothChat: Porting from legacy directory.
Change-Id: I7d7b39f6cefdf7e3e40bdf1655df5a994af15f8a
Diffstat (limited to 'connectivity/bluetooth/BluetoothChat/BluetoothChatSample/src/main/res/layout/activity_device_list.xml')
-rw-r--r-- | connectivity/bluetooth/BluetoothChat/BluetoothChatSample/src/main/res/layout/activity_device_list.xml | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/connectivity/bluetooth/BluetoothChat/BluetoothChatSample/src/main/res/layout/activity_device_list.xml b/connectivity/bluetooth/BluetoothChat/BluetoothChatSample/src/main/res/layout/activity_device_list.xml new file mode 100644 index 00000000..ae7242cf --- /dev/null +++ b/connectivity/bluetooth/BluetoothChat/BluetoothChatSample/src/main/res/layout/activity_device_list.xml @@ -0,0 +1,66 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2014 The Android Open Source Project + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +--> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:orientation="vertical" + > + + <TextView + android:id="@+id/title_paired_devices" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:background="#666" + android:paddingLeft="5dp" + android:text="@string/title_paired_devices" + android:textColor="#fff" + android:visibility="gone" + /> + + <ListView + android:id="@+id/paired_devices" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_weight="1" + android:stackFromBottom="true" + /> + + <TextView + android:id="@+id/title_new_devices" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:background="#666" + android:paddingLeft="5dp" + android:text="@string/title_other_devices" + android:textColor="#fff" + android:visibility="gone" + /> + + <ListView + android:id="@+id/new_devices" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_weight="2" + android:stackFromBottom="true" + /> + + <Button + android:id="@+id/button_scan" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:text="@string/button_scan" + /> +</LinearLayout> |