Home | History | Annotate | Download | only in layout
      1 <?xml version="1.0" encoding="utf-8"?>
      2 <!-- Copyright (C) 2018 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 
     17 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
     18     android:orientation="vertical"
     19     android:padding="4dip"
     20     android:gravity="center_horizontal"
     21     android:layout_width="fill_parent"
     22     android:layout_height="fill_parent">
     23 
     24     <ScrollView
     25         android:layout_width="match_parent"
     26         android:layout_height="match_parent"
     27         android:layout_marginBottom="8dp"
     28         android:layout_marginEnd="8dp"
     29         android:layout_marginStart="8dp"
     30         android:layout_marginTop="8dp"
     31         >
     32 
     33         <LinearLayout
     34             android:layout_width="match_parent"
     35             android:layout_height="0dp"
     36             android:orientation="vertical">
     37 
     38             <TextView
     39                 android:id="@+id/textViewBuildtitle"
     40                 android:layout_width="match_parent"
     41                 android:layout_height="wrap_content"
     42                 android:text="Current Build:" />
     43 
     44             <TextView
     45                 android:id="@+id/textViewBuild"
     46                 android:layout_width="match_parent"
     47                 android:layout_height="wrap_content"
     48                 android:text="@string/unknown" />
     49 
     50             <Space
     51                 android:layout_width="match_parent"
     52                 android:layout_height="40dp" />
     53 
     54             <TextView
     55                 android:id="@+id/textView4"
     56                 android:layout_width="match_parent"
     57                 android:layout_height="wrap_content"
     58                 android:text="Apply an update" />
     59 
     60             <TextView
     61                 android:id="@+id/textViewConfigsDirHint"
     62                 android:layout_width="match_parent"
     63                 android:layout_height="wrap_content"
     64                 android:layout_marginTop="4dp"
     65                 android:text="Config files located in NULL"
     66                 android:textColor="#777"
     67                 android:textSize="10sp"
     68                 android:textStyle="italic" />
     69 
     70             <Spinner
     71                 android:id="@+id/spinnerConfigs"
     72                 android:layout_width="match_parent"
     73                 android:layout_height="wrap_content"
     74                 android:layout_marginTop="8dp" />
     75 
     76             <LinearLayout
     77                 android:layout_width="match_parent"
     78                 android:layout_height="wrap_content"
     79                 android:layout_marginTop="8dp"
     80                 android:orientation="horizontal">
     81 
     82                 <Button
     83                     android:id="@+id/buttonReload"
     84                     android:layout_width="0dp"
     85                     android:layout_height="wrap_content"
     86                     android:layout_weight="1"
     87                     android:onClick="onReloadClick"
     88                     android:text="Reload" />
     89 
     90                 <Button
     91                     android:id="@+id/buttonViewConfig"
     92                     android:layout_width="0dp"
     93                     android:layout_height="wrap_content"
     94                     android:layout_weight="1"
     95                     android:onClick="onViewConfigClick"
     96                     android:text="View config" />
     97 
     98                 <Button
     99                     android:id="@+id/buttonApplyConfig"
    100                     android:layout_width="0dp"
    101                     android:layout_height="wrap_content"
    102                     android:layout_weight="1"
    103                     android:onClick="onApplyConfigClick"
    104                     android:text="Apply" />
    105             </LinearLayout>
    106 
    107             <LinearLayout
    108                 android:layout_width="match_parent"
    109                 android:layout_height="wrap_content"
    110                 android:layout_marginTop="24dp"
    111                 android:orientation="horizontal">
    112 
    113                 <TextView
    114                     android:id="@+id/textView3"
    115                     android:layout_width="wrap_content"
    116                     android:layout_height="wrap_content"
    117                     android:text="Updater state:" />
    118 
    119                 <TextView
    120                     android:id="@+id/textViewUpdaterState"
    121                     android:layout_width="wrap_content"
    122                     android:layout_height="wrap_content"
    123                     android:layout_marginLeft="8dp"
    124                     android:text="@string/unknown" />
    125             </LinearLayout>
    126 
    127             <LinearLayout
    128                 android:layout_width="match_parent"
    129                 android:layout_height="wrap_content"
    130                 android:layout_marginTop="4dp"
    131                 android:orientation="horizontal">
    132 
    133                 <TextView
    134                     android:id="@+id/textView"
    135                     android:layout_width="wrap_content"
    136                     android:layout_height="wrap_content"
    137                     android:text="Engine status:" />
    138 
    139                 <TextView
    140                     android:id="@+id/textViewEngineStatus"
    141                     android:layout_width="wrap_content"
    142                     android:layout_height="wrap_content"
    143                     android:layout_marginLeft="8dp"
    144                     android:text="@string/unknown" />
    145             </LinearLayout>
    146 
    147             <LinearLayout
    148                 android:layout_width="match_parent"
    149                 android:layout_height="wrap_content"
    150                 android:layout_marginTop="4dp"
    151                 android:orientation="horizontal">
    152 
    153                 <TextView
    154                     android:id="@+id/textView2"
    155                     android:layout_width="wrap_content"
    156                     android:layout_height="wrap_content"
    157                     android:text="Engine error:" />
    158 
    159                 <TextView
    160                     android:id="@+id/textViewEngineErrorCode"
    161                     android:layout_width="wrap_content"
    162                     android:layout_height="wrap_content"
    163                     android:layout_marginLeft="8dp"
    164                     android:text="@string/unknown" />
    165             </LinearLayout>
    166 
    167 
    168             <ProgressBar
    169                 android:id="@+id/progressBar"
    170                 style="?android:attr/progressBarStyleHorizontal"
    171                 android:layout_marginTop="8dp"
    172                 android:min="0"
    173                 android:max="100"
    174                 android:layout_width="match_parent"
    175                 android:layout_height="wrap_content" />
    176 
    177             <LinearLayout
    178                 android:layout_width="match_parent"
    179                 android:layout_height="wrap_content"
    180                 android:layout_marginTop="12dp"
    181                 android:orientation="horizontal">
    182 
    183                 <Button
    184                     android:id="@+id/buttonStop"
    185                     android:layout_width="0dp"
    186                     android:layout_height="wrap_content"
    187                     android:layout_weight="1"
    188                     android:onClick="onStopClick"
    189                     android:text="Stop" />
    190 
    191                 <Button
    192                     android:id="@+id/buttonReset"
    193                     android:layout_width="0dp"
    194                     android:layout_height="wrap_content"
    195                     android:layout_weight="1"
    196                     android:onClick="onResetClick"
    197                     android:text="Reset" />
    198             </LinearLayout>
    199 
    200             <LinearLayout
    201                 android:layout_width="match_parent"
    202                 android:layout_height="wrap_content"
    203                 android:layout_marginTop="12dp"
    204                 android:orientation="horizontal">
    205 
    206                 <Button
    207                     android:id="@+id/buttonSuspend"
    208                     android:layout_width="0dp"
    209                     android:layout_height="wrap_content"
    210                     android:layout_weight="1"
    211                     android:onClick="onSuspendClick"
    212                     android:text="Suspend" />
    213 
    214                 <Button
    215                     android:id="@+id/buttonResume"
    216                     android:layout_width="0dp"
    217                     android:layout_height="wrap_content"
    218                     android:layout_weight="1"
    219                     android:onClick="onResumeClick"
    220                     android:text="Resume" />
    221             </LinearLayout>
    222 
    223             <TextView
    224                 android:id="@+id/textViewUpdateInfo"
    225                 android:layout_width="wrap_content"
    226                 android:layout_height="wrap_content"
    227                 android:layout_marginTop="14dp"
    228                 android:textColor="#777"
    229                 android:textSize="10sp"
    230                 android:textStyle="italic"
    231                 android:text="@string/finish_update_info" />
    232 
    233             <Button
    234                 android:id="@+id/buttonSwitchSlot"
    235                 android:layout_width="wrap_content"
    236                 android:layout_height="match_parent"
    237                 android:onClick="onSwitchSlotClick"
    238                 android:text="@string/switch_slot" />
    239 
    240         </LinearLayout>
    241 
    242     </ScrollView>
    243 
    244 </LinearLayout>
    245