| <?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. |
| --> |
| |
| <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" |
| android:layout_width="match_parent" |
| android:layout_height="match_parent"> |
| |
| <RelativeLayout |
| android:id="@+id/top" |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:layout_alignParentTop="true" |
| android:layout_marginTop="10dp"> |
| |
| <Button |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:text="@string/take_photo" |
| android:id="@+id/takePhoto" |
| android:onClick="onTakePhotoClick" |
| android:layout_marginLeft="39dp" |
| android:layout_alignParentStart="true" |
| android:layout_alignParentTop="true" /> |
| |
| <Button |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:text="@string/send_photo" |
| android:id="@+id/sendPhoto" |
| android:layout_alignRight="@+id/takePhoto" |
| android:layout_marginLeft="39dp" |
| android:enabled="false" |
| android:onClick="onSendPhotoClick" |
| android:layout_alignParentStart="true" |
| android:layout_below="@+id/takePhoto" /> |
| |
| <ImageView |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:id="@+id/imageView" |
| android:layout_marginLeft="29dp" |
| android:layout_centerVertical="true" |
| android:layout_alignParentRight="true" |
| android:src="@drawable/ic_content_picture" /> |
| </RelativeLayout> |
| |
| <View |
| style="@style/Divider" |
| android:id="@+id/divider" |
| android:layout_below="@+id/top" |
| android:layout_marginTop="5dp" |
| android:layout_marginLeft="20dp" |
| android:layout_marginRight="20dp" /> |
| |
| <Button |
| android:id="@+id/start_wearable_activity" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:layout_marginRight="10dp" |
| android:onClick="onStartWearableActivityClick" |
| android:text="@string/start_wearable_activity" |
| android:enabled="false" |
| android:layout_below="@+id/divider" |
| android:layout_centerHorizontal="true" |
| android:layout_marginTop="10dp" /> |
| |
| <ListView |
| android:id="@+id/data_item_list" |
| android:layout_width="match_parent" |
| android:layout_height="match_parent" |
| android:layout_below="@+id/start_wearable_activity" |
| android:transcriptMode="alwaysScroll" /> |
| </RelativeLayout> |