Skip to content

[Slider] Add a way to prevent the label from being drawn at all #703

@Dem0n13

Description

@Dem0n13

Description: when I set slider.isFloatingLabel = false label stills show.

slider.isFloatingLabel = true (default)
Screenshot_1571896439

slider.isFloatingLabel = false
Screenshot_1571896494

Expected behavior: I expected that I can hide floating label.

Source code:

<com.google.android.material.slider.Slider
        android:id="@+id/sliderOpacity"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:stepSize="20"
        android:valueFrom="10"
        android:valueTo="90"
        app:floatingLabel="false" />

Android API version: Android P, Q

Material Library version: 1.2.0-alpha01

Device: AVD, Google Pixel 3

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions