aboutsummaryrefslogblamecommitdiff
path: root/app/src/main/res/layout/fragment_post_history.xml
blob: bd0d5ba356e134c9b2bad99363c2f0b63dd5c110 (plain) (tree)
1
2
3
4
5
6




                                                                                                 
                                                  












                                                                  

                                                 
                                                     
 




                                                       












                                                                                    
                                                                                    










                                                                        
                                                                      



















                                                                                                 
                                                                                                 









                                                                                     
                                                                      






                                                                                              
                     











                                                                                              
                                                                                              









                                                                                  
                                                                      







                                                                                           











                                                                                               
                                                                                               









                                                                                   
                                                                      






                                                                                            


                                       
<?xml version="1.0" encoding="utf-8"?>
<androidx.core.widget.NestedScrollView xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    tools:context=".settings.PostHistoryFragment">

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:orientation="vertical">

        <TextView
            android:id="@+id/info_text_view_post_history_fragment"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:padding="16dp"
            android:drawablePadding="32dp"
            android:text="@string/restart_app_see_changes"
            android:gravity="center_vertical"
            android:textSize="?attr/font_default"
            android:fontFamily="?attr/font_family" />

        <View
            android:layout_width="match_parent"
            android:layout_height="1dp"
            android:background="@color/dividerColor" />

        <LinearLayout
            android:id="@+id/mark_posts_as_read_linear_layout_post_history_fragment"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:paddingTop="4dp"
            android:paddingBottom="4dp"
            android:paddingStart="72dp"
            android:paddingEnd="16dp"
            android:clickable="true"
            android:focusable="true"
            android:background="?attr/selectableItemBackground">

            <TextView
                android:id="@+id/mark_posts_as_read_text_view_post_history_fragment"
                android:layout_width="0dp"
                android:layout_height="wrap_content"
                android:layout_weight="1"
                android:layout_marginEnd="16dp"
                android:layout_gravity="center_vertical"
                android:drawablePadding="32dp"
                android:text="@string/settings_mark_posts_as_read_title"
                android:textColor="?attr/primaryTextColor"
                android:textSize="?attr/font_16"
                android:fontFamily="?attr/font_family" />

            <com.google.android.material.materialswitch.MaterialSwitch
                android:id="@+id/mark_posts_as_read_switch_post_history_fragment"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_gravity="center_vertical" />

        </LinearLayout>

        <LinearLayout
            android:id="@+id/mark_posts_as_read_after_voting_linear_layout_post_history_fragment"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:paddingTop="4dp"
            android:paddingBottom="4dp"
            android:paddingStart="72dp"
            android:paddingEnd="16dp"
            android:clickable="true"
            android:focusable="true"
            android:background="?attr/selectableItemBackground">

            <TextView
                android:id="@+id/mark_posts_as_read_after_voting_text_view_post_history_fragment"
                android:layout_width="0dp"
                android:layout_height="wrap_content"
                android:layout_weight="1"
                android:layout_marginEnd="16dp"
                android:layout_gravity="center_vertical"
                android:text="@string/settings_mark_posts_as_read_after_voting_title"
                android:textColor="?attr/primaryTextColor"
                android:textSize="?attr/font_16"
                android:fontFamily="?attr/font_family" />

            <com.google.android.material.materialswitch.MaterialSwitch
                android:id="@+id/mark_posts_as_read_after_voting_switch_post_history_fragment"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_gravity="center_vertical" />

        </LinearLayout>

        <LinearLayout
            android:id="@+id/mark_posts_as_read_on_scroll_linear_layout_post_history_fragment"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:paddingTop="4dp"
            android:paddingBottom="4dp"
            android:paddingStart="72dp"
            android:paddingEnd="16dp"
            android:clickable="true"
            android:focusable="true"
            android:background="?attr/selectableItemBackground">

            <TextView
                android:id="@+id/mark_posts_as_read_on_scroll_text_view_post_history_fragment"
                android:layout_width="0dp"
                android:layout_height="wrap_content"
                android:layout_weight="1"
                android:layout_marginEnd="16dp"
                android:layout_gravity="center_vertical"
                android:text="@string/settings_mark_posts_as_read_on_scroll_title"
                android:textColor="?attr/primaryTextColor"
                android:textSize="?attr/font_16"
                android:fontFamily="?attr/font_family" />

            <com.google.android.material.materialswitch.MaterialSwitch
                android:id="@+id/mark_posts_as_read_on_scroll_switch_post_history_fragment"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_gravity="center_vertical" />

        </LinearLayout>

        <LinearLayout
            android:id="@+id/hide_read_posts_automatically_linear_layout_post_history_fragment"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:paddingTop="4dp"
            android:paddingBottom="4dp"
            android:paddingStart="72dp"
            android:paddingEnd="16dp"
            android:clickable="true"
            android:focusable="true"
            android:background="?attr/selectableItemBackground">

            <TextView
                android:id="@+id/hide_read_posts_automatically_text_view_post_history_fragment"
                android:layout_width="0dp"
                android:layout_height="wrap_content"
                android:layout_weight="1"
                android:layout_marginEnd="16dp"
                android:layout_gravity="center_vertical"
                android:text="@string/settings_hide_read_posts_automatically_title"
                android:textColor="?attr/primaryTextColor"
                android:textSize="?attr/font_16"
                android:fontFamily="?attr/font_family" />

            <com.google.android.material.materialswitch.MaterialSwitch
                android:id="@+id/hide_read_posts_automatically_switch_post_history_fragment"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_gravity="center_vertical" />

        </LinearLayout>

    </LinearLayout>

</androidx.core.widget.NestedScrollView>