|
@@ -41,9 +41,7 @@
|
|
|
app:navigationIconTint="@color/fontAppbar"
|
|
|
app:popupTheme="@style/appActionBarPopupMenu"
|
|
|
app:titleTextColor="@color/fontAppbar"
|
|
|
- tools:title="">
|
|
|
-
|
|
|
- </com.google.android.material.appbar.MaterialToolbar>
|
|
|
+ tools:title="@string/translation" />
|
|
|
|
|
|
</com.google.android.material.appbar.AppBarLayout>
|
|
|
|
|
@@ -51,67 +49,100 @@
|
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="wrap_content"
|
|
|
android:layout_gravity="center"
|
|
|
- android:orientation="horizontal"
|
|
|
+ android:orientation="vertical"
|
|
|
android:padding="@dimen/standard_padding">
|
|
|
|
|
|
- <Spinner
|
|
|
- android:id="@+id/fromLanguageSpinner"
|
|
|
- android:layout_width="wrap_content"
|
|
|
- android:layout_height="@dimen/min_size_clickable_area"
|
|
|
+ <com.google.android.material.textfield.TextInputLayout
|
|
|
+ android:id="@+id/fromLanguageInputLayout"
|
|
|
+ style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox.ExposedDropdownMenu"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
android:layout_weight="1"
|
|
|
- android:background="@color/grey_200" />
|
|
|
-
|
|
|
- <ImageView
|
|
|
- android:layout_width="@dimen/min_size_clickable_area"
|
|
|
- android:layout_height="@dimen/min_size_clickable_area"
|
|
|
- android:contentDescription="@null"
|
|
|
- android:src="@drawable/ic_chevron_right" />
|
|
|
-
|
|
|
- <Spinner
|
|
|
- android:id="@+id/toLanguageSpinner"
|
|
|
- android:layout_width="wrap_content"
|
|
|
- android:layout_height="@dimen/min_size_clickable_area"
|
|
|
+ android:hint="@string/translation_from">
|
|
|
+
|
|
|
+ <com.google.android.material.textfield.MaterialAutoCompleteTextView
|
|
|
+ android:id="@+id/fromLanguage"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:ellipsize="middle"
|
|
|
+ android:inputType="none"
|
|
|
+ android:lines="1"
|
|
|
+ android:popupTheme="@style/ThemeOverlay.AppTheme.PopupMenu" />
|
|
|
+
|
|
|
+ </com.google.android.material.textfield.TextInputLayout>
|
|
|
+
|
|
|
+ <com.google.android.material.textfield.TextInputLayout
|
|
|
+ android:id="@+id/toLanguageInputLayout"
|
|
|
+ style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox.ExposedDropdownMenu"
|
|
|
+ android:paddingTop="@dimen/standard_padding"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
android:layout_weight="1"
|
|
|
- android:background="@color/grey_200" />
|
|
|
+ android:hint="@string/translation_to">
|
|
|
+
|
|
|
+ <com.google.android.material.textfield.MaterialAutoCompleteTextView
|
|
|
+ android:id="@+id/toLanguage"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:ellipsize="middle"
|
|
|
+ android:inputType="none"
|
|
|
+ android:lines="1"
|
|
|
+ android:popupTheme="@style/ThemeOverlay.AppTheme.PopupMenu" />
|
|
|
+
|
|
|
+ </com.google.android.material.textfield.TextInputLayout>
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
- <TextView
|
|
|
- android:id="@+id/original_message_textview"
|
|
|
- android:layout_width="match_parent"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:layout_marginStart="@dimen/standard_margin"
|
|
|
- android:layout_marginEnd="@dimen/standard_margin"
|
|
|
- android:layout_marginBottom="@dimen/standard_margin"
|
|
|
- android:layout_weight="1"
|
|
|
- android:background="@drawable/shape_grouped_incoming_message"
|
|
|
- android:padding="@dimen/dialog_padding"
|
|
|
- android:scrollbars="vertical"
|
|
|
- android:text=""
|
|
|
- android:textColor="@color/nc_incoming_text_default"
|
|
|
- android:textSize="@dimen/message_text_size" />
|
|
|
-
|
|
|
- <TextView
|
|
|
- android:id="@+id/translated_message_textview"
|
|
|
+ <ScrollView
|
|
|
android:layout_width="match_parent"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:layout_marginStart="@dimen/standard_margin"
|
|
|
- android:layout_marginEnd="@dimen/standard_margin"
|
|
|
- android:layout_marginBottom="@dimen/standard_margin"
|
|
|
- android:layout_weight="1"
|
|
|
- android:background="@drawable/shape_grouped_incoming_message"
|
|
|
- android:padding="@dimen/dialog_padding"
|
|
|
- android:scrollbars="vertical"
|
|
|
- android:text=""
|
|
|
- android:textColor="@color/nc_incoming_text_default"
|
|
|
- android:textSize="@dimen/message_text_size"
|
|
|
- android:visibility="visible" />
|
|
|
-
|
|
|
- <ProgressBar
|
|
|
- android:id="@+id/progressBar"
|
|
|
- style="?android:attr/progressBarStyle"
|
|
|
- android:layout_width="match_parent"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:visibility="gone" />
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:layout_marginTop="@dimen/standard_quarter_margin">
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:orientation="vertical">
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/original_message_textview"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginStart="@dimen/standard_margin"
|
|
|
+ android:layout_marginEnd="@dimen/standard_margin"
|
|
|
+ android:layout_marginBottom="@dimen/standard_margin"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:background="@drawable/shape_grouped_incoming_message"
|
|
|
+ android:padding="@dimen/dialog_padding"
|
|
|
+ android:scrollbars="vertical"
|
|
|
+ android:text=""
|
|
|
+ android:textColor="@color/nc_incoming_text_default"
|
|
|
+ android:textSize="@dimen/message_text_size" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/translated_message_textview"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginStart="@dimen/standard_margin"
|
|
|
+ android:layout_marginEnd="@dimen/standard_margin"
|
|
|
+ android:layout_marginBottom="@dimen/standard_margin"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:background="@drawable/shape_grouped_incoming_message"
|
|
|
+ android:padding="@dimen/dialog_padding"
|
|
|
+ android:scrollbars="vertical"
|
|
|
+ android:text=""
|
|
|
+ android:textColor="@color/nc_incoming_text_default"
|
|
|
+ android:textSize="@dimen/message_text_size"
|
|
|
+ android:visibility="visible" />
|
|
|
+
|
|
|
+ <ProgressBar
|
|
|
+ android:id="@+id/progressBar"
|
|
|
+ style="?android:attr/progressBarStyle"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:visibility="gone" />
|
|
|
+
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ </ScrollView>
|
|
|
|
|
|
</LinearLayout>
|