101 lines
4.0 KiB
XML
101 lines
4.0 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!--
|
|
Copyright 2015 Synced Synapse. All rights reserved.
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
you may not use this file except in compliance with the License.
|
|
You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
See the License for the specific language governing permissions and
|
|
limitations under the License.
|
|
-->
|
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
android:id="@+id/status_bar_latest_event_content"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal"
|
|
android:background="@color/notification_backgroup">
|
|
|
|
<ImageView android:id="@+id/icon"
|
|
android:layout_width="@dimen/notification_art_default_width"
|
|
android:layout_height="@dimen/notification_art_default_height"
|
|
android:layout_weight="0"
|
|
android:padding="12dp"
|
|
android:scaleType="centerInside"
|
|
android:contentDescription="@string/poster"/>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:layout_gravity="fill_vertical"
|
|
android:minHeight="@dimen/notification_height"
|
|
android:orientation="vertical">
|
|
|
|
<TextView
|
|
android:id="@+id/title"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:paddingTop="@dimen/small_padding"
|
|
android:textAppearance="@style/TextAppearance.Notification.Title"
|
|
android:singleLine="true"
|
|
android:ellipsize="marquee"
|
|
android:fadingEdge="horizontal"/>
|
|
<TextView
|
|
android:id="@+id/text2"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:textAppearance="@style/TextAppearance.Notification.Details"
|
|
android:singleLine="true"
|
|
android:fadingEdge="horizontal"
|
|
android:ellipsize="marquee"/>
|
|
</LinearLayout>
|
|
<LinearLayout
|
|
android:id="@+id/media_actions"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="match_parent"
|
|
android:layout_marginRight="6dp"
|
|
android:layout_marginEnd="6dp"
|
|
android:layout_gravity="center_vertical|end"
|
|
android:orientation="horizontal"
|
|
android:layoutDirection="ltr">
|
|
|
|
<ImageButton
|
|
android:id="@+id/rewind"
|
|
style="@style/Widget.Button.Notification"
|
|
android:layout_width="@dimen/default_icon_size"
|
|
android:layout_height="match_parent"
|
|
android:layout_marginLeft="2dp"
|
|
android:layout_marginRight="2dp"
|
|
android:layout_weight="1"
|
|
android:gravity="center"
|
|
android:contentDescription="@string/rewind"/>
|
|
<ImageButton
|
|
android:id="@+id/play"
|
|
style="@style/Widget.Button.Notification"
|
|
android:layout_width="@dimen/default_icon_size"
|
|
android:layout_height="match_parent"
|
|
android:layout_marginLeft="2dp"
|
|
android:layout_marginRight="2dp"
|
|
android:layout_weight="1"
|
|
android:gravity="center"
|
|
android:contentDescription="@string/play"/>
|
|
<ImageButton
|
|
android:id="@+id/fast_forward"
|
|
style="@style/Widget.Button.Notification"
|
|
android:layout_width="@dimen/default_icon_size"
|
|
android:layout_height="match_parent"
|
|
android:layout_marginLeft="2dp"
|
|
android:layout_marginRight="2dp"
|
|
android:layout_weight="1"
|
|
android:gravity="center"
|
|
android:contentDescription="@string/fast_forward"/>
|
|
|
|
</LinearLayout>
|
|
</LinearLayout>
|