mirror of
https://github.com/jrpie/Launcher.git
synced 2025-02-23 14:31:30 +01:00
Add theme description images that will be in a CardView
3 Options: dark, finn, custom
This commit is contained in:
parent
23bbc8d34c
commit
7f9bc7d276
5 changed files with 90 additions and 41 deletions
BIN
app/src/main/res/drawable/custom_theme.jpg
Normal file
BIN
app/src/main/res/drawable/custom_theme.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 32 KiB |
BIN
app/src/main/res/drawable/dark_theme.jpg
Normal file
BIN
app/src/main/res/drawable/dark_theme.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 32 KiB |
BIN
app/src/main/res/drawable/finnmglas_theme.jpg
Normal file
BIN
app/src/main/res/drawable/finnmglas_theme.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 32 KiB |
|
@ -6,35 +6,44 @@
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:background="?attr/colorPrimary"
|
android:background="?attr/colorPrimary"
|
||||||
android:gravity="center|top"
|
android:gravity="center"
|
||||||
android:orientation="vertical"
|
android:orientation="vertical"
|
||||||
android:padding="32sp"
|
android:paddingLeft="32sp"
|
||||||
|
android:paddingTop="32sp"
|
||||||
|
android:paddingRight="32sp"
|
||||||
tools:context=".SettingsActivity">
|
tools:context=".SettingsActivity">
|
||||||
|
|
||||||
<!--Button
|
<ScrollView
|
||||||
style="@style/Widget.AppCompat.Button"
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="match_parent">
|
||||||
|
|
||||||
|
<LinearLayout
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:onClick="setLauncher"
|
android:orientation="vertical">
|
||||||
android:text="@string/settings_select_launcher"
|
|
||||||
android:textAllCaps="false" /-->
|
|
||||||
|
|
||||||
|
|
||||||
<androidx.cardview.widget.CardView
|
<androidx.cardview.widget.CardView
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginBottom="10sp"
|
android:layout_marginBottom="10sp"
|
||||||
android:theme="@style/finnmglasTheme">
|
app:cardCornerRadius="8dp">
|
||||||
|
|
||||||
<androidx.constraintlayout.widget.ConstraintLayout
|
<androidx.constraintlayout.widget.ConstraintLayout
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="match_parent">
|
||||||
|
|
||||||
|
<ImageView
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:background="?attr/colorAccent">
|
android:adjustViewBounds="true"
|
||||||
|
android:scaleType="fitXY"
|
||||||
|
app:srcCompat="@drawable/dark_theme" />
|
||||||
|
|
||||||
<Button
|
<Button
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:text="Activate"
|
android:text="select"
|
||||||
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
app:layout_constraintEnd_toEndOf="parent" />
|
app:layout_constraintEnd_toEndOf="parent" />
|
||||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||||
|
|
||||||
|
@ -44,19 +53,59 @@
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginBottom="10sp"
|
android:layout_marginBottom="10sp"
|
||||||
android:theme="@style/darkTheme">
|
app:cardCornerRadius="8dp">
|
||||||
|
|
||||||
<androidx.constraintlayout.widget.ConstraintLayout
|
<androidx.constraintlayout.widget.ConstraintLayout
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:background="?attr/colorAccent">
|
android:background="?attr/colorAccent">
|
||||||
|
|
||||||
|
<ImageView
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="match_parent"
|
||||||
|
android:adjustViewBounds="true"
|
||||||
|
android:scaleType="fitXY"
|
||||||
|
app:srcCompat="@drawable/finnmglas_theme" />
|
||||||
|
|
||||||
<Button
|
<Button
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:text="Activate"
|
android:text="select"
|
||||||
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
|
app:layout_constraintEnd_toEndOf="parent" />
|
||||||
|
|
||||||
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||||
|
|
||||||
|
</androidx.cardview.widget.CardView>
|
||||||
|
|
||||||
|
<androidx.cardview.widget.CardView
|
||||||
|
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:layout_width="match_parent"
|
||||||
|
android:layout_height="match_parent"
|
||||||
|
android:adjustViewBounds="true"
|
||||||
|
android:scaleType="fitXY"
|
||||||
|
app:srcCompat="@drawable/custom_theme" />
|
||||||
|
|
||||||
|
<Button
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:text="select"
|
||||||
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
app:layout_constraintEnd_toEndOf="parent" />
|
app:layout_constraintEnd_toEndOf="parent" />
|
||||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||||
|
|
||||||
</androidx.cardview.widget.CardView>
|
</androidx.cardview.widget.CardView>
|
||||||
|
|
||||||
|
</LinearLayout>
|
||||||
|
</ScrollView>
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
|
@ -17,8 +17,8 @@
|
||||||
<string name="settings_title">Settings</string>
|
<string name="settings_title">Settings</string>
|
||||||
|
|
||||||
<string name="settings_tab_app" translatable="false">Apps</string>
|
<string name="settings_tab_app" translatable="false">Apps</string>
|
||||||
<string name="settings_tab_theme" translatable="false">Theme</string>
|
<string name="settings_tab_theme" translatable="false">Themes</string>
|
||||||
<string name="settings_tab_launcher" translatable="false">Launcher</string>
|
<string name="settings_tab_launcher" translatable="false">Meta</string>
|
||||||
|
|
||||||
<string name="settings_feedback">Give some feedback</string>
|
<string name="settings_feedback">Give some feedback</string>
|
||||||
<string name="settings_show_tutorial">View Launcher Tutorial</string>
|
<string name="settings_show_tutorial">View Launcher Tutorial</string>
|
||||||
|
|
Loading…
Add table
Reference in a new issue