Slider or RangeSlider for AndroidX

Nathan Sokalski 4,126 Reputation points
2021-09-09T22:27:41.523+00:00

I am working on adding a slider to my app. I have found com.google.android.material.slider.RangeSlider & com.google.android.material.slider.Slider, but I would prefer (if one exists) to use a slider from AndroidX. Does AndroidX include any kind of slider control? Thanks.

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,316 questions
0 comments No comments
{count} votes

Accepted answer
  1. Leon Lu (Shanghai Wicresoft Co,.Ltd.) 71,051 Reputation points Microsoft Vendor
    2021-09-10T02:49:27.893+00:00

    Hello,​

    Welcome to our Microsoft Q&A platform!

    Does AndroidX include any kind of slider control?

    You can use androidx.appcompat.widget.AppCompatSeekBar in the xamarin.android.

       <androidx.appcompat.widget.AppCompatSeekBar  
               android:layout_width="match_parent"  
               android:layout_height="wrap_content"  
               android:max="100"  
           />  
    

    Best Regards,

    Leon Lu


    If the response is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


0 additional answers

Sort by: Most helpful