完善
This commit is contained in:
63
app/src/main/res/layout/item_theme_card.xml
Normal file
63
app/src/main/res/layout/item_theme_card.xml
Normal file
@@ -0,0 +1,63 @@
|
||||
<!-- 卡片内容 -->
|
||||
<androidx.cardview.widget.CardView
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:layout_width="170dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="#F8F8F8"
|
||||
android:id="@+id/theme_card"
|
||||
app:cardCornerRadius="15dp"
|
||||
app:cardUseCompatPadding="true">
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/theme_image"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="127dp"
|
||||
android:scaleType="centerCrop"
|
||||
android:src="@drawable/bg" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/theme_name"
|
||||
android:layout_width="130dp"
|
||||
android:layout_height="20dp"
|
||||
android:layout_marginTop="8dp"
|
||||
android:layout_marginStart="6dp"
|
||||
android:text="Dopamine"
|
||||
android:textColor="#1B1F1A"
|
||||
android:textSize="14sp"
|
||||
android:textStyle="bold" />
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="23dp"
|
||||
android:layout_marginStart="6dp"
|
||||
android:layout_marginTop="8dp"
|
||||
android:layout_marginBottom="12dp"
|
||||
android:padding="4dp"
|
||||
android:gravity="center"
|
||||
android:background="@drawable/gold_coin_background_required"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<ImageView
|
||||
android:layout_width="17dp"
|
||||
android:layout_height="17dp"
|
||||
android:scaleType="centerCrop"
|
||||
android:src="@drawable/gold_coin" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/theme_price"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="-2dp"
|
||||
android:layout_marginStart="4dp"
|
||||
android:text="0.00"
|
||||
android:textColor="#02BEAC"
|
||||
android:textSize="14sp" />
|
||||
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
</androidx.cardview.widget.CardView>
|
||||
Reference in New Issue
Block a user