2021-08-23 22:54:44 +08: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"
|
2021-08-28 04:22:49 +08:00
|
|
|
android:layout_width="118dp"
|
2021-08-23 22:54:44 +08: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"
|
2021-08-28 04:22:49 +08:00
|
|
|
app:cardCornerRadius="@dimen/card_selector_radius"
|
|
|
|
app:contentPadding="4dp"
|
|
|
|
app:strokeColor="?attr/colorAccent"
|
|
|
|
app:strokeWidth="4dp"
|
2021-08-23 22:54:44 +08:00
|
|
|
app:cardElevation="0dp">
|
|
|
|
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="176dp"
|
|
|
|
android:background="?android:attr/colorBackground">
|
|
|
|
|
|
|
|
<View
|
|
|
|
android:id="@+id/top_nav"
|
|
|
|
android:layout_width="0dp"
|
2021-08-28 04:22:49 +08:00
|
|
|
android:layout_height="32dp"
|
2021-08-23 22:54:44 +08:00
|
|
|
android:background="?attr/colorToolbar"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/top_nav_text"
|
2021-08-28 04:22:49 +08:00
|
|
|
android:layout_width="65dp"
|
|
|
|
android:layout_height="16dp"
|
|
|
|
android:layout_marginStart="6dp"
|
2021-08-23 22:54:44 +08:00
|
|
|
android:src="@drawable/oval"
|
|
|
|
app:layout_constraintBottom_toBottomOf="@+id/top_nav"
|
|
|
|
app:layout_constraintStart_toStartOf="@+id/top_nav"
|
|
|
|
app:layout_constraintTop_toTopOf="@+id/top_nav"
|
|
|
|
app:tint="?attr/colorOnToolbar" />
|
|
|
|
|
|
|
|
<FrameLayout
|
2021-08-28 04:22:49 +08:00
|
|
|
android:id="@+id/cover_container"
|
2021-08-23 22:54:44 +08:00
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="0dp"
|
2021-08-28 04:22:49 +08:00
|
|
|
android:layout_marginStart="6dp"
|
|
|
|
android:layout_marginTop="6dp"
|
2021-08-23 22:54:44 +08:00
|
|
|
android:background="@drawable/rounded_rectangle"
|
|
|
|
app:layout_constraintDimensionRatio="2:3"
|
2021-08-28 04:22:49 +08:00
|
|
|
app:layout_constraintEnd_toEndOf="@+id/center_guideline"
|
2021-08-23 22:54:44 +08:00
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
2021-08-28 04:22:49 +08:00
|
|
|
app:layout_constraintTop_toBottomOf="@+id/top_nav">
|
2021-08-23 22:54:44 +08:00
|
|
|
|
|
|
|
<View
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:alpha="0.5"
|
|
|
|
android:background="?attr/colorOnSurface" />
|
|
|
|
|
|
|
|
</FrameLayout>
|
|
|
|
|
|
|
|
<View
|
|
|
|
android:id="@+id/cover_badge"
|
2021-08-28 04:22:49 +08:00
|
|
|
android:layout_width="12dp"
|
|
|
|
android:layout_height="16dp"
|
|
|
|
android:layout_marginStart="4dp"
|
2021-08-23 22:54:44 +08:00
|
|
|
android:layout_marginTop="4dp"
|
2021-08-28 04:22:49 +08:00
|
|
|
android:background="?attr/colorAccent"
|
|
|
|
app:layout_constraintStart_toStartOf="@+id/cover_container"
|
|
|
|
app:layout_constraintTop_toTopOf="@+id/cover_container" />
|
2021-08-23 22:54:44 +08:00
|
|
|
|
|
|
|
<View
|
|
|
|
android:id="@+id/bottom_nav"
|
|
|
|
android:layout_width="0dp"
|
2021-08-28 04:22:49 +08:00
|
|
|
android:layout_height="32dp"
|
2021-08-23 22:54:44 +08:00
|
|
|
android:background="?attr/colorToolbar"
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toStartOf="parent" />
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/bottom_nav_selected_item"
|
2021-08-28 04:22:49 +08:00
|
|
|
android:layout_width="16dp"
|
|
|
|
android:layout_height="16dp"
|
2021-08-23 22:54:44 +08:00
|
|
|
android:src="@drawable/oval"
|
2021-08-28 04:22:49 +08:00
|
|
|
android:layout_marginStart="6dp"
|
2021-08-23 22:54:44 +08:00
|
|
|
app:layout_constraintBottom_toBottomOf="@+id/bottom_nav"
|
|
|
|
app:layout_constraintStart_toStartOf="@+id/bottom_nav"
|
|
|
|
app:layout_constraintTop_toTopOf="@+id/bottom_nav"
|
|
|
|
app:tint="?attr/colorPrimary" />
|
|
|
|
|
|
|
|
<ImageView
|
2021-08-28 04:22:49 +08:00
|
|
|
android:id="@+id/bottom_nav_unselected_item"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="16dp"
|
2021-08-23 22:54:44 +08:00
|
|
|
android:src="@drawable/oval"
|
2021-08-28 04:22:49 +08:00
|
|
|
android:layout_marginHorizontal="6dp"
|
|
|
|
android:alpha="0.6"
|
2021-08-23 22:54:44 +08:00
|
|
|
app:layout_constraintBottom_toBottomOf="@+id/bottom_nav"
|
2021-08-28 04:22:49 +08:00
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
2021-08-23 22:54:44 +08:00
|
|
|
app:layout_constraintStart_toEndOf="@+id/bottom_nav_selected_item"
|
|
|
|
app:layout_constraintTop_toTopOf="@+id/bottom_nav"
|
2021-08-28 04:22:49 +08:00
|
|
|
app:tint="?attr/colorOnSurface" />
|
2021-08-23 22:54:44 +08:00
|
|
|
|
2021-08-28 04:22:49 +08: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 22:54:44 +08: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"
|
|
|
|
android:textAppearance="@style/TextAppearance.MaterialComponents.Caption"
|
|
|
|
tools:text="Theme Name" />
|
|
|
|
|
|
|
|
</LinearLayout>
|