Improve placeholder channel banner handling
Now the placeholder gets hidden if there is no banner url or the user disabled images, to save space
This commit is contained in:
parent
1061bce4f3
commit
c48e702a50
3 changed files with 18 additions and 11 deletions
|
|
@ -28,10 +28,11 @@
|
|||
<ImageView
|
||||
android:id="@+id/channel_banner_image"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="70dp"
|
||||
android:background="@drawable/placeholder_channel_banner"
|
||||
android:layout_height="wrap_content"
|
||||
android:maxHeight="70dp"
|
||||
android:src="@drawable/placeholder_channel_banner"
|
||||
android:adjustViewBounds="true"
|
||||
android:scaleType="centerCrop"
|
||||
android:scaleType="fitCenter"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
tools:ignore="ContentDescription" />
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue