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