2021-08-23 16:54:44 +02:00
|
|
|
<?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"
|
2022-02-12 19:14:04 +01:00
|
|
|
android:layout_width="114dp"
|
2021-08-23 16:54:44 +02:00
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:orientation="vertical"
|
|
|
|
android:padding="4dp">
|
|
|
|
|
|
|
|
<com.google.android.material.card.MaterialCardView
|
|
|
|
android:id="@+id/theme_card"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:checkable="true"
|
|
|
|
android:clickable="true"
|
|
|
|
android:focusable="true"
|
|
|
|
android:importantForAccessibility="no"
|
2022-02-12 19:14:04 +01:00
|
|
|
app:cardCornerRadius="17dp"
|
2021-08-27 22:22:49 +02:00
|
|
|
app:strokeColor="?attr/colorAccent"
|
|
|
|
app:strokeWidth="4dp"
|
2021-08-23 16:54:44 +02:00
|
|
|
app:cardElevation="0dp">
|
|
|
|
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
|
|
android:layout_width="match_parent"
|
2022-02-12 19:14:04 +01:00
|
|
|
android:layout_height="170dp"
|
2021-08-23 16:54:44 +02:00
|
|
|
android:background="?android:attr/colorBackground">
|
|
|
|
|
|
|
|
<View
|
|
|
|
android:id="@+id/top_nav"
|
|
|
|
android:layout_width="0dp"
|
2022-02-12 19:14:04 +01:00
|
|
|
android:layout_height="40dp"
|
2021-08-23 16:54:44 +02:00
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
|
2022-02-12 19:14:04 +01:00
|
|
|
<com.google.android.material.card.MaterialCardView
|
2021-08-23 16:54:44 +02:00
|
|
|
android:id="@+id/top_nav_text"
|
2022-02-12 19:14:04 +01:00
|
|
|
android:layout_width="54dp"
|
|
|
|
android:layout_height="17dp"
|
|
|
|
android:layout_marginTop="5dp"
|
|
|
|
android:layout_marginStart="12dp"
|
2021-08-23 16:54:44 +02:00
|
|
|
app:layout_constraintBottom_toBottomOf="@+id/top_nav"
|
|
|
|
app:layout_constraintStart_toStartOf="@+id/top_nav"
|
|
|
|
app:layout_constraintTop_toTopOf="@+id/top_nav"
|
2022-02-12 19:14:04 +01:00
|
|
|
app:cardBackgroundColor="?attr/colorOnSurface"
|
|
|
|
app:cardCornerRadius="4dp"/>
|
2021-08-23 16:54:44 +02:00
|
|
|
|
2022-02-12 19:14:04 +01:00
|
|
|
<com.google.android.material.card.MaterialCardView
|
2021-08-27 22:22:49 +02:00
|
|
|
android:id="@+id/cover_container"
|
2021-08-23 16:54:44 +02:00
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="0dp"
|
2022-02-12 19:14:04 +01:00
|
|
|
android:layout_marginTop="4dp"
|
2021-08-28 18:28:15 +02:00
|
|
|
android:src="@drawable/rounded_rectangle"
|
|
|
|
app:layout_constraintTop_toBottomOf="@+id/top_nav"
|
2022-02-12 19:14:04 +01:00
|
|
|
app:layout_constraintDimensionRatio="2:2.7"
|
|
|
|
app:layout_constraintStart_toStartOf="@id/top_nav_text"
|
|
|
|
app:layout_constraintEnd_toStartOf="@id/center_guideline"
|
|
|
|
app:cardBackgroundColor="?android:attr/divider"
|
|
|
|
app:cardElevation="0dp" />
|
2021-08-23 16:54:44 +02:00
|
|
|
|
2022-02-12 19:14:04 +01:00
|
|
|
<com.google.android.material.card.MaterialCardView
|
2021-11-19 23:39:30 +01:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2021-08-27 22:22:49 +02:00
|
|
|
android:layout_marginStart="4dp"
|
2021-08-23 16:54:44 +02:00
|
|
|
android:layout_marginTop="4dp"
|
2021-08-27 22:22:49 +02:00
|
|
|
app:layout_constraintStart_toStartOf="@+id/cover_container"
|
2022-02-12 19:14:04 +01:00
|
|
|
app:layout_constraintTop_toTopOf="@+id/cover_container"
|
|
|
|
app:cardCornerRadius="6dp">
|
2021-11-19 23:39:30 +01:00
|
|
|
|
2022-02-12 19:14:04 +01:00
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/badges"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:background="@drawable/rounded_rectangle">
|
2021-11-19 23:39:30 +01:00
|
|
|
|
2022-02-12 19:14:04 +01:00
|
|
|
<View
|
|
|
|
android:layout_width="12dp"
|
|
|
|
android:layout_height="16dp"
|
|
|
|
android:background="?attr/colorTertiary" />
|
2021-11-19 23:39:30 +01:00
|
|
|
|
2022-02-12 19:14:04 +01:00
|
|
|
<View
|
|
|
|
android:layout_width="12dp"
|
|
|
|
android:layout_height="16dp"
|
|
|
|
android:background="?attr/colorSecondary" />
|
2021-08-23 16:54:44 +02:00
|
|
|
|
2022-02-12 19:14:04 +01:00
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
</com.google.android.material.card.MaterialCardView>
|
|
|
|
|
|
|
|
<com.google.android.material.card.MaterialCardView
|
2021-08-23 16:54:44 +02:00
|
|
|
android:id="@+id/bottom_nav"
|
|
|
|
android:layout_width="0dp"
|
2022-02-12 19:14:04 +01:00
|
|
|
android:layout_height="40dp"
|
2021-08-23 16:54:44 +02:00
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
2022-02-12 19:14:04 +01:00
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:cardCornerRadius="0dp">
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginBottom="2dp"
|
|
|
|
android:layout_gravity="center_vertical"
|
|
|
|
android:orientation="horizontal"
|
|
|
|
android:paddingHorizontal="12dp">
|
|
|
|
|
|
|
|
<com.google.android.material.card.MaterialCardView
|
|
|
|
android:id="@+id/bottom_nav_selected_item"
|
|
|
|
android:layout_width="17dp"
|
|
|
|
android:layout_height="17dp"
|
|
|
|
android:layout_marginEnd="8dp"
|
|
|
|
app:cardBackgroundColor="?attr/colorPrimary"
|
|
|
|
app:cardCornerRadius="100dp"/>
|
|
|
|
|
|
|
|
<com.google.android.material.card.MaterialCardView
|
|
|
|
android:id="@+id/bottom_nav_unselected_item"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="17dp"
|
|
|
|
android:src="@drawable/oval"
|
|
|
|
android:alpha="0.6"
|
|
|
|
app:cardBackgroundColor="?attr/colorOnSurface"
|
|
|
|
app:cardCornerRadius="4dp"/>
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
</com.google.android.material.card.MaterialCardView>
|
2021-08-23 16:54:44 +02:00
|
|
|
|
2021-08-27 22:22:49 +02:00
|
|
|
<androidx.constraintlayout.widget.Guideline
|
|
|
|
android:id="@+id/center_guideline"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="0dp"
|
|
|
|
android:orientation="vertical"
|
|
|
|
app:layout_constraintGuide_percent="0.5" />
|
2021-08-23 16:54:44 +02:00
|
|
|
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
|
|
|
|
</com.google.android.material.card.MaterialCardView>
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/name"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="32sp"
|
|
|
|
android:maxLines="2"
|
|
|
|
android:layout_marginTop="4dp"
|
|
|
|
android:textAlignment="center"
|
2021-10-19 23:41:59 +02:00
|
|
|
android:textAppearance="?android:attr/textAppearanceListItemSecondary"
|
2021-08-23 16:54:44 +02:00
|
|
|
tools:text="Theme Name" />
|
|
|
|
|
|
|
|
</LinearLayout>
|