|
| 1 | +<?xml version="1.0" encoding="utf-8"?> |
| 2 | +<androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android" |
| 3 | + xmlns:app="http://schemas.android.com/apk/res-auto" |
| 4 | + android:layout_width="match_parent" |
| 5 | + android:layout_height="match_parent" |
| 6 | + android:background="?attr/colorSurface" |
| 7 | + android:fitsSystemWindows="true"> |
| 8 | + |
| 9 | + <com.google.android.material.appbar.AppBarLayout |
| 10 | + android:layout_width="match_parent" |
| 11 | + android:layout_height="wrap_content" |
| 12 | + app:elevation="0dp"> |
| 13 | + |
| 14 | + <com.google.android.material.appbar.MaterialToolbar |
| 15 | + android:id="@+id/toolbar" |
| 16 | + android:layout_width="match_parent" |
| 17 | + android:layout_height="?attr/actionBarSize" |
| 18 | + app:navigationIcon="@drawable/ic_arrow_back" |
| 19 | + app:title="@string/menu_tools" |
| 20 | + app:titleTextColor="?attr/colorOnSurface" /> |
| 21 | + </com.google.android.material.appbar.AppBarLayout> |
| 22 | + |
| 23 | + <androidx.core.widget.NestedScrollView |
| 24 | + android:layout_width="match_parent" |
| 25 | + android:layout_height="match_parent" |
| 26 | + android:clipToPadding="false" |
| 27 | + android:paddingBottom="16dp" |
| 28 | + app:layout_behavior="@string/appbar_scrolling_view_behavior"> |
| 29 | + |
| 30 | + <LinearLayout |
| 31 | + android:layout_width="match_parent" |
| 32 | + android:layout_height="wrap_content" |
| 33 | + android:orientation="vertical" |
| 34 | + android:paddingHorizontal="16dp"> |
| 35 | + |
| 36 | + <TextView |
| 37 | + style="@style/SettingsSectionHeader" |
| 38 | + android:text="@string/tools_connection_test" /> |
| 39 | + |
| 40 | + <com.google.android.material.card.MaterialCardView style="@style/SettingsCard"> |
| 41 | + |
| 42 | + <LinearLayout |
| 43 | + android:layout_width="match_parent" |
| 44 | + android:layout_height="wrap_content" |
| 45 | + android:orientation="vertical" |
| 46 | + android:padding="16dp"> |
| 47 | + |
| 48 | + <com.google.android.material.textfield.TextInputLayout |
| 49 | + style="@style/Widget.Material3.TextInputLayout.OutlinedBox" |
| 50 | + android:layout_width="match_parent" |
| 51 | + android:layout_height="wrap_content"> |
| 52 | + |
| 53 | + <com.google.android.material.textfield.TextInputEditText |
| 54 | + android:id="@+id/et_test_url" |
| 55 | + android:layout_width="match_parent" |
| 56 | + android:layout_height="wrap_content" |
| 57 | + android:hint="@string/tools_test_url" |
| 58 | + android:inputType="textUri" |
| 59 | + android:maxLines="1" |
| 60 | + android:text="@string/tools_test_url_default" /> |
| 61 | + </com.google.android.material.textfield.TextInputLayout> |
| 62 | + |
| 63 | + <TextView |
| 64 | + android:id="@+id/tv_test_result" |
| 65 | + android:layout_width="match_parent" |
| 66 | + android:layout_height="wrap_content" |
| 67 | + android:layout_marginTop="12dp" |
| 68 | + android:textColor="?attr/colorOnSurfaceVariant" |
| 69 | + android:textSize="14sp" /> |
| 70 | + |
| 71 | + <com.google.android.material.button.MaterialButton |
| 72 | + android:id="@+id/btn_test" |
| 73 | + android:layout_width="match_parent" |
| 74 | + android:layout_height="wrap_content" |
| 75 | + android:layout_marginTop="12dp" |
| 76 | + android:text="@string/tools_run_test" /> |
| 77 | + </LinearLayout> |
| 78 | + </com.google.android.material.card.MaterialCardView> |
| 79 | + |
| 80 | + <TextView |
| 81 | + style="@style/SettingsSectionHeader" |
| 82 | + android:text="@string/tools_network_info" /> |
| 83 | + |
| 84 | + <com.google.android.material.card.MaterialCardView style="@style/SettingsCard"> |
| 85 | + |
| 86 | + <TextView |
| 87 | + android:id="@+id/tv_network_info" |
| 88 | + android:layout_width="match_parent" |
| 89 | + android:layout_height="wrap_content" |
| 90 | + android:fontFamily="monospace" |
| 91 | + android:padding="20dp" |
| 92 | + android:textColor="?attr/colorOnSurface" |
| 93 | + android:textSize="13sp" |
| 94 | + android:textIsSelectable="true" /> |
| 95 | + </com.google.android.material.card.MaterialCardView> |
| 96 | + </LinearLayout> |
| 97 | + </androidx.core.widget.NestedScrollView> |
| 98 | + |
| 99 | +</androidx.coordinatorlayout.widget.CoordinatorLayout> |
0 commit comments