Adjust module item

This commit is contained in:
Light_summer
2024-10-04 12:35:30 +08:00
parent 134dbc3890
commit b9ab00fdae

View File

@@ -1,50 +1,55 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<com.google.android.material.card.MaterialCardView xmlns:android="http://schemas.android.com/apk/res/android" <com.google.android.material.card.MaterialCardView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto" style="?attr/materialCardViewElevatedStyle"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:background="?selectableItemBackground"
android:clickable="true"
android:focusable="true"
android:layout_marginHorizontal="16dp" android:layout_marginHorizontal="16dp"
android:layout_marginVertical="8dp" android:layout_marginVertical="8dp"
style="?attr/materialCardViewElevatedStyle"> android:background="?selectableItemBackground"
android:clickable="true"
android:focusable="true">
<LinearLayout <LinearLayout
android:orientation="vertical"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:orientation="vertical"
android:padding="16dp"> android:padding="16dp">
<TextView <TextView
android:id="@+id/name" android:id="@+id/name"
style="?textAppearanceHeadlineSmall"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" /> android:layout_height="wrap_content"
android:textColor="?attr/colorOnSurface"
android:textSize="20sp" />
<TextView <TextView
android:id="@+id/author" android:id="@+id/author"
style="?textAppearanceListItemSecondary"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" /> android:layout_height="wrap_content"
android:layout_marginTop="2dp"
android:textColor="?attr/colorOnSurfaceVariant"
android:textSize="13sp" />
<TextView <TextView
android:id="@+id/version" android:id="@+id/version"
style="?textAppearanceListItemSecondary"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
<com.google.android.material.divider.MaterialDivider
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginVertical="4dp" android:textColor="?attr/colorOnSurfaceVariant"
android:id="@+id/divider"/> android:textSize="13sp" />
<com.google.android.material.divider.MaterialDivider
android:id="@+id/divider"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginVertical="6dp" />
<TextView <TextView
android:id="@+id/desc" android:id="@+id/desc"
style="?textAppearanceListItemSecondary"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content"/> android:layout_height="wrap_content"
android:textColor="?attr/colorOnSurfaceVariant"
android:textSize="13sp" />
</LinearLayout> </LinearLayout>
</com.google.android.material.card.MaterialCardView> </com.google.android.material.card.MaterialCardView>