Improve RTL text flow for untranslated strings in rtl languages/views

Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
This commit is contained in:
Andy Scherzinger 2021-07-16 11:17:39 +02:00
parent 07af2e081b
commit a5838dc44e
No known key found for this signature in database
GPG key ID: 6CADC7E3523C308B
35 changed files with 275 additions and 215 deletions

View file

@ -88,8 +88,9 @@
android:layout_marginTop="4dp" android:layout_marginTop="4dp"
android:layout_marginEnd="@dimen/standard_double_margin" android:layout_marginEnd="@dimen/standard_double_margin"
android:ellipsize="end" android:ellipsize="end"
android:gravity="bottom" android:gravity="start|bottom"
android:maxLines="1" android:maxLines="1"
android:textAlignment="viewStart"
android:textColor="@color/conversation_item_header" android:textColor="@color/conversation_item_header"
android:textSize="@dimen/two_line_primary_text_size" android:textSize="@dimen/two_line_primary_text_size"
tools:text="Firstname Lastname" /> tools:text="Firstname Lastname" />
@ -116,8 +117,9 @@
android:layout_marginEnd="@dimen/standard_double_margin" android:layout_marginEnd="@dimen/standard_double_margin"
android:layout_marginBottom="4dp" android:layout_marginBottom="4dp"
android:ellipsize="end" android:ellipsize="end"
android:gravity="top" android:gravity="start|top"
android:maxLines="1" android:maxLines="1"
android:textAlignment="viewStart"
android:textColor="@color/textColorMaxContrast" android:textColor="@color/textColorMaxContrast"
android:textSize="14sp" android:textSize="14sp"
tools:text="https://server.com/nextcloud" /> tools:text="https://server.com/nextcloud" />

View file

@ -21,8 +21,8 @@
--> -->
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:fitsSystemWindows="true" android:fitsSystemWindows="true"
@ -41,6 +41,6 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
app:show_buffering="when_playing" app:show_buffering="when_playing"
app:show_shuffle_button="true"/> app:show_shuffle_button="true" />
</FrameLayout> </FrameLayout>

View file

@ -25,8 +25,8 @@
xmlns:tools="http://schemas.android.com/tools" xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:orientation="vertical"
android:background="@color/bg_default" android:background="@color/bg_default"
android:orientation="vertical"
tools:context=".activities.FullScreenTextViewerActivity"> tools:context=".activities.FullScreenTextViewerActivity">
<com.google.android.material.appbar.AppBarLayout <com.google.android.material.appbar.AppBarLayout

View file

@ -54,6 +54,7 @@
android:ellipsize="end" android:ellipsize="end"
android:maxEms="8" android:maxEms="8"
android:maxLines="1" android:maxLines="1"
android:textAlignment="viewStart"
android:textColor="@color/white" android:textColor="@color/white"
tools:text="Bill Murray 12345678901234567890" /> tools:text="Bill Murray 12345678901234567890" />

View file

@ -61,6 +61,7 @@
android:imeOptions="actionDone" android:imeOptions="actionDone"
android:inputType="textUri" android:inputType="textUri"
android:singleLine="true" android:singleLine="true"
android:textAlignment="viewStart"
android:textColor="@color/colorPrimary" /> android:textColor="@color/colorPrimary" />
</com.google.android.material.textfield.TextInputLayout> </com.google.android.material.textfield.TextInputLayout>

View file

@ -103,6 +103,7 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="0dp" android:layout_height="0dp"
android:layout_weight="1" android:layout_weight="1"
android:textAlignment="viewStart"
android:textColor="@color/high_emphasis_text" android:textColor="@color/high_emphasis_text"
android:textSize="16sp" android:textSize="16sp"
tools:text="Share this location" /> tools:text="Share this location" />
@ -114,6 +115,7 @@
android:layout_weight="1" android:layout_weight="1"
android:ellipsize="end" android:ellipsize="end"
android:maxLines="1" android:maxLines="1"
android:textAlignment="viewStart"
android:textColor="@color/medium_emphasis_text" android:textColor="@color/medium_emphasis_text"
android:textSize="14sp" android:textSize="14sp"
tools:text="Brandenburg, Germany" /> tools:text="Brandenburg, Germany" />

View file

@ -99,6 +99,7 @@
android:paddingEnd="8dp" android:paddingEnd="8dp"
android:paddingBottom="2dp" android:paddingBottom="2dp"
android:text="@string/nc_server_helper_text" android:text="@string/nc_server_helper_text"
android:textAlignment="viewStart"
android:textColor="@color/nc_login_text_color" /> android:textColor="@color/nc_login_text_color" />
<LinearLayout <LinearLayout
@ -121,12 +122,13 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:ellipsize="end" android:ellipsize="end"
android:gravity="center_vertical" android:gravity="start|center_vertical"
android:lineSpacingMultiplier="1.2" android:lineSpacingMultiplier="1.2"
android:lines="2" android:lines="2"
android:paddingStart="5dp" android:paddingStart="5dp"
android:paddingEnd="8dp" android:paddingEnd="8dp"
android:text="@string/nc_server_testing_connection" android:text="@string/nc_server_testing_connection"
android:textAlignment="viewStart"
android:textColor="@color/white" /> android:textColor="@color/white" />
</LinearLayout> </LinearLayout>
@ -137,12 +139,13 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:drawablePadding="5dp" android:drawablePadding="5dp"
android:ellipsize="end" android:ellipsize="end"
android:gravity="center_vertical" android:gravity="start|center_vertical"
android:lineSpacingMultiplier="1.2" android:lineSpacingMultiplier="1.2"
android:lines="2" android:lines="2"
android:paddingStart="16dp" android:paddingStart="16dp"
android:paddingEnd="8dp" android:paddingEnd="8dp"
android:text="@string/nc_server_unsupported" android:text="@string/nc_server_unsupported"
android:textAlignment="viewStart"
android:textColor="@color/white" android:textColor="@color/white"
android:visibility="invisible" android:visibility="invisible"
app:drawableStartCompat="@android:drawable/stat_sys_warning" app:drawableStartCompat="@android:drawable/stat_sys_warning"

View file

@ -109,6 +109,7 @@
android:paddingStart="@dimen/standard_padding" android:paddingStart="@dimen/standard_padding"
android:paddingEnd="0dp" android:paddingEnd="0dp"
android:layout_centerHorizontal="true" android:layout_centerHorizontal="true"
android:textAlignment="viewStart"
android:textColor="@color/nc_darkRed" android:textColor="@color/nc_darkRed"
tools:text="@string/nc_settings_server_almost_eol" /> tools:text="@string/nc_settings_server_almost_eol" />

View file

@ -57,6 +57,7 @@
android:ellipsize="middle" android:ellipsize="middle"
android:singleLine="true" android:singleLine="true"
android:text="@string/nc_public_call" android:text="@string/nc_public_call"
android:textAlignment="viewStart"
android:textAppearance="@style/ListItem" android:textAppearance="@style/ListItem"
tools:text="@string/nc_public_call" /> tools:text="@string/nc_public_call" />

View file

@ -35,6 +35,7 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:padding="@dimen/standard_padding" android:padding="@dimen/standard_padding"
android:text="@string/nc_add_file" android:text="@string/nc_add_file"
android:textAlignment="viewStart"
android:textColor="@color/medium_emphasis_text" android:textColor="@color/medium_emphasis_text"
android:textSize="@dimen/bottom_sheet_text_size" /> android:textSize="@dimen/bottom_sheet_text_size" />
@ -62,9 +63,10 @@
android:id="@+id/txt_share_location" android:id="@+id/txt_share_location"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_gravity="center_vertical" android:layout_gravity="start|center_vertical"
android:layout_marginStart="@dimen/standard_margin" android:layout_marginStart="@dimen/standard_margin"
android:text="@string/nc_share_location" android:text="@string/nc_share_location"
android:textAlignment="viewStart"
android:textColor="@color/high_emphasis_text" android:textColor="@color/high_emphasis_text"
android:textSize="@dimen/bottom_sheet_text_size" /> android:textSize="@dimen/bottom_sheet_text_size" />
@ -94,9 +96,10 @@
android:id="@+id/txt_attach_file_from_local" android:id="@+id/txt_attach_file_from_local"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_gravity="center_vertical" android:layout_gravity="start|center_vertical"
android:layout_marginStart="@dimen/standard_margin" android:layout_marginStart="@dimen/standard_margin"
android:text="@string/nc_upload_local_file" android:text="@string/nc_upload_local_file"
android:textAlignment="viewStart"
android:textColor="@color/high_emphasis_text" android:textColor="@color/high_emphasis_text"
android:textSize="@dimen/bottom_sheet_text_size" /> android:textSize="@dimen/bottom_sheet_text_size" />
@ -126,8 +129,9 @@
android:id="@+id/txt_attach_file_from_cloud" android:id="@+id/txt_attach_file_from_cloud"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_gravity="center_vertical" android:layout_gravity="start|center_vertical"
android:layout_marginStart="@dimen/standard_margin" android:layout_marginStart="@dimen/standard_margin"
android:textAlignment="viewStart"
android:textColor="@color/high_emphasis_text" android:textColor="@color/high_emphasis_text"
android:textSize="@dimen/bottom_sheet_text_size" android:textSize="@dimen/bottom_sheet_text_size"
tools:text="Share from Nextcloud" /> tools:text="Share from Nextcloud" />

View file

@ -56,8 +56,8 @@
<androidx.appcompat.widget.AppCompatTextView <androidx.appcompat.widget.AppCompatTextView
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:text="@string/scope_private_title" android:text="@string/scope_private_title"
android:textAlignment="viewStart"
android:textColor="@color/conversation_item_header" android:textColor="@color/conversation_item_header"
android:textSize="16sp" android:textSize="16sp"
android:textStyle="bold" /> android:textStyle="bold" />
@ -66,6 +66,7 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:text="@string/scope_private_description" android:text="@string/scope_private_description"
android:textAlignment="viewStart"
android:textColor="@color/textColorMaxContrast" android:textColor="@color/textColorMaxContrast"
android:textSize="14sp" /> android:textSize="14sp" />
@ -99,6 +100,7 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:text="@string/scope_local_title" android:text="@string/scope_local_title"
android:textAlignment="viewStart"
android:textColor="@color/conversation_item_header" android:textColor="@color/conversation_item_header"
android:textSize="16sp" android:textSize="16sp"
android:textStyle="bold" /> android:textStyle="bold" />
@ -107,6 +109,7 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:text="@string/scope_local_description" android:text="@string/scope_local_description"
android:textAlignment="viewStart"
android:textColor="@color/textColorMaxContrast" android:textColor="@color/textColorMaxContrast"
android:textSize="14sp" /> android:textSize="14sp" />
@ -140,6 +143,7 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:text="@string/scope_federated_title" android:text="@string/scope_federated_title"
android:textAlignment="viewStart"
android:textColor="@color/conversation_item_header" android:textColor="@color/conversation_item_header"
android:textSize="16sp" android:textSize="16sp"
android:textStyle="bold" /> android:textStyle="bold" />
@ -148,6 +152,7 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:text="@string/scope_federated_description" android:text="@string/scope_federated_description"
android:textAlignment="viewStart"
android:textColor="@color/textColorMaxContrast" android:textColor="@color/textColorMaxContrast"
android:textSize="14sp" /> android:textSize="14sp" />
@ -181,6 +186,7 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:text="@string/scope_published_title" android:text="@string/scope_published_title"
android:textAlignment="viewStart"
android:textColor="@color/conversation_item_header" android:textColor="@color/conversation_item_header"
android:textSize="16sp" android:textSize="16sp"
android:textStyle="bold" /> android:textStyle="bold" />
@ -189,6 +195,7 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:text="@string/scope_published_description" android:text="@string/scope_published_description"
android:textAlignment="viewStart"
android:textColor="@color/textColorMaxContrast" android:textColor="@color/textColorMaxContrast"
android:textSize="14sp" /> android:textSize="14sp" />

View file

@ -33,8 +33,8 @@
android:layout_width="@dimen/avatar_size" android:layout_width="@dimen/avatar_size"
android:layout_height="@dimen/avatar_size" android:layout_height="@dimen/avatar_size"
android:layout_gravity="top" android:layout_gravity="top"
android:layout_marginTop="@dimen/standard_margin"
android:layout_marginStart="@dimen/standard_half_margin" android:layout_marginStart="@dimen/standard_half_margin"
android:layout_marginTop="@dimen/standard_margin"
android:layout_marginEnd="@dimen/standard_double_padding" android:layout_marginEnd="@dimen/standard_double_padding"
android:layout_marginBottom="@dimen/standard_margin" android:layout_marginBottom="@dimen/standard_margin"
android:contentDescription="@null" android:contentDescription="@null"
@ -44,13 +44,14 @@
android:id="@+id/name" android:id="@+id/name"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_gravity="top" android:layout_gravity="start|top"
android:paddingStart="@dimen/standard_half_padding"
android:paddingTop="12dp"
android:paddingEnd="@dimen/standard_padding"
android:paddingBottom="@dimen/standard_padding"
android:textAlignment="viewStart"
android:textColor="@color/high_emphasis_text" android:textColor="@color/high_emphasis_text"
android:textSize="@dimen/geocoding_result_text_size" android:textSize="@dimen/geocoding_result_text_size"
android:paddingTop="12dp"
android:paddingBottom="@dimen/standard_padding"
android:paddingStart="@dimen/standard_half_padding"
android:paddingEnd="@dimen/standard_padding"
tools:text="S Sonnenallee, 50, Saalestraße, Rixdorf, Neukölln, Berlin, 12055, Deutschland" /> tools:text="S Sonnenallee, 50, Saalestraße, Rixdorf, Neukölln, Berlin, 12055, Deutschland" />
</LinearLayout> </LinearLayout>

View file

@ -26,9 +26,9 @@
xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginLeft="16dp" android:layout_marginStart="@dimen/standard_margin"
android:layout_marginTop="2dp" android:layout_marginTop="2dp"
android:layout_marginRight="16dp" android:layout_marginEnd="@dimen/standard_margin"
android:layout_marginBottom="2dp"> android:layout_marginBottom="2dp">
<com.facebook.drawee.view.SimpleDraweeView <com.facebook.drawee.view.SimpleDraweeView
@ -66,6 +66,7 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginBottom="4dp" android:layout_marginBottom="4dp"
android:textAlignment="viewStart"
android:textColor="@color/textColorMaxContrast" android:textColor="@color/textColorMaxContrast"
android:textSize="12sp" /> android:textSize="12sp" />
@ -74,6 +75,7 @@
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:lineSpacingMultiplier="1.2" android:lineSpacingMultiplier="1.2"
android:textAlignment="viewStart"
android:textIsSelectable="true" android:textIsSelectable="true"
app:layout_alignSelf="flex_start" app:layout_alignSelf="flex_start"
app:layout_flexGrow="1" app:layout_flexGrow="1"

View file

@ -129,10 +129,11 @@
android:layout_height="match_parent" android:layout_height="match_parent"
android:autoLink="none" android:autoLink="none"
android:ellipsize="middle" android:ellipsize="middle"
android:gravity="center_vertical" android:gravity="start|center_vertical"
android:maxLines="3" android:maxLines="3"
android:paddingStart="@dimen/standard_padding" android:paddingStart="@dimen/standard_padding"
android:paddingEnd="0dp" android:paddingEnd="0dp"
android:textAlignment="viewStart"
android:textColor="@color/high_emphasis_text" android:textColor="@color/high_emphasis_text"
android:textColorLink="@color/high_emphasis_text" android:textColorLink="@color/high_emphasis_text"
android:textIsSelectable="false" android:textIsSelectable="false"
@ -152,6 +153,7 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginStart="2dp" android:layout_marginStart="2dp"
android:autoLink="none" android:autoLink="none"
android:textAlignment="viewStart"
android:textColor="@color/warm_grey_four" android:textColor="@color/warm_grey_four"
android:textColorLink="@color/warm_grey_four" android:textColorLink="@color/warm_grey_four"
android:textIsSelectable="true" android:textIsSelectable="true"

View file

@ -22,6 +22,7 @@
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginLeft="16dp" android:layout_marginLeft="16dp"
@ -59,19 +60,23 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginBottom="4dp" android:layout_marginBottom="4dp"
android:textAlignment="viewStart"
android:textColor="@color/textColorMaxContrast" android:textColor="@color/textColorMaxContrast"
android:textIsSelectable="false" android:textIsSelectable="false"
android:textSize="12sp" /> android:textSize="12sp"
tools:text="Jane Doe" />
<androidx.emoji.widget.EmojiTextView <androidx.emoji.widget.EmojiTextView
android:id="@id/messageText" android:id="@id/messageText"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:lineSpacingMultiplier="1.2" android:lineSpacingMultiplier="1.2"
android:textAlignment="viewStart"
android:textIsSelectable="false" android:textIsSelectable="false"
app:layout_alignSelf="flex_start" app:layout_alignSelf="flex_start"
app:layout_flexGrow="1" app:layout_flexGrow="1"
app:layout_wrapBefore="true" /> app:layout_wrapBefore="true"
tools:text="Talk to you later!" />
<TextView <TextView
android:id="@id/messageTime" android:id="@id/messageTime"

View file

@ -62,6 +62,7 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginBottom="4dp" android:layout_marginBottom="4dp"
android:textAlignment="viewStart"
android:textColor="@color/textColorMaxContrast" android:textColor="@color/textColorMaxContrast"
android:textSize="12sp" /> android:textSize="12sp" />

View file

@ -57,6 +57,7 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_alignWithParentIfMissing="true" android:layout_alignWithParentIfMissing="true"
android:lineSpacingMultiplier="1.2" android:lineSpacingMultiplier="1.2"
android:textAlignment="viewStart"
android:textColorHighlight="@color/nc_grey" android:textColorHighlight="@color/nc_grey"
android:textIsSelectable="true" android:textIsSelectable="true"
tools:text="Talk to you later!" /> tools:text="Talk to you later!" />

View file

@ -119,10 +119,11 @@
android:layout_height="match_parent" android:layout_height="match_parent"
android:autoLink="none" android:autoLink="none"
android:ellipsize="middle" android:ellipsize="middle"
android:gravity="center_vertical" android:gravity="start|center_vertical"
android:maxLines="3" android:maxLines="3"
android:paddingStart="@dimen/standard_padding" android:paddingStart="@dimen/standard_padding"
android:paddingEnd="0dp" android:paddingEnd="0dp"
android:textAlignment="viewStart"
android:textColor="@color/high_emphasis_text" android:textColor="@color/high_emphasis_text"
android:textColorLink="@color/high_emphasis_text" android:textColorLink="@color/high_emphasis_text"
android:textIsSelectable="false" android:textIsSelectable="false"

View file

@ -52,6 +52,7 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_alignWithParentIfMissing="true" android:layout_alignWithParentIfMissing="true"
android:lineSpacingMultiplier="1.2" android:lineSpacingMultiplier="1.2"
android:textAlignment="viewStart"
android:textColorHighlight="@color/nc_grey" android:textColorHighlight="@color/nc_grey"
android:textIsSelectable="false" android:textIsSelectable="false"
tools:text="Talk to you later!" /> tools:text="Talk to you later!" />

View file

@ -45,6 +45,7 @@
android:layout_marginEnd="8dp" android:layout_marginEnd="8dp"
android:layout_toEndOf="@id/quoteColoredView" android:layout_toEndOf="@id/quoteColoredView"
android:ellipsize="end" android:ellipsize="end"
android:textAlignment="viewStart"
android:textColor="@color/textColorMaxContrast" android:textColor="@color/textColorMaxContrast"
android:textIsSelectable="false" android:textIsSelectable="false"
android:textSize="12sp" android:textSize="12sp"
@ -83,6 +84,7 @@
android:layout_below="@id/quotedMessageImage" android:layout_below="@id/quotedMessageImage"
android:layout_alignStart="@id/quotedMessageAuthor" android:layout_alignStart="@id/quotedMessageAuthor"
android:lineSpacingMultiplier="1.2" android:lineSpacingMultiplier="1.2"
android:textAlignment="viewStart"
android:textIsSelectable="false" android:textIsSelectable="false"
android:textSize="14sp" android:textSize="14sp"
app:layout_alignSelf="flex_start" app:layout_alignSelf="flex_start"

View file

@ -51,6 +51,7 @@
android:ellipsize="middle" android:ellipsize="middle"
android:singleLine="true" android:singleLine="true"
android:text="@string/nc_join_via_link" android:text="@string/nc_join_via_link"
android:textAlignment="viewStart"
android:textAppearance="@style/ListItem" /> android:textAppearance="@style/ListItem" />
</RelativeLayout> </RelativeLayout>

View file

@ -35,6 +35,7 @@
android:alpha="0.5" android:alpha="0.5"
android:contentDescription="@null" android:contentDescription="@null"
android:paddingStart="6dp" android:paddingStart="6dp"
android:paddingEnd="0dp"
android:src="@drawable/fast_scroller_handle" /> android:src="@drawable/fast_scroller_handle" />
<TextView <TextView
@ -45,9 +46,10 @@
android:layout_marginEnd="0dp" android:layout_marginEnd="0dp"
android:layout_toStartOf="@+id/fast_scroller_handle" android:layout_toStartOf="@+id/fast_scroller_handle"
android:background="@drawable/fast_scroller_bubble" android:background="@drawable/fast_scroller_bubble"
android:gravity="center" android:gravity="start|center_vertical"
android:paddingLeft="16dp" android:paddingLeft="16dp"
android:paddingRight="16dp" android:paddingRight="16dp"
android:textAlignment="viewStart"
android:textColor="?android:attr/textColorPrimaryInverse" android:textColor="?android:attr/textColorPrimaryInverse"
android:textSize="38sp" android:textSize="38sp"
android:visibility="gone" android:visibility="gone"

View file

@ -49,6 +49,8 @@
android:layout_toEndOf="@id/icon_image_view" android:layout_toEndOf="@id/icon_image_view"
android:focusable="false" android:focusable="false"
android:focusableInTouchMode="false" android:focusableInTouchMode="false"
android:gravity="start|center_vertical"
android:textAlignment="viewStart"
android:textColor="@color/fg_default" android:textColor="@color/fg_default"
android:textSize="16sp" android:textSize="16sp"
tools:text="Start a new conversation" /> tools:text="Start a new conversation" />

View file

@ -69,6 +69,7 @@
android:marqueeRepeatLimit="1" android:marqueeRepeatLimit="1"
android:paddingBottom="6dp" android:paddingBottom="6dp"
android:singleLine="true" android:singleLine="true"
android:textAlignment="viewStart"
android:textColor="@color/textColorMaxContrast" android:textColor="@color/textColorMaxContrast"
android:textSize="12sp" android:textSize="12sp"
tools:text="3 minutes ago" /> tools:text="3 minutes ago" />
@ -85,6 +86,7 @@
android:marqueeRepeatLimit="1" android:marqueeRepeatLimit="1"
android:paddingTop="6dp" android:paddingTop="6dp"
android:singleLine="true" android:singleLine="true"
android:textAlignment="viewStart"
android:textColor="@color/conversation_item_header" android:textColor="@color/conversation_item_header"
android:textSize="@dimen/two_line_primary_text_size" android:textSize="@dimen/two_line_primary_text_size"
tools:text="filename.md" /> tools:text="filename.md" />

View file

@ -51,6 +51,7 @@
android:layout_toEndOf="@id/simple_drawee_view" android:layout_toEndOf="@id/simple_drawee_view"
android:ellipsize="end" android:ellipsize="end"
android:lines="1" android:lines="1"
android:textAlignment="viewStart"
android:textAppearance="@style/ListItem" android:textAppearance="@style/ListItem"
tools:text="Jane Doe" /> tools:text="Jane Doe" />

View file

@ -78,6 +78,7 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:ellipsize="middle" android:ellipsize="middle"
android:singleLine="true" android:singleLine="true"
android:textAlignment="viewStart"
android:textColor="@color/conversation_item_header" android:textColor="@color/conversation_item_header"
android:textSize="@dimen/two_line_primary_text_size" android:textSize="@dimen/two_line_primary_text_size"
tools:text="Call item text" /> tools:text="Call item text" />
@ -87,6 +88,7 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:singleLine="true" android:singleLine="true"
android:textAlignment="viewStart"
android:textColor="@color/textColorMaxContrast" android:textColor="@color/textColorMaxContrast"
android:textSize="14sp" android:textSize="14sp"
tools:text="A week ago" /> tools:text="A week ago" />

View file

@ -64,6 +64,7 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:ellipsize="middle" android:ellipsize="middle"
android:singleLine="true" android:singleLine="true"
android:textAlignment="viewStart"
android:textAppearance="?android:attr/textAppearanceListItem" android:textAppearance="?android:attr/textAppearanceListItem"
android:textColor="@color/conversation_item_header" android:textColor="@color/conversation_item_header"
tools:text="Jane Doe" /> tools:text="Jane Doe" />
@ -74,8 +75,9 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:ellipsize="middle" android:ellipsize="middle"
android:singleLine="true" android:singleLine="true"
android:textAlignment="viewStart"
android:textColor="?android:attr/textColorSecondary" android:textColor="?android:attr/textColorSecondary"
tools:text="Moderator" /> tools:text="@string/nc_moderator" />
</LinearLayout> </LinearLayout>

View file

@ -72,9 +72,10 @@
android:layout_centerVertical="true" android:layout_centerVertical="true"
android:layout_toStartOf="@id/dialogUnreadBubble" android:layout_toStartOf="@id/dialogUnreadBubble"
android:ellipsize="end" android:ellipsize="end"
android:gravity="top" android:gravity="start|top"
android:lines="1" android:lines="1"
android:singleLine="true" android:singleLine="true"
android:textAlignment="viewStart"
android:textColor="@color/textColorMaxContrast" android:textColor="@color/textColorMaxContrast"
android:textSize="14sp" android:textSize="14sp"
tools:text="This is the last message\nof an incredibly long two line conversation text" /> tools:text="This is the last message\nof an incredibly long two line conversation text" />
@ -108,21 +109,23 @@
android:layout_marginTop="2dp" android:layout_marginTop="2dp"
android:ellipsize="end" android:ellipsize="end"
android:maxLines="1" android:maxLines="1"
android:textSize="14sp" android:textAlignment="viewEnd"
android:textColor="@color/textColorMaxContrast" android:textColor="@color/textColorMaxContrast"
tools:text="yesterday"/> android:textSize="14sp"
tools:text="yesterday" />
<androidx.emoji.widget.EmojiTextView <androidx.emoji.widget.EmojiTextView
android:id="@id/dialogName" android:id="@id/dialogName"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_alignTop="@id/dialogAvatarFrameLayout" android:layout_alignTop="@id/dialogAvatarFrameLayout"
android:layout_marginTop="2dp"
android:layout_toStartOf="@id/dialogDate" android:layout_toStartOf="@id/dialogDate"
android:layout_toEndOf="@id/dialogAvatarFrameLayout" android:layout_toEndOf="@id/dialogAvatarFrameLayout"
android:layout_marginTop="2dp"
android:ellipsize="end" android:ellipsize="end"
android:includeFontPadding="false" android:includeFontPadding="false"
android:maxLines="1" android:maxLines="1"
android:textAlignment="viewStart"
android:textColor="@color/conversation_item_header" android:textColor="@color/conversation_item_header"
android:textSize="@dimen/two_line_primary_text_size" android:textSize="@dimen/two_line_primary_text_size"
tools:text="Best conversation" /> tools:text="Best conversation" />

View file

@ -58,6 +58,7 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:ellipsize="middle" android:ellipsize="middle"
android:singleLine="true" android:singleLine="true"
android:textAlignment="viewStart"
android:textAppearance="@style/ListItem" android:textAppearance="@style/ListItem"
tools:text="Call item text" /> tools:text="Call item text" />
@ -67,6 +68,7 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:ellipsize="middle" android:ellipsize="middle"
android:singleLine="true" android:singleLine="true"
android:textAlignment="viewStart"
android:textColor="@color/textColorMaxContrast" android:textColor="@color/textColorMaxContrast"
tools:text="A week ago" /> tools:text="A week ago" />

View file

@ -33,10 +33,11 @@
android:layout_margin="16dp" android:layout_margin="16dp"
android:focusable="false" android:focusable="false"
android:focusableInTouchMode="false" android:focusableInTouchMode="false"
android:gravity="center_vertical" android:gravity="start|center_vertical"
android:textAlignment="viewStart"
android:textColor="@color/conversation_item_header" android:textColor="@color/conversation_item_header"
android:textSize="16sp" android:textSize="16sp"
tools:drawableLeft="@drawable/ic_add_grey600_24px"
tools:drawablePadding="16dp" tools:drawablePadding="16dp"
tools:drawableStart="@drawable/ic_add_grey600_24px"
tools:text="Start a new conversation" /> tools:text="Start a new conversation" />
</RelativeLayout> </RelativeLayout>

View file

@ -41,6 +41,7 @@
android:lines="1" android:lines="1"
android:paddingStart="24dp" android:paddingStart="24dp"
android:paddingEnd="0dp" android:paddingEnd="0dp"
android:textAlignment="viewStart"
android:textAppearance="@style/ListItem" android:textAppearance="@style/ListItem"
tools:text="Ringy Gone" /> tools:text="Ringy Gone" />

View file

@ -35,6 +35,7 @@
android:layout_marginTop="@dimen/standard_half_margin" android:layout_marginTop="@dimen/standard_half_margin"
android:layout_marginEnd="@dimen/standard_margin" android:layout_marginEnd="@dimen/standard_margin"
android:layout_marginBottom="@dimen/standard_half_margin" android:layout_marginBottom="@dimen/standard_half_margin"
android:textAlignment="viewStart"
android:textColor="@color/colorPrimary" android:textColor="@color/colorPrimary"
android:textStyle="bold" android:textStyle="bold"
tools:text="A" /> tools:text="A" />

View file

@ -70,13 +70,14 @@
android:ellipsize="end" android:ellipsize="end"
android:gravity="start|center_vertical" android:gravity="start|center_vertical"
android:lines="1" android:lines="1"
android:textAlignment="viewStart"
android:textColor="@color/fontSecondaryAppbar" android:textColor="@color/fontSecondaryAppbar"
android:textSize="16sp" android:textSize="16sp"
app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintLeft_toRightOf="@id/menu_button" app:layout_constraintLeft_toRightOf="@id/menu_button"
app:layout_constraintRight_toLeftOf="@id/rightContainer" app:layout_constraintRight_toLeftOf="@id/rightContainer"
app:layout_constraintTop_toTopOf="parent" app:layout_constraintTop_toTopOf="parent"
tools:text="Search in Nextcloud" /> tools:text="@string/appbar_search_in" />
<FrameLayout <FrameLayout
android:id="@+id/rightContainer" android:id="@+id/rightContainer"

View file

@ -75,24 +75,25 @@
android:imeOptions="actionDone" android:imeOptions="actionDone"
android:inputType="textAutoCorrect|textMultiLine|textCapSentences" android:inputType="textAutoCorrect|textMultiLine|textCapSentences"
android:lineSpacingMultiplier="1.2" android:lineSpacingMultiplier="1.2"
android:minHeight="48dp" /> android:minHeight="48dp"
android:textAlignment="viewStart"
tools:hint="@string/nc_hint_enter_a_message" />
<TextView <TextView
android:id="@+id/slideToCancelDescription" android:id="@+id/slideToCancelDescription"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_below="@id/quotedChatMessageView" android:layout_below="@id/quotedChatMessageView"
android:layout_centerInParent="true"
android:layout_toStartOf="@id/recordAudioButton" android:layout_toStartOf="@id/recordAudioButton"
android:layout_toEndOf="@id/audioRecordDuration" android:layout_toEndOf="@id/audioRecordDuration"
android:layout_centerInParent="true" android:text="@string/nc_voice_message_slide_to_cancel"
android:textAlignment="center" android:textAlignment="viewStart"
android:textColor="@color/low_emphasis_text"
android:textSize="16sp" android:textSize="16sp"
android:textStyle="bold" android:textStyle="bold"
android:textColor="@color/low_emphasis_text"
android:text="@string/nc_voice_message_slide_to_cancel"
android:visibility="gone" android:visibility="gone"
tools:visibility="visible"> tools:visibility="visible" />
</TextView>
<ImageView <ImageView
android:id="@+id/microphoneEnabledInfoBackground" android:id="@+id/microphoneEnabledInfoBackground"

View file

@ -1,2 +1,2 @@
DO NOT TOUCH; GENERATED BY DRONE DO NOT TOUCH; GENERATED BY DRONE
<span class="mdl-layout-title">Lint Report: 3 errors and 270 warnings</span> <span class="mdl-layout-title">Lint Report: 3 errors and 269 warnings</span>