|
| 1 | +<?xml version="1.0" encoding="utf-8"?> |
| 2 | +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" |
| 3 | + xmlns:app="http://schemas.android.com/apk/res-auto" |
| 4 | + android:id="@+id/transliteration_main" |
| 5 | + android:layout_width="match_parent" |
| 6 | + android:layout_height="match_parent" |
| 7 | + android:orientation="vertical" |
| 8 | + android:background="@color/white"> |
| 9 | + |
| 10 | + <!-- Toolbar --> |
| 11 | + <com.google.android.material.appbar.MaterialToolbar |
| 12 | + android:id="@+id/transliteration_toolbar" |
| 13 | + android:layout_width="match_parent" |
| 14 | + android:layout_height="wrap_content" |
| 15 | + android:background="?attr/colorPrimary" |
| 16 | + android:elevation="@dimen/elevation_small" |
| 17 | + app:title="@string/transliteration" /> |
| 18 | + |
| 19 | + <!-- Main Content --> |
| 20 | + <androidx.core.widget.NestedScrollView |
| 21 | + android:layout_width="match_parent" |
| 22 | + android:layout_height="match_parent" |
| 23 | + android:fillViewport="true"> |
| 24 | + |
| 25 | + <LinearLayout |
| 26 | + android:layout_width="match_parent" |
| 27 | + android:layout_height="wrap_content" |
| 28 | + android:orientation="vertical" |
| 29 | + android:padding="@dimen/padding_normal"> |
| 30 | + |
| 31 | + <!-- Source System Selection --> |
| 32 | + <TextView |
| 33 | + android:layout_width="match_parent" |
| 34 | + android:layout_height="wrap_content" |
| 35 | + android:text="@string/source_system" |
| 36 | + android:textColor="@color/brown_800" |
| 37 | + android:textSize="@dimen/text_size_body_medium" |
| 38 | + android:textStyle="bold" |
| 39 | + android:layout_marginBottom="@dimen/spacing_8" /> |
| 40 | + |
| 41 | + <Spinner |
| 42 | + android:id="@+id/source_system_spinner" |
| 43 | + android:layout_width="match_parent" |
| 44 | + android:layout_height="@dimen/touch_target_size" |
| 45 | + android:layout_marginBottom="@dimen/spacing_16" |
| 46 | + android:background="@drawable/rounded_bg" |
| 47 | + android:padding="@dimen/spacing_8" /> |
| 48 | + |
| 49 | + <!-- Source Input --> |
| 50 | + <com.google.android.material.textfield.TextInputLayout |
| 51 | + android:layout_width="match_parent" |
| 52 | + android:layout_height="wrap_content" |
| 53 | + android:layout_marginBottom="@dimen/spacing_16" |
| 54 | + app:boxBackgroundMode="outline" |
| 55 | + app:boxCornerRadiusBottomEnd="@dimen/corner_normal" |
| 56 | + app:boxCornerRadiusBottomStart="@dimen/corner_normal" |
| 57 | + app:boxCornerRadiusTopEnd="@dimen/corner_normal" |
| 58 | + app:boxCornerRadiusTopStart="@dimen/corner_normal"> |
| 59 | + |
| 60 | + <com.google.android.material.textfield.TextInputEditText |
| 61 | + android:id="@+id/source_input" |
| 62 | + android:layout_width="match_parent" |
| 63 | + android:layout_height="@dimen/input_field_height" |
| 64 | + android:hint="@string/enter_tibetan_text" |
| 65 | + android:inputType="text" |
| 66 | + android:textColor="@color/brown_800" |
| 67 | + android:textColorHint="@color/gray" /> |
| 68 | + </com.google.android.material.textfield.TextInputLayout> |
| 69 | + |
| 70 | + <!-- Target System Selection --> |
| 71 | + <TextView |
| 72 | + android:layout_width="match_parent" |
| 73 | + android:layout_height="wrap_content" |
| 74 | + android:text="@string/target_system" |
| 75 | + android:textColor="@color/brown_800" |
| 76 | + android:textSize="@dimen/text_size_body_medium" |
| 77 | + android:textStyle="bold" |
| 78 | + android:layout_marginBottom="@dimen/spacing_8" /> |
| 79 | + |
| 80 | + <Spinner |
| 81 | + android:id="@+id/target_system_spinner" |
| 82 | + android:layout_width="match_parent" |
| 83 | + android:layout_height="@dimen/touch_target_size" |
| 84 | + android:layout_marginBottom="@dimen/spacing_16" |
| 85 | + android:background="@drawable/rounded_bg" |
| 86 | + android:padding="@dimen/spacing_8" /> |
| 87 | + |
| 88 | + <!-- Target Output --> |
| 89 | + <com.google.android.material.textfield.TextInputLayout |
| 90 | + android:layout_width="match_parent" |
| 91 | + android:layout_height="wrap_content" |
| 92 | + android:layout_marginBottom="@dimen/spacing_16" |
| 93 | + app:boxBackgroundMode="outline" |
| 94 | + app:boxCornerRadiusBottomEnd="@dimen/corner_normal" |
| 95 | + app:boxCornerRadiusBottomStart="@dimen/corner_normal" |
| 96 | + app:boxCornerRadiusTopEnd="@dimen/corner_normal" |
| 97 | + app:boxCornerRadiusTopStart="@dimen/corner_normal"> |
| 98 | + |
| 99 | + <com.google.android.material.textfield.TextInputEditText |
| 100 | + android:id="@+id/target_output" |
| 101 | + android:layout_width="match_parent" |
| 102 | + android:layout_height="@dimen/input_field_height" |
| 103 | + android:hint="@string/transliteration_result" |
| 104 | + android:inputType="text" |
| 105 | + android:readOnly="true" |
| 106 | + android:textColor="@color/brown_800" |
| 107 | + android:textColorHint="@color/gray" /> |
| 108 | + </com.google.android.material.textfield.TextInputLayout> |
| 109 | + |
| 110 | + <!-- Loading Animation --> |
| 111 | + <com.airbnb.lottie.LottieAnimationView |
| 112 | + android:id="@+id/transliteration_loading" |
| 113 | + android:layout_width="@dimen/icon_size_xlarge" |
| 114 | + android:layout_height="@dimen/icon_size_xlarge" |
| 115 | + android:layout_gravity="center_horizontal" |
| 116 | + android:layout_marginTop="@dimen/spacing_16" |
| 117 | + android:layout_marginBottom="@dimen/spacing_16" |
| 118 | + android:visibility="gone" |
| 119 | + app:lottie_autoPlay="true" |
| 120 | + app:lottie_loop="true" |
| 121 | + app:lottie_rawRes="@raw/loading_animation" /> |
| 122 | + |
| 123 | + <!-- Result Status --> |
| 124 | + <TextView |
| 125 | + android:id="@+id/result_status" |
| 126 | + android:layout_width="match_parent" |
| 127 | + android:layout_height="wrap_content" |
| 128 | + android:textAlignment="center" |
| 129 | + android:textColor="@color/success_green" |
| 130 | + android:textSize="@dimen/text_size_body_small" |
| 131 | + android:visibility="gone" |
| 132 | + android:layout_marginBottom="@dimen/spacing_16" /> |
| 133 | + |
| 134 | + <!-- Convert Button --> |
| 135 | + <com.google.android.material.button.MaterialButton |
| 136 | + android:id="@+id/btn_convert" |
| 137 | + android:layout_width="match_parent" |
| 138 | + android:layout_height="wrap_content" |
| 139 | + android:text="@string/convert" |
| 140 | + android:textSize="@dimen/text_size_body_medium" |
| 141 | + android:layout_marginTop="@dimen/spacing_24" |
| 142 | + app:cornerRadius="@dimen/corner_normal" /> |
| 143 | + |
| 144 | + </LinearLayout> |
| 145 | + </androidx.core.widget.NestedScrollView> |
| 146 | + |
| 147 | +</LinearLayout> |
0 commit comments