You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
78 lines
3.0 KiB
78 lines
3.0 KiB
<?xml version="1.0" encoding="utf-8"?>
|
|
<!--
|
|
Copyright 2018 The Android Open Source Project
|
|
|
|
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.constraintlayout.widget.ConstraintLayout
|
|
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"
|
|
|
|
android:clickable="true"
|
|
android:focusable="true"
|
|
android:foreground="?selectableItemBackground">
|
|
|
|
<com.android.pump.widget.UriImageView
|
|
android:id="@+id/audio_image"
|
|
android:layout_width="36dp"
|
|
android:layout_height="36dp"
|
|
android:layout_marginTop="14dp"
|
|
android:layout_marginBottom="14dp"
|
|
android:scaleType="centerCrop"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
tools:src="@tools:sample/avatars"/>
|
|
|
|
<androidx.appcompat.widget.AppCompatTextView
|
|
android:id="@+id/audio_title"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="16dp"
|
|
android:layout_marginTop="11dp"
|
|
android:layout_marginEnd="16dp"
|
|
android:ellipsize="end"
|
|
android:maxLines="1"
|
|
app:layout_constraintStart_toEndOf="@id/audio_image"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
app:layout_constraintEnd_toStartOf="@id/audio_options"
|
|
tools:text="Title"/>
|
|
|
|
<androidx.appcompat.widget.AppCompatTextView
|
|
android:id="@+id/audio_artist"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:ellipsize="end"
|
|
android:maxLines="1"
|
|
app:layout_constraintStart_toStartOf="@id/audio_title"
|
|
app:layout_constraintTop_toBottomOf="@id/audio_title"
|
|
app:layout_constraintEnd_toEndOf="@id/audio_title"
|
|
tools:text="Artist"/>
|
|
|
|
<com.android.pump.widget.UriImageView
|
|
android:id="@+id/audio_options"
|
|
android:layout_width="24dp"
|
|
android:layout_height="24dp"
|
|
android:layout_marginTop="20dp"
|
|
android:layout_marginBottom="20dp"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
app:srcCompat="@drawable/ic_menu"/>
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|