|
@@ -3,7 +3,9 @@
|
|
~ Nextcloud Talk application
|
|
~ Nextcloud Talk application
|
|
~
|
|
~
|
|
~ @author Julius Linus
|
|
~ @author Julius Linus
|
|
|
|
+ ~ @author Andy Scherzinger
|
|
~ Copyright (C) 2023 Julius Linus <julius.linus@nextcloud.com>
|
|
~ Copyright (C) 2023 Julius Linus <julius.linus@nextcloud.com>
|
|
|
|
+ ~ Copyright (C) 2023 Andy Scherzinger <info@andy-scherzinger.de>
|
|
~
|
|
~
|
|
~ This program is free software: you can redistribute it and/or modify
|
|
~ This program is free software: you can redistribute it and/or modify
|
|
~ it under the terms of the GNU General Public License as published by
|
|
~ it under the terms of the GNU General Public License as published by
|
|
@@ -99,44 +101,69 @@
|
|
<LinearLayout
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
- android:orientation="horizontal"
|
|
|
|
- android:paddingBottom="@dimen/standard_padding">
|
|
|
|
|
|
+ android:orientation="vertical">
|
|
|
|
|
|
- <TextView
|
|
|
|
- android:id="@+id/original_message_textview"
|
|
|
|
|
|
+ <LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
- android:layout_marginStart="@dimen/standard_margin"
|
|
|
|
- android:layout_marginEnd="@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_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" />
|
|
|
|
|
|
+ android:orientation="horizontal"
|
|
|
|
+ android:paddingBottom="@dimen/standard_padding">
|
|
|
|
+
|
|
|
|
+ <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_weight="1"
|
|
|
|
+ android:background="@drawable/shape_grouped_incoming_message"
|
|
|
|
+ android:padding="@dimen/dialog_padding"
|
|
|
|
+ android:scrollbars="vertical"
|
|
|
|
+ android:textColor="@color/nc_incoming_text_default"
|
|
|
|
+ android:textSize="@dimen/message_text_size"
|
|
|
|
+ tools:text="This is the last message\nof an incredibly long two line conversation text" />
|
|
|
|
+
|
|
|
|
+ <LinearLayout
|
|
|
|
+ android:id="@+id/translated_message_container"
|
|
|
|
+ android:layout_width="match_parent"
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
+ android:layout_marginStart="@dimen/standard_margin"
|
|
|
|
+ android:layout_marginEnd="@dimen/standard_margin"
|
|
|
|
+ android:layout_weight="1"
|
|
|
|
+ android:orientation="vertical"
|
|
|
|
+ android:visibility="visible">
|
|
|
|
+
|
|
|
|
+ <TextView
|
|
|
|
+ android:id="@+id/translated_message_textview"
|
|
|
|
+ android:layout_width="match_parent"
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
+ android:background="@drawable/shape_grouped_incoming_message"
|
|
|
|
+ android:padding="@dimen/dialog_padding"
|
|
|
|
+ android:scrollbars="vertical"
|
|
|
|
+ android:textColor="@color/nc_incoming_text_default"
|
|
|
|
+ android:textSize="@dimen/message_text_size"
|
|
|
|
+ tools:text="This is the last message\nof an incredibly long two line conversation text" />
|
|
|
|
+
|
|
|
|
+ <com.google.android.material.button.MaterialButton
|
|
|
|
+ android:id="@+id/copy_translated_message"
|
|
|
|
+ android:layout_width="wrap_content"
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
+ android:layout_gravity="end"
|
|
|
|
+ android:layout_marginTop="@dimen/standard_half_margin"
|
|
|
|
+ android:text="@string/translation_copy_translated_text"
|
|
|
|
+ app:icon="@drawable/ic_content_copy" />
|
|
|
|
+
|
|
|
|
+ </LinearLayout>
|
|
|
|
+
|
|
|
|
+ </LinearLayout>
|
|
|
|
|
|
<ProgressBar
|
|
<ProgressBar
|
|
android:id="@+id/progressBar"
|
|
android:id="@+id/progressBar"
|
|
style="?android:attr/progressBarStyle"
|
|
style="?android:attr/progressBarStyle"
|
|
android:layout_width="match_parent"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
- android:visibility="gone" />
|
|
|
|
|
|
+ android:visibility="gone"
|
|
|
|
+ tools:visibility="visible" />
|
|
|
|
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
|
|
|