86 lines
3.7 KiB
XML
86 lines
3.7 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.
|
|
-->
|
|
|
|
<androidx.cardview.widget.CardView
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
style="@style/Widget.CardView">
|
|
|
|
<RelativeLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content">
|
|
|
|
<ImageView
|
|
android:id="@+id/art"
|
|
android:layout_width="@dimen/filelist_art_width"
|
|
android:layout_height="@dimen/filelist_art_heigth"
|
|
android:layout_alignParentStart="true"
|
|
android:layout_alignParentLeft="true"
|
|
android:contentDescription="@string/poster"
|
|
android:scaleType="centerCrop"/>
|
|
<TextView
|
|
android:id="@+id/size_duration"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignParentBottom="true"
|
|
android:layout_alignParentRight="true"
|
|
android:layout_alignParentEnd="true"
|
|
style="@style/TextAppearance.Medialist.OtherInfo"
|
|
android:paddingLeft="@dimen/small_padding"
|
|
android:paddingStart="@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_alignTop="@id/art"
|
|
android:layout_alignParentRight="true"
|
|
android:layout_alignParentEnd="true"
|
|
style="@style/Widget.Button.Borderless"
|
|
android:src="?attr/iconOverflow"
|
|
android:contentDescription="@string/action_options"/>
|
|
|
|
<TextView
|
|
android:id="@+id/title"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_toRightOf="@id/art"
|
|
android:layout_toEndOf="@+id/art"
|
|
android:layout_toLeftOf="@id/list_context_menu"
|
|
android:layout_toStartOf="@id/list_context_menu"
|
|
android:layout_alignTop="@id/art"
|
|
style="@style/TextAppearance.Medialist.Title"
|
|
android:paddingRight="@dimen/small_padding"
|
|
android:paddingEnd="@dimen/small_padding"
|
|
android:ellipsize="middle"/>
|
|
<TextView
|
|
android:id="@+id/details"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignLeft="@id/title"
|
|
android:layout_alignStart="@id/title"
|
|
android:layout_below="@id/title"
|
|
android:layout_toRightOf="@id/art"
|
|
android:layout_toEndOf="@id/art"
|
|
android:layout_toLeftOf="@id/size_duration"
|
|
android:layout_toStartOf="@id/size_duration"
|
|
style="@style/TextAppearance.Medialist.Details"
|
|
android:paddingRight="@dimen/small_padding"
|
|
android:paddingEnd="@dimen/small_padding"/>
|
|
</RelativeLayout>
|
|
</androidx.cardview.widget.CardView> |