|
11 | 11 | android:layout_alignParentStart="true"
|
12 | 12 | android:layout_alignParentTop="true" />
|
13 | 13 |
|
| 14 | + <TextView |
| 15 | + android:id="@+id/titleStatus" |
| 16 | + android:layout_width="match_parent" |
| 17 | + android:layout_height="wrap_content" |
| 18 | + android:text="@string/ota_provider_query_image_response_status_text" |
| 19 | + android:textSize="16sp" |
| 20 | + android:layout_below="@id/addressUpdateFragment" /> |
| 21 | + |
| 22 | + <Spinner |
| 23 | + android:id="@+id/titleStatusSp" |
| 24 | + android:layout_width="wrap_content" |
| 25 | + android:layout_height="wrap_content" |
| 26 | + android:hint="@string/subscribe_dialog_keep_subscriptions_hint" |
| 27 | + android:inputType="text" |
| 28 | + android:spinnerMode="dropdown" |
| 29 | + android:textSize="16sp" |
| 30 | + android:layout_below="@id/titleStatus" /> |
| 31 | + |
14 | 32 | <EditText
|
15 | 33 | android:layout_width="wrap_content"
|
16 | 34 | android:layout_height="wrap_content"
|
17 |
| - android:id="@+id/vendorIdTv" |
| 35 | + android:id="@+id/delayActionTimeTv" |
18 | 36 | android:textSize="16sp"
|
19 | 37 | android:padding="16dp"
|
20 |
| - android:layout_margin="8dp" |
21 | 38 | android:layout_alignParentStart="true"
|
22 | 39 | android:enabled="false"
|
23 |
| - android:text="@string/ota_provider_vendorId_text" |
24 |
| - android:layout_below="@id/addressUpdateFragment" /> |
| 40 | + android:text="@string/ota_provider_delayed_action_time_text" |
| 41 | + android:visibility="gone" |
| 42 | + android:layout_below="@id/titleStatusSp" /> |
25 | 43 |
|
26 | 44 | <EditText
|
27 | 45 | android:layout_width="match_parent"
|
28 | 46 | android:layout_height="wrap_content"
|
29 |
| - android:id="@+id/vendorIdEd" |
| 47 | + android:id="@+id/delayActionTimeEd" |
30 | 48 | android:textSize="16sp"
|
31 | 49 | android:padding="16dp"
|
32 |
| - android:layout_margin="8dp" |
| 50 | + android:visibility="gone" |
33 | 51 | android:layout_toEndOf="@id/vendorIdTv"
|
34 |
| - android:layout_below="@id/addressUpdateFragment" |
35 |
| - android:autofillHints="@string/ota_provider_vendorId_text" |
| 52 | + android:layout_below="@id/titleStatusSp" |
| 53 | + android:autofillHints="@string/ota_provider_delayed_action_time_text" |
36 | 54 | android:inputType="numberDecimal" />
|
37 | 55 |
|
| 56 | + <TextView |
| 57 | + android:id="@+id/titleUserConsentNeeded" |
| 58 | + android:layout_width="match_parent" |
| 59 | + android:layout_height="wrap_content" |
| 60 | + android:text="@string/ota_provider_user_consent_needed_text" |
| 61 | + android:textSize="16sp" |
| 62 | + android:layout_below="@id/delayActionTimeTv" /> |
| 63 | + |
| 64 | + <Spinner |
| 65 | + android:id="@+id/titleUserConsentNeededSp" |
| 66 | + android:layout_width="wrap_content" |
| 67 | + android:layout_height="wrap_content" |
| 68 | + android:entries="@array/chip_select_menu" |
| 69 | + android:inputType="text" |
| 70 | + android:spinnerMode="dropdown" |
| 71 | + android:textSize="16sp" |
| 72 | + android:layout_below="@id/titleUserConsentNeeded" /> |
| 73 | + |
| 74 | + <TextView |
| 75 | + android:id="@+id/titleRWAttribute" |
| 76 | + android:layout_width="wrap_content" |
| 77 | + android:layout_height="wrap_content" |
| 78 | + android:text="@string/ota_provider_read_write_attribute_text" |
| 79 | + android:textSize="16sp" |
| 80 | + android:layout_below="@id/titleUserConsentNeededSp" /> |
| 81 | + |
| 82 | + <TextView |
| 83 | + android:id="@+id/writeAclBtn" |
| 84 | + android:layout_width="wrap_content" |
| 85 | + android:layout_height="wrap_content" |
| 86 | + android:layout_below="@id/titleUserConsentNeededSp" |
| 87 | + android:layout_marginStart="5dp" |
| 88 | + android:layout_marginTop="5dp" |
| 89 | + android:layout_marginEnd="5dp" |
| 90 | + android:layout_marginBottom="5dp" |
| 91 | + android:layout_toStartOf="@id/readAttributeBtn" |
| 92 | + android:background="@android:color/darker_gray" |
| 93 | + android:padding="5dp" |
| 94 | + android:text="@string/ota_provider_write_acl_btn_text" |
| 95 | + android:textSize="16sp" /> |
| 96 | + |
| 97 | + <TextView |
| 98 | + android:id="@+id/readAttributeBtn" |
| 99 | + android:layout_width="wrap_content" |
| 100 | + android:layout_height="wrap_content" |
| 101 | + android:text="@string/ota_provider_read_attribute_btn_text" |
| 102 | + android:padding="5dp" |
| 103 | + android:layout_margin="5dp" |
| 104 | + android:background="@android:color/darker_gray" |
| 105 | + android:textSize="16sp" |
| 106 | + android:layout_toStartOf="@id/writeAttributeBtn" |
| 107 | + android:layout_below="@id/titleUserConsentNeededSp" /> |
| 108 | + |
| 109 | + <TextView |
| 110 | + android:id="@+id/writeAttributeBtn" |
| 111 | + android:layout_width="wrap_content" |
| 112 | + android:layout_height="wrap_content" |
| 113 | + android:text="@string/ota_provider_write_attribute_btn_text" |
| 114 | + android:padding="5dp" |
| 115 | + android:layout_margin="5dp" |
| 116 | + android:background="@android:color/darker_gray" |
| 117 | + android:textSize="16sp" |
| 118 | + android:layout_alignParentEnd="true" |
| 119 | + android:layout_below="@id/titleUserConsentNeededSp" /> |
| 120 | + |
| 121 | + <Spinner |
| 122 | + android:id="@+id/attributeSp" |
| 123 | + android:layout_width="wrap_content" |
| 124 | + android:layout_height="wrap_content" |
| 125 | + android:inputType="text" |
| 126 | + android:spinnerMode="dropdown" |
| 127 | + android:textSize="16sp" |
| 128 | + android:layout_below="@id/titleRWAttribute" /> |
| 129 | + |
| 130 | + <EditText |
| 131 | + android:id="@+id/vendorIdTv" |
| 132 | + android:layout_width="wrap_content" |
| 133 | + android:layout_height="wrap_content" |
| 134 | + android:layout_below="@id/attributeSp" |
| 135 | + android:layout_alignParentStart="true" |
| 136 | + android:layout_marginStart="8dp" |
| 137 | + android:layout_marginEnd="8dp" |
| 138 | + android:enabled="false" |
| 139 | + android:padding="8dp" |
| 140 | + android:text="@string/ota_provider_vendorId_text" |
| 141 | + android:textSize="16sp" /> |
| 142 | + |
| 143 | + <EditText |
| 144 | + android:id="@+id/vendorIdEd" |
| 145 | + android:layout_width="match_parent" |
| 146 | + android:layout_height="wrap_content" |
| 147 | + android:layout_below="@id/attributeSp" |
| 148 | + android:layout_marginStart="8dp" |
| 149 | + android:layout_marginEnd="8dp" |
| 150 | + android:layout_toEndOf="@id/vendorIdTv" |
| 151 | + android:autofillHints="@string/ota_provider_vendorId_text" |
| 152 | + android:inputType="numberDecimal" |
| 153 | + android:padding="8dp" |
| 154 | + android:textSize="16sp" /> |
| 155 | + |
38 | 156 | <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
39 | 157 | android:orientation="vertical"
|
40 | 158 | android:layout_width="match_parent"
|
|
45 | 163 | android:id="@+id/selectFirmwareFileBtn"
|
46 | 164 | android:layout_width="wrap_content"
|
47 | 165 | android:layout_height="wrap_content"
|
48 |
| - android:padding="16dp" |
| 166 | + android:padding="8dp" |
49 | 167 | android:layout_margin="8dp"
|
50 | 168 | android:layout_columnWeight="1"
|
51 | 169 | android:background="@android:color/darker_gray"
|
52 | 170 | android:text="@string/ota_provider_select_firmware_file_text"
|
53 | 171 | android:textSize="16sp"/>
|
| 172 | + <TextView |
| 173 | + android:id="@+id/updateOTAStatusBtn" |
| 174 | + android:layout_width="wrap_content" |
| 175 | + android:layout_height="wrap_content" |
| 176 | + android:padding="8dp" |
| 177 | + android:layout_margin="8dp" |
| 178 | + android:background="@android:color/darker_gray" |
| 179 | + android:text="@string/ota_provider_update_ota_status_text" |
| 180 | + android:textSize="16sp"/> |
54 | 181 | <TextView
|
55 | 182 | android:id="@+id/announceOTAProviderBtn"
|
56 | 183 | android:layout_width="wrap_content"
|
57 | 184 | android:layout_height="wrap_content"
|
58 |
| - android:padding="16dp" |
| 185 | + android:padding="8dp" |
59 | 186 | android:layout_margin="8dp"
|
60 | 187 | android:background="@android:color/darker_gray"
|
61 | 188 | android:text="@string/ota_provider_start_firmware_update_text"
|
|
65 | 192 | android:id="@+id/firmwareFileTv"
|
66 | 193 | android:layout_width="match_parent"
|
67 | 194 | android:layout_height="wrap_content"
|
| 195 | + android:layout_columnWeight="1" |
68 | 196 | android:layout_below="@id/buttonLayout"
|
69 |
| - android:padding="16dp" |
70 |
| - android:layout_margin="8dp" |
71 | 197 | android:layout_gravity="center"
|
72 |
| - android:layout_columnWeight="4" |
73 |
| - android:textSize="16sp"/> |
| 198 | + android:layout_marginStart="8dp" |
| 199 | + android:layout_marginEnd="8dp" |
| 200 | + android:textSize="12sp" /> |
| 201 | + |
74 | 202 | <TextView
|
75 | 203 | android:id="@+id/commandStatusTv"
|
76 | 204 | android:layout_width="match_parent"
|
|
79 | 207 | android:padding="16dp"
|
80 | 208 | android:minLines="4"
|
81 | 209 | android:singleLine="false"
|
82 |
| - android:textSize="20sp" /> |
| 210 | + android:textSize="16sp" /> |
83 | 211 | </RelativeLayout>
|
0 commit comments