101 lines
4.4 KiB
XML
101 lines
4.4 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"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
style="@style/Widget.CardView"
|
|
tools:layout_width="match_parent"
|
|
tools:layout_height="100dp">
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
android:id="@+id/relativeLayout"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content">
|
|
|
|
<ImageView
|
|
android:id="@+id/art"
|
|
android:layout_width="@dimen/movielist_art_width"
|
|
android:layout_height="@dimen/movielist_art_heigth"
|
|
android:contentDescription="@string/poster"
|
|
android:scaleType="centerCrop"
|
|
app:layout_constraintLeft_toLeftOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
<TextView
|
|
android:id="@+id/title"
|
|
style="@style/TextAppearance.Medialist.Title"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintLeft_toRightOf="@id/art"
|
|
app:layout_constraintRight_toRightOf="parent"
|
|
app:layout_constraintStart_toEndOf="@id/art"
|
|
app:layout_constraintTop_toTopOf="@id/art" />
|
|
|
|
<TextView
|
|
android:id="@+id/details"
|
|
style="@style/TextAppearance.Medialist.Details"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintLeft_toLeftOf="@id/title"
|
|
app:layout_constraintRight_toRightOf="@id/title"
|
|
app:layout_constraintStart_toStartOf="@id/title"
|
|
app:layout_constraintTop_toBottomOf="@id/title" />
|
|
|
|
<TextView
|
|
android:id="@+id/meta_info"
|
|
style="@style/TextAppearance.Medialist.OtherInfo"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintEnd_toStartOf="@id/rating_bar"
|
|
app:layout_constraintStart_toStartOf="@id/title" />
|
|
|
|
<org.xbmc.kore.ui.views.RatingBar
|
|
android:id="@+id/rating_bar"
|
|
style="@style/RatingBar"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="0dp"
|
|
app:backgroundColor="?attr/ratingBarStarBackgroundColor"
|
|
app:foregroundColor="?attr/ratingBarStarForegroundColor"
|
|
app:icon="?attr/iconRating"
|
|
app:layout_constraintBottom_toBottomOf="@id/meta_info"
|
|
app:layout_constraintEnd_toStartOf="@id/checkmark"
|
|
app:layout_constraintRight_toLeftOf="@id/checkmark"
|
|
app:layout_constraintTop_toTopOf="@id/meta_info" />
|
|
|
|
<ImageView
|
|
android:id="@+id/checkmark"
|
|
style="@style/Widget.Button.Borderless"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginEnd="@dimen/small_padding"
|
|
android:layout_marginRight="@dimen/small_padding"
|
|
android:layout_marginBottom="@dimen/small_padding"
|
|
android:contentDescription="@string/seen"
|
|
android:src="?attr/iconSeen"
|
|
app:layout_constraintBottom_toBottomOf="@id/meta_info"
|
|
app:layout_constraintRight_toRightOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent"/>
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
</androidx.cardview.widget.CardView> |