1<?xml version="1.0" encoding="utf-8"?> 2<!-- Copyright (C) 2016 The Android Open Source Project 3 4 Licensed under the Apache License, Version 2.0 (the "License"); 5 you may not use this file except in compliance with the License. 6 You may obtain a copy of the License at 7 8 http://www.apache.org/licenses/LICENSE-2.0 9 10 Unless required by applicable law or agreed to in writing, software 11 distributed under the License is distributed on an "AS IS" BASIS, 12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 See the License for the specific language governing permissions and 14 limitations under the License. 15--> 16<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" 17 android:layout_width="fill_parent" 18 android:layout_height="match_parent" 19 android:orientation="vertical"> 20 <!-- Top area --> 21 <LinearLayout 22 android:id="@+id/location_layout" 23 android:layout_width="wrap_content" 24 android:layout_height="wrap_content" 25 android:orientation="vertical" 26 android:layout_centerHorizontal="true"> 27 <TextView 28 android:id="@+id/location_title" 29 android:layout_width="wrap_content" 30 android:layout_height="wrap_content" 31 android:text="@string/location_title" 32 android:textStyle="bold"/> 33 <TextView 34 android:id="@+id/location_info" 35 android:layout_width="wrap_content" 36 android:layout_height="wrap_content" 37 android:scrollbars="vertical" 38 android:textStyle="bold"/> 39 <TextView 40 android:id="@+id/accel_info" 41 android:layout_width="wrap_content" 42 android:layout_height="wrap_content" 43 android:textStyle="bold"/> 44 <TextView 45 android:id="@+id/gyro_info" 46 android:layout_width="wrap_content" 47 android:layout_height="wrap_content" 48 android:textStyle="bold"/> 49 <TextView 50 android:id="@+id/mag_info" 51 android:layout_width="wrap_content" 52 android:layout_height="wrap_content" 53 android:textStyle="bold"/> 54 </LinearLayout> 55 56 <!-- Bottom area --> 57 <LinearLayout 58 android:id="@+id/sensor_layout" 59 android:layout_width="wrap_content" 60 android:layout_height="wrap_content" 61 android:orientation="vertical" 62 android:layout_centerHorizontal="true" 63 android:layout_below="@+id/location_layout" 64 android:layout_alignStart="@+id/location_layout"> 65 <TextView 66 android:id="@+id/sensor_title" 67 android:layout_width="wrap_content" 68 android:layout_height="wrap_content" 69 android:text="@string/sensor_title" 70 android:textStyle="bold"/> 71 <TextView 72 android:id="@+id/sensor_info" 73 android:layout_width="wrap_content" 74 android:layout_height="wrap_content" 75 android:scrollbars="vertical" 76 android:textStyle="bold"/> 77 </LinearLayout> 78 79</RelativeLayout> 80