PlayerAndroid/app/src/main/res/layout/item_contributor.xml

71 lines
3.0 KiB
XML
Raw Normal View History

<?xml version="1.0" encoding="utf-8"?><!--
~ Copyright (c) 2019 Hemanth Savarala.
~
~ Licensed under the GNU General Public License v3
~
~ This is free software: you can redistribute it and/or modify it under
~ the terms of the GNU General Public License as published by
~ the Free Software Foundation either version 3 of the License, or (at your option) any later version.
~
~ This software is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
~ without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
~ See the GNU General Public License for more details.
-->
2019-11-04 18:43:54 +00:00
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
2018-09-09 19:44:46 +00:00
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"
2020-01-06 05:34:09 +00:00
android:background="?rectSelector"
2018-09-09 19:44:46 +00:00
android:gravity="center_vertical"
2019-12-08 14:35:03 +00:00
android:minHeight="64dp"
2018-09-09 19:44:46 +00:00
android:orientation="horizontal"
android:paddingStart="12dp"
android:paddingEnd="12dp"
2018-09-09 19:44:46 +00:00
tools:ignore="PrivateResource">
<code.name.monkey.retromusic.views.RetroShapeableImageView
2019-11-04 18:43:54 +00:00
android:id="@+id/icon"
android:layout_width="42dp"
android:layout_height="42dp"
2020-05-09 09:18:29 +00:00
android:scaleType="centerCrop"
2018-09-09 19:44:46 +00:00
app:civ_border="false"
2019-03-25 12:43:43 +00:00
app:civ_shadow="false"
2020-09-06 17:56:39 +00:00
app:layout_constraintBottom_toBottomOf="parent"
2019-11-04 18:43:54 +00:00
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:retroCornerSize="21dp"
2020-07-19 21:00:30 +00:00
app:srcCompat="@drawable/ic_account"
2020-05-24 18:32:32 +00:00
tools:srcCompat="@tools:sample/backgrounds/scenic" />
2018-09-09 19:44:46 +00:00
2019-11-04 18:43:54 +00:00
<com.google.android.material.textview.MaterialTextView
android:id="@+id/title"
2020-05-24 18:32:32 +00:00
android:layout_width="0dp"
2018-09-09 19:44:46 +00:00
android:layout_height="wrap_content"
2019-11-04 18:43:54 +00:00
android:layout_marginStart="16dp"
android:textAppearance="@style/TextViewSubtitle1"
app:layout_constrainedWidth="true"
app:layout_constraintBottom_toTopOf="@+id/text"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0"
app:layout_constraintStart_toEndOf="@+id/icon"
2019-12-26 15:25:41 +00:00
tools:text="@tools:sample/full_names" />
2018-09-09 19:44:46 +00:00
2019-11-04 18:43:54 +00:00
<code.name.monkey.retromusic.views.BaselineGridTextView
android:id="@+id/text"
2020-05-24 18:32:32 +00:00
android:layout_width="0dp"
2019-11-04 18:43:54 +00:00
android:layout_height="wrap_content"
android:layout_marginStart="16dp"
2020-05-24 18:32:32 +00:00
android:ellipsize="end"
android:maxLines="1"
2019-12-10 17:36:20 +00:00
android:textColor="?android:attr/textColorSecondary"
2019-11-04 18:43:54 +00:00
app:layout_constrainedWidth="true"
2019-11-08 17:07:30 +00:00
app:layout_constraintBottom_toBottomOf="@+id/icon"
2019-11-04 18:43:54 +00:00
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0"
app:layout_constraintStart_toEndOf="@id/icon"
app:lineHeightHint="24sp"
2020-05-24 18:32:32 +00:00
tools:text="@tools:sample/lorem/random" />
2018-09-09 19:44:46 +00:00
2019-11-04 18:43:54 +00:00
</androidx.constraintlayout.widget.ConstraintLayout>