mirror of
				https://github.com/mihonapp/mihon.git
				synced 2025-11-04 08:08:55 +01:00 
			
		
		
		
	Minor layout tweaks for better RTL support
This commit is contained in:
		@@ -5,20 +5,14 @@
 | 
			
		||||
    android:layout_width="match_parent"
 | 
			
		||||
    android:layout_height="wrap_content">
 | 
			
		||||
 | 
			
		||||
    <androidx.constraintlayout.widget.ConstraintLayout
 | 
			
		||||
    <TextView
 | 
			
		||||
        android:id="@+id/title"
 | 
			
		||||
        style="@style/TextAppearance.Regular.SubHeading"
 | 
			
		||||
        android:layout_width="match_parent"
 | 
			
		||||
        android:layout_height="match_parent">
 | 
			
		||||
 | 
			
		||||
        <TextView
 | 
			
		||||
            android:id="@+id/title"
 | 
			
		||||
            style="@style/TextAppearance.Regular.SubHeading"
 | 
			
		||||
            android:layout_width="wrap_content"
 | 
			
		||||
            android:layout_height="wrap_content"
 | 
			
		||||
            android:paddingBottom="8dp"
 | 
			
		||||
            android:paddingStart="@dimen/material_component_text_fields_padding_above_and_below_label"
 | 
			
		||||
            android:paddingTop="8dp"
 | 
			
		||||
            tools:text="Title"/>
 | 
			
		||||
 | 
			
		||||
    </androidx.constraintlayout.widget.ConstraintLayout>
 | 
			
		||||
        android:layout_height="wrap_content"
 | 
			
		||||
        android:paddingBottom="8dp"
 | 
			
		||||
        android:paddingStart="@dimen/material_component_text_fields_padding_above_and_below_label"
 | 
			
		||||
        android:paddingTop="8dp"
 | 
			
		||||
        tools:text="Title"/>
 | 
			
		||||
 | 
			
		||||
</FrameLayout>
 | 
			
		||||
 
 | 
			
		||||
@@ -24,13 +24,16 @@
 | 
			
		||||
        <item name="android:divider">@color/dividerLight</item>
 | 
			
		||||
        <item name="android:listDivider">@drawable/line_divider_light</item>
 | 
			
		||||
 | 
			
		||||
        <!-- Handles RTL text -->
 | 
			
		||||
        <item name="android:textAlignment">gravity</item>
 | 
			
		||||
        <item name="android:textDirection">locale</item>
 | 
			
		||||
 | 
			
		||||
        <!-- Themes -->
 | 
			
		||||
        <item name="windowActionModeOverlay">true</item>
 | 
			
		||||
        <item name="actionBarTheme">@style/Theme.ActionBar.Light</item>
 | 
			
		||||
        <item name="preferenceTheme">@style/PreferenceThemeOverlay</item>
 | 
			
		||||
        <item name="alertDialogTheme">@style/Theme.AlertDialog.Light</item>
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
        <!-- Custom Attributes-->
 | 
			
		||||
        <item name="selectable_list_drawable">@drawable/list_item_selector_light</item>
 | 
			
		||||
        <item name="selectable_library_drawable">@drawable/library_item_selector_light</item>
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user