Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

Xamarin Forms Slider With Custom Thumb

$
0
0

I am trying to make a custom SliderRenderer for Xamarin.Forms that can allow me to change the thumb to be in image instead of just a circle.

On native Android I found you can do something like this:

Drawable myThumb = getResources().getDrawable(R.drawable.slider_button);
myThumb.setBounds(new Rect(0, 0, myThumb.getIntrinsicWidth(),myThumb.getIntrinsicHeight()));
skbr.setThumb(myThumb);

Link to source: http://stackoverflow.com/questions/3882992/how-can-i-change-the-android-seekbar-thumb-drawable-after-oncreate-method

I don't know how to get an image or resource properly with Xamarin Android though. Anyone know how to handle this?


Viewing all articles
Browse latest Browse all 204402

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>