2020-05-07 02:11:06 +02:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<merge xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
2020-05-07 23:45:04 +02:00
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
2020-05-07 02:11:06 +02:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="match_parent">
|
|
|
|
|
|
|
|
<View
|
|
|
|
android:id="@+id/fast_scroller_bar"
|
|
|
|
android:layout_width="7dp"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:layout_gravity="end"
|
|
|
|
android:background="@android:color/transparent"/>
|
|
|
|
|
2020-05-07 23:45:04 +02:00
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
|
|
android:layout_width="match_parent"
|
2020-05-07 02:11:06 +02:00
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="end">
|
|
|
|
|
|
|
|
<!-- No margin, use padding at the handle -->
|
|
|
|
<com.google.android.material.textview.MaterialTextView
|
2020-05-07 21:05:09 +02:00
|
|
|
style="@style/FloatingTextView"
|
2020-05-07 02:11:06 +02:00
|
|
|
android:id="@+id/fast_scroller_bubble"
|
|
|
|
android:layout_gravity="end|center_vertical"
|
2020-05-07 23:45:04 +02:00
|
|
|
app:layout_constraintEnd_toStartOf="@+id/fast_scroller_handle"
|
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
2020-05-07 02:11:06 +02:00
|
|
|
android:gravity="center"
|
2020-05-07 23:45:04 +02:00
|
|
|
app:layout_constrainedWidth="true"
|
|
|
|
android:layout_marginStart="52dp"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
android:maxLines="5"
|
2020-05-07 02:11:06 +02:00
|
|
|
android:visibility="gone"
|
2020-05-07 23:45:04 +02:00
|
|
|
app:layout_constraintHorizontal_bias="1.0"
|
2020-05-12 05:11:16 +02:00
|
|
|
tools:text="Tool tip text"
|
2020-05-07 02:11:06 +02:00
|
|
|
tools:visibility="visible"/>
|
|
|
|
|
|
|
|
<!-- Padding is here to have better grab -->
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/fast_scroller_handle"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_alignParentEnd="true"
|
|
|
|
android:contentDescription="@null"
|
2020-05-07 23:45:04 +02:00
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
2020-05-12 05:11:16 +02:00
|
|
|
android:paddingStart="2dp"
|
2020-05-07 02:11:06 +02:00
|
|
|
android:paddingEnd="4dp"
|
|
|
|
android:src="@drawable/thumb_drawable"/>
|
|
|
|
|
2020-05-07 23:45:04 +02:00
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
2020-05-07 02:11:06 +02:00
|
|
|
|
|
|
|
</merge>
|