mirror of
https://github.com/jrpie/Launcher.git
synced 2025-02-24 15:01:32 +01:00

- Rename MainActivity to HomeActivity - Move functions.kt one level up - Rename package `extern` to `libraries` - Fix layouts and layout elements (nomenclature: `activity_fragment_element`) - Move SectionsPagerAdapter code into the related activity kotlin file
137 lines
No EOL
6 KiB
XML
137 lines
No EOL
6 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<LinearLayout
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
android:id="@+id/settings_theme_container"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:background="?attr/colorPrimary"
|
|
android:gravity="center"
|
|
android:orientation="vertical"
|
|
android:paddingLeft="32sp"
|
|
android:paddingTop="16sp"
|
|
android:paddingRight="32sp"
|
|
tools:context=".settings.meta.SettingsFragmentMeta">
|
|
|
|
<ScrollView
|
|
android:id="@+id/settings_theme_scroller"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical">
|
|
|
|
<androidx.cardview.widget.CardView
|
|
android:id="@+id/settings_theme_finn"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginBottom="10sp"
|
|
app:cardCornerRadius="8dp">
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent">
|
|
|
|
<ImageView
|
|
android:id="@+id/settings_theme_finn_img"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:adjustViewBounds="true"
|
|
android:scaleType="fitXY"
|
|
app:srcCompat="@drawable/finnmglas_theme"
|
|
tools:ignore="ContentDescription" />
|
|
|
|
<Button
|
|
android:id="@+id/settings_theme_finn_button_select"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/settings_select_theme"
|
|
android:textAllCaps="false"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent" />
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
</androidx.cardview.widget.CardView>
|
|
|
|
<androidx.cardview.widget.CardView
|
|
android:id="@+id/settings_theme_dark"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginBottom="10sp"
|
|
app:cardCornerRadius="8dp">
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent">
|
|
|
|
<ImageView
|
|
android:id="@+id/settings_theme_dark_img"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:adjustViewBounds="true"
|
|
android:scaleType="fitXY"
|
|
app:srcCompat="@drawable/dark_theme"
|
|
tools:ignore="ContentDescription" />
|
|
|
|
<Button
|
|
android:id="@+id/settings_theme_dark_button_select"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/settings_select_theme"
|
|
android:textAllCaps="false"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent" />
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
</androidx.cardview.widget.CardView>
|
|
|
|
<androidx.cardview.widget.CardView
|
|
android:id="@+id/settings_theme_custom"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginBottom="10sp"
|
|
app:cardCornerRadius="8dp">
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent">
|
|
|
|
<ImageView
|
|
android:id="@+id/settings_theme_custom_img"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:adjustViewBounds="true"
|
|
android:scaleType="fitXY"
|
|
app:srcCompat="@drawable/custom_theme"
|
|
tools:ignore="ContentDescription" />
|
|
|
|
<Button
|
|
android:id="@+id/settings_theme_custom_button_select"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/settings_select_theme"
|
|
android:textAllCaps="false"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent" />
|
|
|
|
<Button
|
|
android:id="@+id/settings_theme_custom_button_examples"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/settings_theme_examples"
|
|
android:textAllCaps="false"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintEnd_toStartOf="@id/settings_theme_custom_button_select" />
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
</androidx.cardview.widget.CardView>
|
|
|
|
</LinearLayout>
|
|
</ScrollView>
|
|
|
|
</LinearLayout> |