ref: b80c6886e9aef8312e571f34644bfaeb86f41200
app/src/main/res/layout/banner.xml
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 |
<?xml version="1.0" encoding="utf-8"?> <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" android:layout_width="match_parent" android:layout_height="120dp" android:orientation="vertical"> <View android:id="@+id/banner_separator" android:layout_width="fill_parent" android:layout_height="1dp" android:background="#90909090" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintEnd_toStartOf="parent" app:layout_constraintStart_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" /> <Button android:id="@+id/banner_more" style="@style/Widget.AppCompat.Button.Borderless.Colored" android:layout_width="wrap_content" android:layout_height="36dp" android:layout_marginEnd="8dp" android:layout_marginBottom="8dp" android:text="@string/more" android:textAppearance="@style/TextAppearance.AppCompat.Button" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintEnd_toEndOf="parent" /> <TextView android:id="@+id/banner_text" android:layout_width="0dp" android:layout_height="wrap_content" android:layout_marginStart="16dp" android:layout_marginTop="24dp" android:layout_marginEnd="16dp" android:layout_marginBottom="20dp" android:ellipsize="end" android:maxLines="2" android:minLines="1" android:singleLine="false" android:text="" android:textAppearance="@style/TextAppearance.AppCompat.Body2" app:layout_constraintBottom_toTopOf="@+id/banner_more" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toEndOf="@+id/banner_icon" app:layout_constraintTop_toTopOf="parent" /> <ImageView android:id="@+id/banner_icon" android:layout_width="40dp" android:layout_height="40dp" android:layout_marginStart="16dp" android:contentDescription="@string/vm_message_icon" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toTopOf="@+id/banner_text" app:srcCompat="@drawable/ic_message" /> </androidx.constraintlayout.widget.ConstraintLayout> |