71 lines
2.9 KiB
XML
71 lines
2.9 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.
|
|
-->
|
|
|
|
<android.support.v7.widget.CardView
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
style="@style/Widget.CardView">
|
|
android:focusable="true"
|
|
android:clickable="true"
|
|
android:foreground="?android:attr/selectableItemBackground">
|
|
|
|
<RelativeLayout
|
|
android:id="@+id/container"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content">
|
|
|
|
<ImageView
|
|
android:id="@+id/art"
|
|
android:layout_width="@dimen/seasonlist_art_width"
|
|
android:layout_height="@dimen/seasonlist_art_heigth"
|
|
android:layout_alignParentStart="true"
|
|
android:layout_alignParentLeft="true"
|
|
android:contentDescription="@string/poster"
|
|
android:scaleType="centerCrop"/>
|
|
<TextView
|
|
android:id="@+id/season"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_toRightOf="@id/art"
|
|
android:layout_toEndOf="@id/art"
|
|
style="@style/TextAppearance.Medialist.Title"
|
|
android:paddingTop="@dimen/small_padding"/>
|
|
|
|
<ProgressBar
|
|
android:id="@+id/season_progress_bar"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
style="?android:attr/progressBarStyleHorizontal"
|
|
android:layout_alignLeft="@id/season"
|
|
android:layout_alignStart="@id/season"
|
|
android:layout_below="@id/season"
|
|
android:layout_marginLeft="@dimen/default_padding"
|
|
android:layout_marginStart="@dimen/default_padding"
|
|
android:layout_marginRight="@dimen/default_padding"
|
|
android:layout_marginEnd="@dimen/default_padding"
|
|
android:layout_marginTop="@dimen/default_padding"/>
|
|
<TextView
|
|
android:id="@+id/episodes"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignLeft="@id/season"
|
|
android:layout_alignStart="@id/season"
|
|
android:layout_below="@id/season_progress_bar"
|
|
style="@style/TextAppearance.Medialist.Details"/>
|
|
</RelativeLayout>
|
|
</android.support.v7.widget.CardView> |