mirror of
https://github.com/TeamNewPipe/NewPipe
synced 2024-11-17 15:24:55 +00:00
69 lines
2.4 KiB
XML
69 lines
2.4 KiB
XML
|
<?xml version="1.0" encoding="utf-8"?>
|
||
|
<LinearLayout
|
||
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
||
|
xmlns:tools="http://schemas.android.com/tools"
|
||
|
android:id="@+id/notificationContent"
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="64dp"
|
||
|
android:background="@color/background_notification_color"
|
||
|
android:clickable="true"
|
||
|
android:gravity="center_vertical"
|
||
|
android:orientation="horizontal">
|
||
|
|
||
|
<ImageView
|
||
|
android:id="@+id/notificationCover"
|
||
|
android:layout_width="64dp"
|
||
|
android:layout_height="64dp"
|
||
|
android:scaleType="centerCrop"
|
||
|
android:src="@drawable/dummy_thumbnail"
|
||
|
tools:ignore="ContentDescription"/>
|
||
|
|
||
|
<LinearLayout
|
||
|
android:layout_width="0dp"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:layout_marginLeft="8dp"
|
||
|
android:layout_weight="1"
|
||
|
android:orientation="vertical"
|
||
|
tools:ignore="RtlHardcoded">
|
||
|
|
||
|
<TextView
|
||
|
android:id="@+id/notificationSongName"
|
||
|
style="@android:style/TextAppearance.StatusBar.EventContent.Title"
|
||
|
android:layout_width="wrap_content"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:ellipsize="marquee"
|
||
|
android:maxLines="1"
|
||
|
tools:text="title"/>
|
||
|
|
||
|
<TextView
|
||
|
android:id="@+id/notificationArtist"
|
||
|
style="@android:style/TextAppearance.StatusBar.EventContent"
|
||
|
android:layout_width="wrap_content"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:ellipsize="marquee"
|
||
|
android:maxLines="1"
|
||
|
tools:text="artist"/>
|
||
|
</LinearLayout>
|
||
|
|
||
|
<ImageButton
|
||
|
android:id="@+id/notificationPlayPause"
|
||
|
android:layout_width="40dp"
|
||
|
android:layout_height="40dp"
|
||
|
android:layout_margin="5dp"
|
||
|
android:background="#00ffffff"
|
||
|
android:clickable="true"
|
||
|
android:scaleType="fitXY"
|
||
|
android:src="@drawable/ic_pause_white_24dp"
|
||
|
tools:ignore="ContentDescription"/>
|
||
|
|
||
|
<ImageButton
|
||
|
android:id="@+id/notificationStop"
|
||
|
android:layout_width="40dp"
|
||
|
android:layout_height="40dp"
|
||
|
android:layout_margin="5dp"
|
||
|
android:background="#00ffffff"
|
||
|
android:clickable="true"
|
||
|
android:scaleType="fitXY"
|
||
|
android:src="@drawable/ic_close_white_24dp"
|
||
|
tools:ignore="ContentDescription"/>
|
||
|
</LinearLayout>
|