189 lines
7.1 KiB
XML
189 lines
7.1 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/statusbar"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="150dp"
|
|
android:orientation="horizontal"
|
|
android:background="@color/background_color_dark" >
|
|
|
|
<ImageView
|
|
android:id="@+id/notification_image"
|
|
android:layout_width="150dp"
|
|
android:layout_height="150dp"
|
|
android:gravity="center"
|
|
tools:background="#ff00ff"
|
|
/>
|
|
|
|
<LinearLayout
|
|
android:layout_width="0dp"
|
|
android:layout_height="match_parent"
|
|
android:layout_weight="1"
|
|
android:orientation="vertical"
|
|
android:paddingLeft="8dip"
|
|
android:paddingTop="8dip"
|
|
android:paddingRight="8dip"
|
|
android:paddingBottom="8dip"
|
|
>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal"
|
|
android:paddingRight="4dp">
|
|
|
|
<TextView
|
|
android:id="@+id/trackname"
|
|
style="@android:style/TextAppearance.StatusBar.EventContent.Title"
|
|
android:layout_width="0dip"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center|start"
|
|
android:layout_weight="1"
|
|
android:ellipsize="marquee"
|
|
android:focusable="true"
|
|
android:singleLine="true"
|
|
tools:text="Track name" />
|
|
|
|
<ImageButton
|
|
android:id="@+id/control_stop"
|
|
android:layout_width="32dip"
|
|
android:layout_height="32dip"
|
|
android:layout_gravity="center|end"
|
|
android:background="@drawable/btn_bg"
|
|
android:gravity="center_vertical"
|
|
android:scaleType="fitXY"
|
|
android:src="@drawable/ic_menu_close_dark" />
|
|
</LinearLayout>
|
|
|
|
<TextView
|
|
android:id="@+id/artist"
|
|
style="@android:style/TextAppearance.StatusBar.EventContent"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="start"
|
|
android:ellipsize="end"
|
|
android:scrollHorizontally="true"
|
|
android:maxLines="1"
|
|
tools:text="Artist"
|
|
/>
|
|
|
|
<TextView
|
|
android:id="@+id/album"
|
|
style="@android:style/TextAppearance.StatusBar.EventContent"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="start"
|
|
android:ellipsize="end"
|
|
android:scrollHorizontally="true"
|
|
android:maxLines="1"
|
|
tools:text="Album"
|
|
/>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/notification_rating"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="30dip"
|
|
android:layout_gravity="center"
|
|
android:orientation="horizontal"
|
|
android:visibility="visible">
|
|
|
|
<ImageView
|
|
android:id="@+id/notification_five_star_1"
|
|
android:layout_width="0dip"
|
|
android:layout_height="fill_parent"
|
|
android:layout_weight="1"
|
|
android:background="@android:color/transparent"
|
|
android:focusable="false"
|
|
android:gravity="center_vertical"
|
|
android:scaleType="fitCenter" />
|
|
|
|
<ImageView
|
|
android:id="@+id/notification_five_star_2"
|
|
android:layout_width="0dip"
|
|
android:layout_height="fill_parent"
|
|
android:layout_weight="1"
|
|
android:background="@android:color/transparent"
|
|
android:focusable="false"
|
|
android:gravity="center_vertical"
|
|
android:scaleType="fitCenter" />
|
|
|
|
<ImageView
|
|
android:id="@+id/notification_five_star_3"
|
|
android:layout_width="0dip"
|
|
android:layout_height="fill_parent"
|
|
android:layout_weight="1"
|
|
android:background="@android:color/transparent"
|
|
android:focusable="false"
|
|
android:gravity="center_vertical"
|
|
android:scaleType="fitCenter" />
|
|
|
|
<ImageView
|
|
android:id="@+id/notification_five_star_4"
|
|
android:layout_width="0dip"
|
|
android:layout_height="fill_parent"
|
|
android:layout_weight="1"
|
|
android:background="@android:color/transparent"
|
|
android:focusable="false"
|
|
android:gravity="center_vertical"
|
|
android:scaleType="fitCenter" />
|
|
|
|
<ImageView
|
|
android:id="@+id/notification_five_star_5"
|
|
android:layout_width="0dip"
|
|
android:layout_height="fill_parent"
|
|
android:layout_weight="1"
|
|
android:background="@android:color/transparent"
|
|
android:focusable="false"
|
|
android:gravity="center_vertical"
|
|
android:scaleType="fitCenter" />
|
|
|
|
</LinearLayout>
|
|
|
|
<FrameLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="1dp"
|
|
android:layout_marginTop="5dip"
|
|
android:layout_marginBottom="10dip"
|
|
android:background="#DD696969"
|
|
/>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center|bottom"
|
|
android:gravity="center_horizontal"
|
|
android:orientation="horizontal" >
|
|
|
|
<ImageButton
|
|
android:id="@+id/control_previous"
|
|
android:layout_width="32dp"
|
|
android:layout_height="32dp"
|
|
android:scaleType="fitCenter"
|
|
android:layout_gravity="center"
|
|
android:layout_weight="1"
|
|
android:background="@drawable/btn_bg"
|
|
android:src="@drawable/media_backward_normal_dark" />
|
|
|
|
<ImageButton
|
|
android:id="@+id/control_play"
|
|
android:layout_width="32dp"
|
|
android:layout_height="32dp"
|
|
android:scaleType="fitCenter"
|
|
android:layout_gravity="center"
|
|
android:layout_weight="1"
|
|
android:background="@drawable/btn_bg"
|
|
android:src="@drawable/media_pause_normal_dark" />
|
|
|
|
<ImageButton
|
|
android:id="@+id/control_next"
|
|
android:layout_width="32dp"
|
|
android:layout_height="32dp"
|
|
android:scaleType="fitCenter"
|
|
android:layout_gravity="center"
|
|
android:layout_weight="1"
|
|
android:background="@drawable/btn_bg"
|
|
android:src="@drawable/media_forward_normal_dark" />
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
</LinearLayout> |