| <?xml version="1.0" encoding="utf-8"?> |
| <!-- |
| Copyright (C) 2016 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:foreground="?attr/selectableItemBackground" |
| android:paddingTop="12dp" |
| android:paddingBottom="12dp"> |
| |
| <androidx.constraintlayout.widget.Guideline |
| android:id="@+id/start_guide" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:orientation="vertical" |
| app:layout_constraintGuide_begin="@dimen/gutter_horizontal_padding" /> |
| |
| <androidx.constraintlayout.widget.Guideline |
| android:id="@+id/end_guide_very_thin" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:orientation="vertical" |
| app:layout_constraintGuide_percent="0.98" /> |
| |
| <ImageView |
| android:id="@+id/ringtone_image" |
| android:layout_width="48dp" |
| android:layout_height="48dp" |
| android:importantForAccessibility="no" |
| android:scaleType="centerInside" |
| app:layout_constraintBottom_toBottomOf="parent" |
| app:layout_constraintStart_toEndOf="@id/start_guide" |
| app:layout_constraintTop_toTopOf="parent" |
| tools:src="@drawable/ic_ringtone" /> |
| |
| <TextView |
| android:id="@+id/ringtone_name" |
| android:layout_width="0dp" |
| android:layout_height="wrap_content" |
| android:paddingStart="16dp" |
| android:paddingEnd="16dp" |
| android:singleLine="true" |
| android:textColor="?android:textColorPrimary" |
| android:textSize="16sp" |
| app:layout_constraintBottom_toBottomOf="parent" |
| app:layout_constraintEnd_toStartOf="@id/sound_image_selected" |
| app:layout_constraintStart_toEndOf="@id/ringtone_image" |
| app:layout_constraintTop_toTopOf="parent" /> |
| |
| <ImageView |
| android:id="@+id/sound_image_selected" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:contentDescription="@string/selected" |
| android:minWidth="@dimen/touch_target_min_size" |
| android:minHeight="@dimen/touch_target_min_size" |
| android:scaleType="center" |
| android:src="@drawable/selector_checkbox_checked" |
| android:visibility="gone" |
| app:layout_constraintBottom_toBottomOf="parent" |
| app:layout_constraintEnd_toStartOf="@id/music_actions" |
| app:layout_constraintTop_toTopOf="parent" |
| app:tint="?colorAccent" |
| app:tintMode="src_in" |
| tools:visibility="visible" /> |
| |
| <ImageView |
| android:id="@+id/music_actions" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:layout_alignParentEnd="true" |
| android:layout_centerVertical="true" |
| android:contentDescription="@string/more_options" |
| android:foreground="?selectableItemBackgroundBorderless" |
| android:minWidth="@dimen/touch_target_min_size" |
| android:minHeight="@dimen/touch_target_min_size" |
| android:scaleType="center" |
| android:scaleX="0.75" |
| android:scaleY="0.75" |
| android:src="@drawable/ic_more" |
| android:visibility="gone" |
| app:layout_constraintBottom_toBottomOf="parent" |
| app:layout_constraintEnd_toStartOf="@id/end_guide_very_thin" |
| app:layout_constraintTop_toTopOf="parent" |
| tools:visibility="visible" /> |
| </androidx.constraintlayout.widget.ConstraintLayout> |