2015-01-14 12:12:47 +01:00
|
|
|
<?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.
|
|
|
|
-->
|
|
|
|
|
2016-12-15 21:10:55 +01:00
|
|
|
<android.support.v7.widget.CardView
|
2015-01-14 12:12:47 +01:00
|
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
2016-12-15 21:10:55 +01:00
|
|
|
xmlns:card_view="http://schemas.android.com/apk/res-auto"
|
|
|
|
android:layout_width="wrap_content"
|
2015-01-14 12:12:47 +01:00
|
|
|
android:layout_height="wrap_content"
|
2016-12-15 21:10:55 +01:00
|
|
|
card_view:cardElevation="@dimen/default_card_elevation"
|
|
|
|
card_view:cardBackgroundColor="?attr/appCardBackgroundColor">
|
2015-01-14 12:12:47 +01:00
|
|
|
|
2016-01-29 23:15:02 +01:00
|
|
|
<RelativeLayout
|
2016-12-15 21:10:55 +01:00
|
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
|
android:id="@+id/container"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content">
|
2016-01-29 23:15:02 +01:00
|
|
|
|
|
|
|
<ImageView
|
2016-12-15 21:10:55 +01:00
|
|
|
android:id="@+id/art"
|
|
|
|
android:layout_width="@dimen/episodelist_art_width"
|
|
|
|
android:layout_height="@dimen/episodelist_art_heigth"
|
2016-05-25 20:03:50 +02:00
|
|
|
android:layout_alignParentStart="true"
|
2016-12-15 21:10:55 +01:00
|
|
|
android:layout_alignParentLeft="true"
|
|
|
|
android:contentDescription="@string/poster"
|
|
|
|
android:scaleType="centerCrop"/>
|
2016-01-29 23:15:02 +01:00
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/episode_number"
|
2016-12-15 21:10:55 +01:00
|
|
|
android:layout_width="@dimen/default_icon_size"
|
2016-01-29 23:15:02 +01:00
|
|
|
android:layout_height="wrap_content"
|
|
|
|
style="@style/TextAppearance.Medialist.Title"
|
2016-12-15 21:10:55 +01:00
|
|
|
android:paddingRight="@dimen/small_padding"
|
|
|
|
android:layout_alignTop="@id/art"
|
|
|
|
android:layout_toRightOf="@id/art"
|
|
|
|
android:layout_toEndOf="@id/art"/>
|
2015-01-14 12:12:47 +01:00
|
|
|
|
2016-12-15 21:10:55 +01:00
|
|
|
<ImageView
|
|
|
|
android:id="@+id/checkmark"
|
|
|
|
android:layout_width="@dimen/default_icon_size"
|
|
|
|
android:layout_height="@dimen/default_icon_size"
|
|
|
|
android:layout_below="@id/episode_number"
|
|
|
|
android:layout_alignLeft="@id/episode_number"
|
|
|
|
android:layout_alignStart="@id/episode_number"
|
|
|
|
android:padding="@dimen/default_icon_padding"
|
|
|
|
android:src="?attr/iconSeen"
|
|
|
|
android:contentDescription="@string/seen"/>
|
2015-01-14 12:12:47 +01:00
|
|
|
|
2016-12-15 21:10:55 +01:00
|
|
|
<ImageView
|
|
|
|
android:id="@+id/list_context_menu"
|
|
|
|
android:layout_width="@dimen/default_icon_size"
|
|
|
|
android:layout_height="@dimen/default_icon_size"
|
|
|
|
android:layout_alignTop="@id/art"
|
|
|
|
android:layout_alignParentRight="true"
|
|
|
|
android:layout_alignParentEnd="true"
|
|
|
|
android:padding="@dimen/default_icon_padding"
|
|
|
|
style="@style/Widget.Button.Borderless"
|
|
|
|
android:src="?attr/iconOverflow"
|
|
|
|
android:contentDescription="@string/action_options"/>
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/title"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_alignTop="@id/episode_number"
|
|
|
|
android:layout_toRightOf="@id/episode_number"
|
|
|
|
android:layout_toLeftOf="@id/list_context_menu"
|
|
|
|
android:layout_toEndOf="@id/episode_number"
|
|
|
|
android:layout_toStartOf="@id/list_context_menu"
|
|
|
|
style="@style/TextAppearance.Medialist.Title"
|
|
|
|
android:paddingTop="@dimen/small_padding"
|
|
|
|
android:paddingLeft="@dimen/small_padding"
|
|
|
|
android:paddingRight="@dimen/small_padding"/>
|
2015-01-14 12:12:47 +01:00
|
|
|
|
2016-12-15 21:10:55 +01:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/details"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="@dimen/default_icon_size"
|
|
|
|
android:layout_alignLeft="@id/title"
|
|
|
|
android:layout_alignStart="@id/title"
|
|
|
|
android:layout_below="@id/title"
|
|
|
|
style="@style/TextAppearance.Medialist.Details"
|
|
|
|
android:paddingLeft="@dimen/small_padding"
|
|
|
|
android:paddingTop="0dp"
|
|
|
|
android:paddingBottom="0dp"
|
|
|
|
android:gravity="center_vertical"/>
|
|
|
|
|
|
|
|
|
|
|
|
</RelativeLayout>
|
|
|
|
</android.support.v7.widget.CardView>
|