65 lines
2.6 KiB
XML
65 lines
2.6 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.
|
|
-->
|
|
|
|
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
android:id="@+id/container"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:background="?attr/selectableItemBackground">
|
|
|
|
<TextView
|
|
android:id="@+id/track_number"
|
|
android:layout_width="48dp"
|
|
android:layout_height="wrap_content"
|
|
style="@style/TextAppearance.Medialist.Title"
|
|
android:gravity="end"
|
|
android:paddingTop="@dimen/small_padding"
|
|
android:paddingLeft="@dimen/small_padding"
|
|
android:paddingRight="@dimen/small_padding"/>
|
|
<ImageView
|
|
android:id="@+id/list_context_menu"
|
|
android:layout_width="@dimen/default_icon_size"
|
|
android:layout_height="@dimen/default_icon_size"
|
|
android:padding="@dimen/default_icon_padding"
|
|
android:layout_alignParentRight="true"
|
|
android:layout_alignParentEnd="true"
|
|
android:layout_centerVertical="true"
|
|
style="@style/Widget.Button.Borderless"
|
|
android:src="?attr/iconOverflow"
|
|
android:contentDescription="@string/action_options"/>
|
|
|
|
<TextView
|
|
android:id="@+id/song_title"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
style="@style/TextAppearance.Medialist.Title"
|
|
android:layout_toRightOf="@id/track_number"
|
|
android:layout_toLeftOf="@id/list_context_menu"
|
|
android:layout_toEndOf="@id/track_number"
|
|
android:layout_toStartOf="@id/list_context_menu"
|
|
android:layout_alignBottom="@id/track_number"/>
|
|
<TextView
|
|
android:id="@+id/duration"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignLeft="@id/song_title"
|
|
android:layout_alignStart="@id/song_title"
|
|
android:layout_below="@id/song_title"
|
|
style="@style/TextAppearance.Medialist.Details"
|
|
android:paddingBottom="@dimen/small_padding"/>
|
|
</RelativeLayout>
|