2018-10-25 18:52:33 +02:00
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android= "http://schemas.android.com/apk/res/android"
2019-06-24 22:41:45 +02:00
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
2018-10-25 18:52:33 +02:00
android:layout_width="match_parent"
android:layout_height="match_parent"
2019-06-24 22:41:45 +02:00
tools:context=".fragments.SettingsFragment"
android:background="?themePrimary">
2018-10-25 18:52:33 +02:00
2018-10-26 00:50:37 +02:00
<androidx.constraintlayout.widget.ConstraintLayout
2018-10-25 18:52:33 +02:00
android:layout_width="match_parent"
android:layout_height="match_parent">
2019-06-26 14:11:32 +02:00
<ScrollView
2018-10-25 18:52:33 +02:00
android:layout_width="match_parent"
2019-06-26 14:11:32 +02:00
android:layout_height="match_parent">
<LinearLayout
android:orientation="vertical"
2018-10-25 18:52:33 +02:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
2019-06-26 14:11:32 +02:00
>
<androidx.cardview.widget.CardView
2018-10-25 18:52:33 +02:00
android:layout_width="match_parent"
2019-06-26 14:11:32 +02:00
android:layout_height="wrap_content"
android:layout_marginTop="9dp"
android:id="@+id/cardView_Info"
app:cardElevation="5dp"
app:cardUseCompatPadding="true"
app:cardBackgroundColor="?themeSecondary">
2018-10-25 18:52:33 +02:00
<LinearLayout
android:orientation="vertical"
android:layout_width="match_parent"
2019-06-26 14:11:32 +02:00
android:layout_height="wrap_content">
2018-10-25 18:52:33 +02:00
<TextView
2019-06-26 14:11:32 +02:00
android:text="@string/info"
2018-10-25 18:52:33 +02:00
android:layout_width="match_parent"
2019-06-24 22:41:45 +02:00
android:layout_height="wrap_content"
2019-06-26 14:11:32 +02:00
android:id="@+id/txtView_Info"
android:typeface="sans"
android:textSize="18sp"
2019-06-24 22:41:45 +02:00
android:textStyle="bold"
2019-06-26 14:11:32 +02:00
android:fontFamily="sans-serif"
android:layout_margin="7dp"
android:textColor="?colorAccent"/>
<LinearLayout
android:orientation="vertical"
2018-10-25 18:52:33 +02:00
android:layout_width="match_parent"
2019-06-24 22:41:45 +02:00
android:layout_height="wrap_content"
2019-06-26 14:11:32 +02:00
android:padding="7dp"
android:id="@+id/linLayout_User">
<TextView
android:text="@string/sample_user"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/txtView_User"
android:textSize="16sp"
android:textStyle="bold"
/>
<TextView
android:text="@string/user"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/txtView_UserDesc"/>
</LinearLayout>
<View
android:id="@+id/divider2"
2018-10-26 00:50:37 +02:00
android:layout_width="match_parent"
2019-06-26 14:11:32 +02:00
android:layout_height="1dp"
android:background="?dividerColor"
2019-06-24 22:41:45 +02:00
/>
2019-06-26 14:11:32 +02:00
<LinearLayout
android:orientation="vertical"
2018-10-26 00:50:37 +02:00
android:layout_width="match_parent"
2019-06-24 22:41:45 +02:00
android:layout_height="wrap_content"
2019-06-26 14:11:32 +02:00
android:layout_margin="7dp"
android:id="@+id/linLayout_Course">
<TextView
android:text="@string/sample_course"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/txtView_Course"
android:textSize="16sp"
android:textStyle="bold"/>
<TextView
android:text="@string/course_desc"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/txtView_CourseDesc"/>
</LinearLayout>
<View
android:id="@+id/divider"
2019-06-25 12:07:18 +02:00
android:layout_width="match_parent"
2019-06-26 14:11:32 +02:00
android:layout_height="1dp"
android:background="?dividerColor"
/>
2018-10-25 18:52:33 +02:00
<LinearLayout
android:orientation="vertical"
2019-06-26 14:11:32 +02:00
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_margin="7dp"
android:id="@+id/linLayout_About">
2018-10-25 18:52:33 +02:00
<TextView
2019-06-26 14:11:32 +02:00
android:text="@string/about_txtView"
2018-10-25 18:52:33 +02:00
android:layout_width="match_parent"
2019-06-24 22:41:45 +02:00
android:layout_height="wrap_content"
2019-06-26 14:11:32 +02:00
android:id="@+id/txtView_About"
2019-06-24 22:41:45 +02:00
android:textStyle="bold"
2019-06-26 14:11:32 +02:00
android:textSize="16sp"
2019-06-24 22:41:45 +02:00
/>
2018-10-25 18:52:33 +02:00
<TextView
2019-06-26 14:11:32 +02:00
android:text="@string/about_version"
2018-10-25 18:52:33 +02:00
android:layout_width="match_parent"
2019-06-24 22:41:45 +02:00
android:layout_height="wrap_content"
2019-06-26 14:11:32 +02:00
android:id="@+id/txtView_AboutDesc"/>
2018-10-25 18:52:33 +02:00
</LinearLayout>
2019-06-26 14:11:32 +02:00
<View
android:id="@+id/divider6"
android:layout_width="match_parent"
android:layout_height="1dp"
android:background="?dividerColor"
/>
2018-10-25 18:52:33 +02:00
<LinearLayout
android:orientation="vertical"
android:layout_width="match_parent"
2019-06-26 14:11:32 +02:00
android:layout_height="match_parent" android:id="@+id/linLayout_Licence"
android:layout_margin="7dp">
<TextView
android:text="@string/licenses"
android:layout_width="match_parent"
android:layout_height="wrap_content" android:id="@+id/textView3"
android:textStyle="bold" android:textSize="16sp"/>
2018-10-25 18:52:33 +02:00
</LinearLayout>
</LinearLayout>
2019-06-26 14:11:32 +02:00
</androidx.cardview.widget.CardView>
<androidx.cardview.widget.CardView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/cardView_Settings"
app:cardElevation="5dp"
app:cardUseCompatPadding="true"
app:cardBackgroundColor="?themeSecondary">
2019-03-09 22:15:53 +01:00
<LinearLayout
2019-06-26 14:11:32 +02:00
android:orientation="vertical"
2019-03-09 22:15:53 +01:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
2019-06-26 14:11:32 +02:00
android:id="@+id/linLayout_Settings"
>
<TextView
android:text="@string/settings"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/txtView_Settings"
android:typeface="sans"
android:textSize="18sp"
android:textColor="?colorAccent"
android:textStyle="bold"
android:paddingTop="3dp" android:layout_margin="7dp"/>
2019-03-09 22:15:53 +01:00
<LinearLayout
android:orientation="vertical"
2019-06-26 14:11:32 +02:00
android:layout_width="match_parent"
android:layout_height="match_parent" android:id="@+id/linLayout_Theme"
android:layout_margin="7dp">
2019-03-09 22:15:53 +01:00
<TextView
2019-06-26 14:11:32 +02:00
android:text="@string/theme"
2019-03-09 22:15:53 +01:00
android:layout_width="match_parent"
2019-06-26 14:11:32 +02:00
android:layout_height="wrap_content" android:id="@+id/txtView_Theme"
android:textSize="16sp" android:textStyle="bold"/>
2019-03-09 22:15:53 +01:00
<TextView
2019-06-26 14:11:32 +02:00
android:text="@string/themeLight"
android:layout_width="match_parent"
android:layout_height="wrap_content" android:id="@+id/txtView_SelectedTheme"/>
</LinearLayout>
<View
android:id="@+id/divider3"
android:layout_width="match_parent"
android:layout_height="1dp"
android:background="?dividerColor"
/>
2020-02-23 20:09:27 +01:00
2019-06-26 14:11:32 +02:00
<LinearLayout
2020-02-23 20:09:27 +01:00
android:id="@+id/linLayout_PrimaryColor"
2019-06-26 14:11:32 +02:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
2020-02-23 20:09:27 +01:00
android:layout_margin="7dp"
2019-06-26 14:11:32 +02:00
android:clickable="true"
2020-02-23 20:09:27 +01:00
android:focusable="true"
android:gravity="center_vertical|end"
android:orientation="horizontal">
2019-06-26 14:11:32 +02:00
<LinearLayout
android:layout_width="wrap_content"
2020-02-23 20:09:27 +01:00
android:layout_height="wrap_content"
android:orientation="vertical">
2019-06-26 14:11:32 +02:00
<TextView
2020-02-23 20:09:27 +01:00
android:id="@+id/txtView_PrimaryColor"
2019-06-26 14:11:32 +02:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
2020-02-23 20:09:27 +01:00
android:text="@string/primary_color"
2019-06-26 14:11:32 +02:00
android:textSize="16sp"
2020-02-23 20:09:27 +01:00
android:textStyle="bold" />
2019-06-26 14:11:32 +02:00
<TextView
2020-02-23 20:09:27 +01:00
android:id="@+id/txtView_PrimaryColorDesc"
2019-06-26 14:11:32 +02:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
2020-02-23 20:09:27 +01:00
android:text="@string/primary_color_desc" />
2019-06-26 14:11:32 +02:00
</LinearLayout>
2020-02-23 20:09:27 +01:00
2019-06-26 14:11:32 +02:00
<LinearLayout
2019-03-09 22:15:53 +01:00
android:layout_width="match_parent"
2019-06-24 22:41:45 +02:00
android:layout_height="wrap_content"
2019-06-26 14:11:32 +02:00
android:layout_margin="7dp"
2020-02-23 20:09:27 +01:00
android:gravity="end"
android:orientation="vertical">
2019-06-26 14:11:32 +02:00
<View
2020-02-23 20:09:27 +01:00
android:id="@+id/view_PrimaryColor"
2019-06-26 14:11:32 +02:00
android:layout_width="40dp"
android:layout_height="40dp"
2020-02-23 20:09:27 +01:00
android:background="?colorPrimary" />
2019-06-26 14:11:32 +02:00
</LinearLayout>
2019-03-09 22:15:53 +01:00
</LinearLayout>
2019-06-26 14:11:32 +02:00
<View
android:id="@+id/divider4"
android:layout_width="match_parent"
android:layout_height="1dp"
android:background="?dividerColor"
/>
2019-03-09 22:15:53 +01:00
<LinearLayout
2019-06-26 14:11:32 +02:00
android:orientation="horizontal"
2019-03-09 22:15:53 +01:00
android:layout_width="match_parent"
2019-06-24 22:41:45 +02:00
android:layout_height="wrap_content"
2019-06-26 14:11:32 +02:00
android:gravity="center_vertical|end"
android:clickable="true"
android:id="@+id/linLayout_AccentColor"
android:focusable="true" android:layout_margin="7dp">
<LinearLayout
android:orientation="vertical"
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<TextView
android:text="@string/accent_color"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/txtView_AccentColor"
android:textSize="16sp"
android:textStyle="bold"
/>
<TextView
android:text="@string/accent_color_desc"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/txtView_AccentColorDesc"/>
</LinearLayout>
<LinearLayout
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="7dp"
android:gravity="end">
<View
android:layout_width="40dp"
android:layout_height="40dp"
android:id="@+id/view_AccentColor"
android:background="?colorAccent"/>
</LinearLayout>
2019-03-09 22:15:53 +01:00
</LinearLayout>
2019-06-26 14:11:32 +02:00
<View
android:id="@+id/divider5"
android:layout_width="match_parent"
android:layout_height="1dp"
android:background="?android:attr/listDivider"
/>
<Switch
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/switch_buffet"
android:textSize="16sp"
android:textStyle="bold"
android:text="@string/show_buffet"
android:layout_margin="7dp"/>
2019-03-09 22:15:53 +01:00
</LinearLayout>
2019-06-26 14:11:32 +02:00
</androidx.cardview.widget.CardView>
</LinearLayout>
</ScrollView>
2018-10-26 00:50:37 +02:00
</androidx.constraintlayout.widget.ConstraintLayout>
2018-10-25 18:52:33 +02:00
</FrameLayout>