Home | History | Annotate | Download | only in layout
      1 <?xml version="1.0" encoding="utf-8"?>
      2 <!--
      3   ~ Copyright (C) 2018 The Android Open Source Project
      4   ~
      5   ~ Licensed under the Apache License, Version 2.0 (the "License");
      6   ~ you may not use this file except in compliance with the License.
      7   ~ You may obtain a copy of the License at
      8   ~
      9   ~      http://www.apache.org/licenses/LICENSE-2.0
     10   ~
     11   ~ Unless required by applicable law or agreed to in writing, software
     12   ~ distributed under the License is distributed on an "AS IS" BASIS,
     13   ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     14   ~ See the License for the specific language governing permissions and
     15   ~ limitations under the License
     16   -->
     17 
     18 <LinearLayout
     19     xmlns:android="http://schemas.android.com/apk/res/android"
     20     xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent"
     21     android:layout_height="wrap_content"
     22     android:orientation="vertical"
     23     android:paddingLeft="4dp">
     24 
     25     <TextView
     26         android:id="@+id/textView2"
     27         android:layout_width="wrap_content"
     28         android:layout_height="wrap_content"
     29         android:textStyle="bold"
     30         android:text="Set Configuration Value"/>
     31 
     32     <LinearLayout
     33         xmlns:android="http://schemas.android.com/apk/res/android"
     34         android:layout_width="match_parent"
     35         android:layout_height="wrap_content"
     36         android:orientation="horizontal"
     37         android:paddingLeft="4dp">
     38 
     39         <TextView
     40             android:layout_width="wrap_content"
     41             android:layout_height="wrap_content" android:layout_weight="0"
     42             android:text="Item"/>
     43 
     44         <EditText
     45             android:id="@+id/set_config_item"
     46             android:layout_width="wrap_content"
     47             android:layout_height="wrap_content"
     48             android:layout_weight="1"
     49             android:inputType="number" android:text="0"/>
     50     </LinearLayout>
     51 
     52     <LinearLayout
     53         xmlns:android="http://schemas.android.com/apk/res/android"
     54         android:layout_width="match_parent"
     55         android:layout_height="wrap_content"
     56         android:orientation="horizontal"
     57         android:paddingLeft="4dp">
     58 
     59         <TextView
     60             android:layout_width="wrap_content"
     61             android:layout_height="wrap_content" android:layout_weight="0"
     62             android:text="Value"/>
     63 
     64         <EditText
     65             android:id="@+id/set_config_value"
     66             android:layout_width="wrap_content"
     67             android:layout_height="wrap_content"
     68             android:layout_weight="1"
     69             android:inputType="number" android:text="0"/>
     70     </LinearLayout>
     71 
     72     <Button
     73         android:id="@+id/config_button"
     74         android:layout_width="match_parent"
     75         android:layout_height="wrap_content"
     76         android:paddingRight="4dp"
     77         android:text="Set"/>
     78 
     79     <View
     80         android:layout_width="match_parent"
     81         android:layout_height= "1dp"
     82         android:paddingRight="4dp"
     83         android:background="?android:attr/listDivider" />
     84 
     85     <TextView
     86         android:layout_width="wrap_content"
     87         android:layout_height="wrap_content"
     88         android:textStyle="bold"
     89         android:text="Cached Config Values"/>
     90 
     91     <ListView
     92         android:id="@+id/config_list"
     93         android:layout_width="match_parent"
     94         android:layout_height="wrap_content"/>
     95 
     96 </LinearLayout>