Home | History | Annotate | Download | only in layout
      1 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
      2     xmlns:tools="http://schemas.android.com/tools"
      3     android:layout_width="match_parent"
      4     android:layout_height="match_parent"
      5     android:orientation="vertical"
      6     tools:context="org.chromium.latency.walt.DiagnosticsFragment">
      7 
      8     <!-- The whole list of options -->
      9     <ScrollView
     10         android:layout_width="match_parent"
     11         android:layout_height="0dp"
     12         android:layout_weight="3">
     13 
     14         <LinearLayout
     15             android:layout_width="match_parent"
     16             android:layout_height="0dp"
     17             android:orientation="vertical">
     18 
     19             <!-- Reconnect -->
     20             <LinearLayout
     21                 style="@style/MenuItemStyle"
     22                 android:onClick="onClickReconnect">
     23 
     24                 <ImageView
     25                     style="@style/MenuIconStyle"
     26                     android:src="@drawable/ic_usb_black_24dp" />
     27 
     28                 <LinearLayout
     29                     android:layout_width="match_parent"
     30                     android:layout_height="match_parent"
     31                     android:gravity="center_vertical"
     32                     android:orientation="vertical">
     33 
     34                     <TextView
     35                         style="@style/MenuTextTop"
     36                         android:text="Reconnect" />
     37 
     38                     <TextView
     39                         android:visibility="gone"
     40                         style="@style/MenuTextBottom"
     41                         android:text="TBD: Conn status" />
     42 
     43 
     44                 </LinearLayout>
     45             </LinearLayout>
     46             <!-- End of Reconnect -->
     47 
     48             <View style="@style/MenuDivider" />
     49 
     50             <!-- Ping -->
     51             <LinearLayout
     52                 style="@style/MenuItemStyle"
     53                 android:onClick="onClickPing">
     54 
     55                 <ImageView
     56                     style="@style/MenuIconStyle"
     57                     android:src="@drawable/ic_swap_horiz_black_24dp" />
     58 
     59                 <LinearLayout
     60                     android:layout_width="match_parent"
     61                     android:layout_height="match_parent"
     62                     android:gravity="center_vertical"
     63                     android:orientation="vertical">
     64 
     65                     <TextView
     66                         style="@style/MenuTextTop"
     67                         android:text="Ping" />
     68 
     69                     <TextView
     70                         style="@style/MenuTextBottom"
     71                         android:text="Ping over USB with 1 byte" />
     72 
     73 
     74                 </LinearLayout>
     75             </LinearLayout>
     76             <!-- End of Ping -->
     77 
     78             <View style="@style/MenuDivider" />
     79 
     80             <!-- ReSync -->
     81             <LinearLayout
     82                 style="@style/MenuItemStyle"
     83                 android:onClick="onClickSync">
     84 
     85                 <ImageView
     86                     style="@style/MenuIconStyle"
     87                     android:src="@drawable/ic_schedule_black_24dp" />
     88 
     89                 <LinearLayout
     90                     android:layout_width="match_parent"
     91                     android:layout_height="match_parent"
     92                     android:gravity="center_vertical"
     93                     android:orientation="vertical">
     94 
     95                     <TextView
     96                         style="@style/MenuTextTop"
     97                         android:text="Re-sync clocks" />
     98 
     99                 </LinearLayout>
    100             </LinearLayout>
    101             <!-- End of ReSync -->
    102 
    103             <View style="@style/MenuDivider" />
    104 
    105             <!-- CheckDrift -->
    106             <LinearLayout
    107                 style="@style/MenuItemStyle"
    108                 android:onClick="onClickCheckDrift">
    109 
    110                 <ImageView
    111                     style="@style/MenuIconStyle"
    112                     android:src="@drawable/ic_timelapse_black_24dp" />
    113 
    114                 <LinearLayout
    115                     android:layout_width="match_parent"
    116                     android:layout_height="match_parent"
    117                     android:gravity="center_vertical"
    118                     android:orientation="vertical">
    119 
    120                     <TextView
    121                         style="@style/MenuTextTop"
    122                         android:text="Check clock drift" />
    123 
    124                     <TextView
    125                         style="@style/MenuTextBottom"
    126                         android:text="Check how much clocks diverged" />
    127 
    128 
    129                 </LinearLayout>
    130             </LinearLayout>
    131             <!-- End of CheckDrift -->
    132 
    133             <View style="@style/MenuDivider" />
    134 
    135             <!-- Program -->
    136             <LinearLayout
    137                 style="@style/MenuItemStyle"
    138                 android:onClick="onClickProgram">
    139 
    140                 <ImageView
    141                     style="@style/MenuIconStyle"
    142                     android:src="@drawable/ic_system_update_alt_black_24dp" />
    143 
    144                 <LinearLayout
    145                     android:layout_width="match_parent"
    146                     android:layout_height="match_parent"
    147                     android:gravity="center_vertical"
    148                     android:orientation="vertical">
    149 
    150                     <TextView
    151                         style="@style/MenuTextTop"
    152                         android:text="Update WALT Firmware" />
    153 
    154                     <TextView
    155                         style="@style/MenuTextBottom"
    156                         android:text="Please press the button on the Teensy first" />
    157 
    158 
    159                 </LinearLayout>
    160             </LinearLayout>
    161             <!-- Program -->
    162 
    163             <!--<View style="@style/MenuDivider" />-->
    164 
    165             <!-- Send T TODO: replace with send any char, it says nothing on the log, broadcast? -->
    166             <!--
    167             <LinearLayout
    168                 style="@style/MenuItemStyle"
    169                 android:onClick="onClickSendT">
    170 
    171                 <ImageView
    172                     style="@style/MenuIconStyle"
    173                     android:src="@drawable/ic_swap_horiz_black_24dp" />
    174 
    175                 <LinearLayout
    176                     android:layout_width="match_parent"
    177                     android:layout_height="match_parent"
    178                     android:gravity="center_vertical"
    179                     android:orientation="vertical">
    180 
    181                     <TextView
    182                         style="@style/MenuTextTop"
    183                         android:text="Send 'T'" />
    184 
    185                     <TextView
    186                         style="@style/MenuTextBottom"
    187                         android:text="..." />
    188 
    189 
    190                 </LinearLayout>
    191             </LinearLayout>
    192             -->
    193             <!-- End of Send T -->
    194         </LinearLayout>
    195     </ScrollView>
    196 
    197     <TextView
    198         android:id="@+id/txt_log_diag"
    199         android:layout_width="match_parent"
    200         android:layout_height="0dp"
    201         android:layout_weight="2"
    202         android:background="#BBBBBB"
    203         android:gravity="bottom"
    204         android:scrollbars="vertical" />
    205 
    206 </LinearLayout>
    207