| 1 |
<?xml version="1.0" encoding="utf-8"?> |
| 2 |
<!-- |
| 3 |
/* |
| 4 |
* Copyright (C) 2012 The Android Open Source Project |
| 5 |
* |
| 6 |
* Licensed under the Apache License, Version 2.0 (the "License"); you may not |
| 7 |
* use this file except in compliance with the License. You may obtain a copy of |
| 8 |
* the License at |
| 9 |
* |
| 10 |
* http://www.apache.org/licenses/LICENSE-2.0 |
| 11 |
* |
| 12 |
* Unless required by applicable law or agreed to in writing, software |
| 13 |
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT |
| 14 |
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the |
| 15 |
* License for the specific language governing permissions and limitations under |
| 16 |
* the License. |
| 17 |
*/ |
| 18 |
--> |
| 19 |
<LinearLayout |
| 20 |
xmlns:android="http://schemas.android.com/apk/res/android" |
| 21 |
xmlns:tools="http://schemas.android.com/tools" |
| 22 |
android:layout_width="fill_parent" |
| 23 |
android:layout_height="fill_parent" |
| 24 |
android:orientation="vertical" |
| 25 |
> |
| 26 |
|
| 27 |
<TableLayout |
| 28 |
android:layout_width="wrap_content" |
| 29 |
android:layout_height="wrap_content" |
| 30 |
android:layout_gravity="center_horizontal" |
| 31 |
> |
| 32 |
|
| 33 |
<TableRow |
| 34 |
android:layout_width="wrap_content" |
| 35 |
android:layout_height="wrap_content" > |
| 36 |
|
| 37 |
<TextView |
| 38 |
android:layout_width="wrap_content" |
| 39 |
android:layout_height="wrap_content" |
| 40 |
android:text="@string/sensors_sample_rate" |
| 41 |
android:gravity="right" |
| 42 |
android:layout_marginRight="8dp" |
| 43 |
/> |
| 44 |
<EditText |
| 45 |
android:id="@+id/textSampleRate" |
| 46 |
android:layout_width="wrap_content" |
| 47 |
android:layout_height="wrap_content" |
| 48 |
android:ems="4" |
| 49 |
android:gravity="right" |
| 50 |
android:imeOptions="actionNone|flagNoExtractUi|flagNoFullscreen|" |
| 51 |
android:inputType="number" |
| 52 |
android:text="@string/sensors_default_sample_rate" /> |
| 53 |
|
| 54 |
<TextView |
| 55 |
android:layout_width="wrap_content" |
| 56 |
android:layout_height="wrap_content" |
| 57 |
android:text="@string/sensors_hz_per_sensor" /> |
| 58 |
|
| 59 |
</TableRow> |
| 60 |
|
| 61 |
<TableRow |
| 62 |
android:layout_width="wrap_content" |
| 63 |
android:layout_height="wrap_content" > |
| 64 |
|
| 65 |
<TextView |
| 66 |
android:layout_width="wrap_content" |
| 67 |
android:layout_height="wrap_content" |
| 68 |
android:gravity="right" |
| 69 |
android:layout_marginRight="8dp" |
| 70 |
android:text="@string/sensors_actual_rate" /> |
| 71 |
|
| 72 |
<TextView |
| 73 |
android:id="@+id/textActualRate" |
| 74 |
android:gravity="right" |
| 75 |
android:text="--" |
| 76 |
tools:ignore="HardcodedText" |
| 77 |
android:paddingLeft="8dp" |
| 78 |
android:paddingRight="8dp" |
| 79 |
android:layout_width="wrap_content" |
| 80 |
android:layout_height="wrap_content" /> |
| 81 |
|
| 82 |
<TextView |
| 83 |
android:layout_width="wrap_content" |
| 84 |
android:layout_height="wrap_content" |
| 85 |
android:text="@string/sensors_hz_average" /> |
| 86 |
|
| 87 |
</TableRow> |
| 88 |
|
| 89 |
</TableLayout> |
| 90 |
|
| 91 |
<TextView |
| 92 |
android:layout_width="fill_parent" |
| 93 |
android:layout_height="wrap_content" |
| 94 |
android:layout_marginTop="16dp" |
| 95 |
android:text="@string/sensors_top_description" /> |
| 96 |
|
| 97 |
<ScrollView |
| 98 |
android:id="@+id/scrollView1" |
| 99 |
android:layout_width="fill_parent" |
| 100 |
android:layout_height="0dp" |
| 101 |
android:layout_weight="1" > |
| 102 |
|
| 103 |
<TableLayout |
| 104 |
android:id="@+id/tableLayout" |
| 105 |
android:layout_width="fill_parent" |
| 106 |
android:layout_height="wrap_content" |
| 107 |
android:saveEnabled="false" /> |
| 108 |
|
| 109 |
</ScrollView> |
| 110 |
|
| 111 |
<!-- Placeholder status text. Becomes visibility=gone when empty. --> |
| 112 |
<TextView |
| 113 |
android:id="@+id/textStatus" |
| 114 |
android:layout_width="fill_parent" |
| 115 |
android:layout_height="wrap_content" |
| 116 |
android:layout_marginTop="8dp" |
| 117 |
android:textAppearance="?android:attr/textAppearanceSmall" /> |
| 118 |
|
| 119 |
<!-- Placeholder error text. Becomes visibility=gone when empty. --> |
| 120 |
<TextView |
| 121 |
android:id="@+id/textError" |
| 122 |
android:layout_width="fill_parent" |
| 123 |
android:layout_height="wrap_content" |
| 124 |
android:gravity="center_horizontal" |
| 125 |
android:background="#F00F" |
| 126 |
android:padding="8dp" |
| 127 |
android:textAppearance="?android:attr/textAppearanceSmall" |
| 128 |
android:textColor="#FFF0" /> |
| 129 |
|
| 130 |
</LinearLayout> |