material-components / material-components/material-components-android

[RangeSlider] Knobs/thumbs stays always visible if pulled down inside a SwipeRefreshLayout

Open
#2,152 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug Widget: Slider
Dominant language
Java
Stars
17.4k
Forks
3.2k
PR merge metrics
No merged PRs in 30d

Description

Description: If I drag down while adjustring the knobs on a RangeSlider which is inside a androidx.swiperefreshlayout.widget.SwipeRefreshLayout , then the knobs stays there forever.

See this video https://youtu.be/mtM-h6Rz78M

Expected behavior: Knobs should disappear when I drag down. Instead the SwipeRefreshLayout appears and the knobs stays forever

Source code:

<androidx.swiperefreshlayout.widget.SwipeRefreshLayout
  android:id="@+id/swipeRefresh"
  android:layout_width="match_parent"
  android:layout_height="match_parent">

<LinearLayout
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:animateLayoutChanges="true"
    android:orientation="vertical">

        <com.google.android.material.slider.RangeSlider
            android:id="@+id/rangeSlider"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:valueFrom="0"
            android:valueTo="8" />

Setting

   android:enabled="false"

in @+id/swipeRefresh makes the problem go away (but also the swipe to refresh ability)

Android API version: It has been verified on API 23 and API 30

Material Library version: It has been verified on com.google.android.material:material:1.3.0 and com.google.android.material:material:1.2.1

Device: Many physical and virtual devices

Contributor guide

Open the contributing guide

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.

Research direction

Reproduce the issue with a RangeSlider inside androidx.swiperefreshlayout.widget.SwipeRefreshLayout using the provided layout and the verified API levels. Start by tracing the RangeSlider and SwipeRefreshLayout interaction during a downward drag. Done means the thumbs disappear after the drag while swipe-to-refresh remains enabled.

Written by the indexing model from the issue text.

Assessment

Tech stack
android
Domain
mobile
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.