Messaging: Use Start and End instead of Left and Right

That way we don't need a separate file for these styles anymore

Change-Id: If689fba727f9b678b628c7bfb51fa8e4474d68de
This commit is contained in:
Michael W
2025-05-18 09:18:48 +00:00
parent 2f9b1386f8
commit aad904a01b
15 changed files with 119 additions and 363 deletions
+3 -2
View File
@@ -1,6 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2015 The Android Open Source Project
Copyright (C) 2025 The LineageOS Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@@ -20,8 +21,8 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingTop="16dp"
android:paddingLeft="24dp"
android:paddingRight="24dp"
android:paddingStart="24dp"
android:paddingEnd="24dp"
android:singleLine="true"
android:maxLines="1"
android:hint="@string/enter_phone_number_hint"
+3 -2
View File
@@ -1,6 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2015 The Android Open Source Project
Copyright (C) 2025 The LineageOS Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@@ -19,7 +20,7 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="center"
android:paddingLeft="@dimen/fastscroll_preview_padding"
android:paddingRight="@dimen/fastscroll_preview_padding"
android:paddingStart="@dimen/fastscroll_preview_padding"
android:paddingEnd="@dimen/fastscroll_preview_padding"
android:textColor="@color/fastscroll_preview_text_color"
android:textSize="@dimen/fastscroll_preview_text_size" />
+3 -2
View File
@@ -1,6 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2015 The Android Open Source Project
Copyright (C) 2025 The LineageOS Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@@ -35,8 +36,8 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_marginLeft="@dimen/list_empty_text_left_right_margin"
android:layout_marginRight="@dimen/list_empty_text_left_right_margin"
android:layout_marginStart="@dimen/list_empty_text_left_right_margin"
android:layout_marginEnd="@dimen/list_empty_text_left_right_margin"
android:layout_marginTop="@dimen/list_empty_text_top_margin"
style="@style/ListEmptyText"/>
</com.android.messaging.ui.ListEmptyView>
+3 -2
View File
@@ -1,6 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2015 The Android Open Source Project
Copyright (C) 2025 The LineageOS Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@@ -20,8 +21,8 @@
android:layout_width="match_parent"
android:layout_height="@dimen/settings_list_item_height"
android:gravity="center_vertical"
android:paddingLeft="16dp"
android:paddingRight="16dp"
android:paddingStart="16dp"
android:paddingEnd="16dp"
android:background="?android:attr/selectableItemBackground" >
<TextView
+4 -3
View File
@@ -1,6 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2015 The Android Open Source Project
Copyright (C) 2025 The LineageOS Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@@ -52,8 +53,8 @@
<TextView
android:id="@+id/snack_bar_action"
style="@style/SnackBarText"
android:paddingLeft="@dimen/snack_bar_left_right_margin"
android:paddingRight="@dimen/snack_bar_left_right_margin"
android:paddingStart="@dimen/snack_bar_left_right_margin"
android:paddingEnd="@dimen/snack_bar_left_right_margin"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:gravity="center_vertical"
@@ -61,4 +62,4 @@
android:textAllCaps="true" />
</LinearLayout>
</LinearLayout>
</LinearLayout>
+5 -5
View File
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2015 The Android Open Source Project
Copyright (C) 2024 The LineageOS Project
Copyright (C) 2024-2025 The LineageOS Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@@ -27,8 +27,8 @@
android:layout_width="match_parent"
android:layout_height="48dp"
android:orientation="horizontal"
android:paddingLeft="10dip"
android:paddingRight="10dip"
android:paddingStart="10dip"
android:paddingEnd="10dip"
android:layout_alignParentTop="true">
<TextView
android:id="@+id/widget_label"
@@ -82,8 +82,8 @@
android:gravity="center_vertical"
android:visibility="gone"
android:singleLine="false"
android:paddingRight="20dp"
android:paddingLeft="20dp"
android:paddingEnd="20dp"
android:paddingStart="20dp"
android:paddingBottom="20dp"
android:text="@string/tap_to_configure" />
<ImageView
+3 -2
View File
@@ -1,6 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2015 The Android Open Source Project
Copyright (C) 2025 The LineageOS Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@@ -26,7 +27,7 @@
android:layout_width="match_parent"
android:layout_height="@dimen/widget_header_height"
android:orientation="horizontal"
android:paddingLeft="8dip"
android:paddingStart="8dip"
android:background="@drawable/widget_top_background"
android:gravity="center_vertical">
<TextView
@@ -45,7 +46,7 @@
android:src="@drawable/ic_add_white"
android:background="?android:attr/selectableItemBackground"
android:contentDescription="@string/widget_new_conversation_content_description"
android:paddingRight="8dip"
android:paddingEnd="8dip"
android:paddingBottom="4dip" />
</LinearLayout>
<ImageView
+3 -3
View File
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2015 The Android Open Source Project
Copyright (C) 2024 The LineageOS Project
Copyright (C) 2024-2025 The LineageOS Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@@ -21,8 +21,8 @@
android:id="@+id/widget_conversation_list_item"
android:layout_width="match_parent"
style="@style/WidgetConversationListItemStyle"
android:paddingLeft="8dip"
android:paddingRight="8dip" >
android:paddingStart="8dip"
android:paddingEnd="8dip" >
<FrameLayout
android:id="@+id/avatarFrame"
+7 -7
View File
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2015 The Android Open Source Project
Copyright (C) 2024 The LineageOS Project
Copyright (C) 2024-2025 The LineageOS Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@@ -22,8 +22,8 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingBottom="8dp"
android:paddingLeft="8dip"
android:paddingRight="8dip" >
android:paddingStart="8dip"
android:paddingEnd="8dip" >
<FrameLayout
android:id="@+id/avatarFrame"
@@ -75,8 +75,8 @@
android:textAppearance="?android:attr/textAppearanceSmallInverse"
android:textSize="16sp"
android:paddingTop="6dp"
android:paddingLeft="6dp"
android:paddingRight="6dp"
android:paddingStart="6dp"
android:paddingEnd="6dp"
android:layout_marginBottom="3dip"
android:layout_alignParentBottom="true"
android:textColor="@color/widget_incoming_text_color"
@@ -84,8 +84,8 @@
<TextView android:id="@+id/date"
style="@style/WidgetConversationItemDate"
android:paddingLeft="6dp"
android:paddingRight="6dp"
android:paddingStart="6dp"
android:paddingEnd="6dp"
android:layout_marginBottom="9dip"
android:textSize="12sp"
android:layout_height="wrap_content"
+7 -7
View File
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2015 The Android Open Source Project
Copyright (C) 2024 The LineageOS Project
Copyright (C) 2024-2025 The LineageOS Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@@ -22,8 +22,8 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingBottom="8dp"
android:paddingLeft="8dip"
android:paddingRight="8dip" >
android:paddingStart="8dip"
android:paddingEnd="8dip" >
<FrameLayout
android:id="@+id/avatarFrame"
@@ -75,8 +75,8 @@
android:textAppearance="?android:attr/textAppearanceSmallInverse"
android:textSize="16sp"
android:paddingTop="6dp"
android:paddingLeft="6dp"
android:paddingRight="6dp"
android:paddingStart="6dp"
android:paddingEnd="6dp"
android:layout_marginBottom="3dip"
android:layout_alignParentBottom="true"
android:textColor="@color/widget_outgoing_text_color"
@@ -84,8 +84,8 @@
<TextView android:id="@+id/date"
style="@style/WidgetConversationItemDate"
android:paddingLeft="6dp"
android:paddingRight="6dp"
android:paddingStart="6dp"
android:paddingEnd="6dp"
android:layout_marginBottom="9dip"
android:textSize="12sp"
android:layout_height="wrap_content"