Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Slider] vertical slider in horizontal scrollview can not be scrolled #4510

Open
manabu-nakamura opened this issue Dec 26, 2024 · 0 comments · May be fixed by #4511
Open

[Slider] vertical slider in horizontal scrollview can not be scrolled #4510

manabu-nakamura opened this issue Dec 26, 2024 · 0 comments · May be fixed by #4511

Comments

@manabu-nakamura
Copy link
Contributor

manabu-nakamura commented Dec 26, 2024

Description: The vertical slider in a horizontal scrollview can not be scrolled (#832 and #1843).
Screenshot_20241226_004820

Expected behavior: The vertical slider in a horizontal scrollview can be scrolled.

Source code:

<androidx.coordinatorlayout.widget.CoordinatorLayout
  xmlns:android="http://schemas.android.com/apk/res/android"
  xmlns:app="http://schemas.android.com/apk/res-auto"
  android:layout_width="match_parent"
  android:layout_height="match_parent"
  android:fitsSystemWindows="true">
  <HorizontalScrollView
    android:layout_width="match_parent"
    android:layout_height="match_parent">
    <LinearLayout
      android:layout_width="wrap_content"
      android:layout_height="match_parent">
      <com.google.android.material.slider.Slider
        android:layout_width="wrap_content"
        android:layout_height="match_parent"
        android:orientation="vertical"
        app:labelBehavior="visible" />
      <com.google.android.material.slider.Slider
        android:layout_width="wrap_content"
        android:layout_height="match_parent"
        android:orientation="vertical"
        app:labelBehavior="visible" />
      <com.google.android.material.slider.Slider
        android:layout_width="wrap_content"
        android:layout_height="match_parent"
        android:orientation="vertical"
        app:labelBehavior="visible" />
      <com.google.android.material.slider.Slider
        android:layout_width="wrap_content"
        android:layout_height="match_parent"
        android:orientation="vertical"
        app:labelBehavior="visible" />
      <com.google.android.material.slider.Slider
        android:layout_width="wrap_content"
        android:layout_height="match_parent"
        android:orientation="vertical"
        app:labelBehavior="visible" />
      <com.google.android.material.slider.Slider
        android:layout_width="wrap_content"
        android:layout_height="match_parent"
        android:orientation="vertical"
        app:labelBehavior="visible" />
      <com.google.android.material.slider.Slider
        android:layout_width="wrap_content"
        android:layout_height="match_parent"
        android:orientation="vertical"
        app:labelBehavior="visible" />
    </LinearLayout>
  </HorizontalScrollView>
</androidx.coordinatorlayout.widget.CoordinatorLayout>

Minimal sample app repro: #4511

Android API version: 35

Material Library version: 1.13.0-alpha09

Device: Emulator 35.2.10

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants