Add a scrollbar

Open
#82 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
android, kotlin
Domain
mobile-dev

Research direction

Start by reproducing the reported VerticalGridView behavior in an Android TV app using the XML scrollbar attributes shown in the issue. Confirm that the vertical scrollbar displays both its track and thumb; the issue names no source file or test, so the relevant implementation and test location must first be identified.

Written by the indexing model from the issue text.

Description

I use VerticalGridView to replace RecycleView in Android TV app and set scrollbar for VerticalGridView in xml as below. But in the end the scrollbar is not showing.

android:scrollbarSize="@dimen/sw_3dp" android:scrollbarStyle="outsideInset" android:scrollbarThumbVertical="@color/white" android:scrollbarTrackVertical="@color/color_B0B0B0" android:scrollbars="vertical"
After I added the following code, the scroll bar can be displayed. But the scrollbar only shows the track but not the thumb.
android:fadeScrollbars="false" android:background="@color/transparent" android:scrollbarAlwaysDrawVerticalTrack="true"
Can help me?

Dominant language
Kotlin
Stars
1.3k
Forks
400
Avg merge
9d 10h
Merged PRs (30d)
2

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from android/tv-samples

All issues in android/tv-samples

Similar issues

More Kotlin issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.