Skip to content

Commit

Permalink
Add fast scroll of to-do list
Browse files Browse the repository at this point in the history
  • Loading branch information
Super12138 committed Jan 31, 2024
1 parent d232ecf commit bae5aaa
Showing 1 changed file with 6 additions and 27 deletions.
33 changes: 6 additions & 27 deletions app/src/main/res/layout/fragment_todo.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,32 +5,6 @@
android:layout_height="match_parent"
android:orientation="vertical">

<!--<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="end"
android:orientation="horizontal"
android:animateLayoutChanges="true">
<Button
android:id="@+id/delete_all_item"
style="?attr/materialIconButtonStyle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginEnd="15dp"
android:tooltipText="@string/delete_all"
app:icon="@drawable/delete_forever_24" />
<Button
android:id="@+id/add_item"
style="?attr/materialIconButtonStyle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginEnd="15dp"
android:tooltipText="@string/add_task"
app:icon="@drawable/add_24" />
</LinearLayout>-->

<androidx.recyclerview.widget.RecyclerView
android:id="@+id/todo_list"
android:layout_width="match_parent"
Expand All @@ -56,5 +30,10 @@
android:layout_margin="16dp"
android:contentDescription="@string/add_task"
android:text="@string/add_task"
app:icon="@drawable/add_24" />
app:icon="@drawable/ic_add"
app:fastScrollEnabled="true"
app:fastScrollHorizontalThumbDrawable="@drawable/thumb_drawable"
app:fastScrollHorizontalTrackDrawable="@drawable/line_drawable"
app:fastScrollVerticalThumbDrawable="@drawable/thumb_drawable"
app:fastScrollVerticalTrackDrawable="@drawable/line_drawable" />
</androidx.coordinatorlayout.widget.CoordinatorLayout>

0 comments on commit bae5aaa

Please sign in to comment.