Skip to content

Commit 5475495

Browse files
add banner custom image
1 parent b96b311 commit 5475495

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

app/src/main/res/layout/layout_group_list.xml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,8 @@
1010
android:layout_height="wrap_content"
1111
layout="@layout/layout_appbar" />
1212
<LinearLayout
13-
android:id="@+id/banner_home"
1413
android:background="?attr/colorPrimary"
15-
android:paddingBottom="16.0dip"
14+
android:paddingBottom="0.0dip"
1615
android:clipToPadding="false"
1716
android:layout_width="fill_parent"
1817
android:layout_height="wrap_content"
@@ -21,10 +20,11 @@
2120
xmlns:android="http://schemas.android.com/apk/res/android"
2221
xmlns:app="http://schemas.android.com/apk/res-auto">
2322
<com.google.android.material.card.MaterialCardView
23+
android:id="@+id/banner_home"
2424
android:layout_width="wrap_content"
2525
android:layout_height="wrap_content"
2626
android:layout_marginTop="0.0dip"
27-
android:layout_marginBottom="0.0dip"
27+
android:layout_marginBottom="16.0dip"
2828
android:foreground="?attr/selectableItemBackground"
2929
android:layout_marginStart="16.0dip"
3030
android:layout_marginEnd="16.0dip"
@@ -45,8 +45,9 @@
4545
app:cardCornerRadius="19.0dip"
4646
app:cardElevation="0.0dip">
4747
<ImageView
48+
android:id="@+id/img_banner_home"
4849
android:layout_width="fill_parent"
49-
android:layout_height="wrap_content"
50+
android:layout_height="100.0dip"
5051
android:src="@drawable/uwu_banner_home"
5152
android:scaleType="centerCrop"
5253
android:elevation="0.0dip" />

0 commit comments

Comments
 (0)