Home | History | Annotate | Download | only in layout
      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                 />

     45             <EditText
     46                 android:id="@+id/textSampleRate"
     47                 android:layout_width="wrap_content"
     48                 android:layout_height="wrap_content"
     49                 android:ems="4"
     50                 android:gravity="right"
     51                 android:imeOptions="actionNone|flagNoExtractUi|flagNoFullscreen|"
     52                 android:inputType="number"
     53                 android:text="@string/sensors_default_sample_rate" />
     54 
     55             <TextView
     56                 android:layout_width="wrap_content"
     57                 android:layout_height="wrap_content"
     58                 android:text="@string/sensors_hz_per_sensor" />
     59 
     60         </TableRow>
     61 
     62         <TableRow
     63             android:layout_width="wrap_content"
     64             android:layout_height="wrap_content" >
     65 
     66             <TextView
     67                 android:layout_width="wrap_content"
     68                 android:layout_height="wrap_content"
     69                 android:gravity="right"
     70                 android:layout_marginRight="8dp"
     71                 android:text="@string/sensors_actual_rate" />
     72 
     73             <TextView
     74                 android:id="@+id/textActualRate"
     75                 android:gravity="right"
     76                 android:text="--"
     77                 tools:ignore="HardcodedText"
     78                 android:paddingLeft="8dp"
     79                 android:paddingRight="8dp"
     80                 android:layout_width="wrap_content"
     81                 android:layout_height="wrap_content" />
     82 
     83             <TextView
     84                 android:layout_width="wrap_content"
     85                 android:layout_height="wrap_content"
     86                 android:text="@string/sensors_hz_average" />
     87 
     88         </TableRow>
     89 
     90     </TableLayout>
     91 
     92     <TextView
     93         android:layout_width="fill_parent"
     94         android:layout_height="wrap_content"
     95         android:layout_marginTop="16dp"
     96         android:text="@string/sensors_top_description" />
     97 
     98     <ScrollView
     99         android:id="@+id/scrollView1"
    100         android:layout_width="fill_parent"
    101         android:layout_height="0dp"
    102         android:layout_weight="1" >
    103 
    104         <TableLayout
    105             android:id="@+id/tableLayout"
    106             android:layout_width="fill_parent"
    107             android:layout_height="wrap_content"
    108             android:saveEnabled="false" />
    109 
    110     </ScrollView>
    111 
    112     <!-- Placeholder status text. Becomes visibility=gone when empty. -->
    113     <TextView
    114         android:id="@+id/textStatus"
    115         android:layout_width="fill_parent"
    116         android:layout_height="wrap_content"
    117         android:layout_marginTop="8dp"
    118         android:textAppearance="?android:attr/textAppearanceSmall" />
    119 
    120     <!-- Placeholder error text. Becomes visibility=gone when empty. -->
    121     <TextView
    122         android:id="@+id/textError"
    123         android:layout_width="fill_parent"
    124         android:layout_height="wrap_content"
    125         android:gravity="center_horizontal"
    126         android:background="#F00F"
    127         android:padding="8dp"
    128         android:textAppearance="?android:attr/textAppearanceSmall"
    129         android:textColor="#FFF0" />
    130 
    131 </LinearLayout>