Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 77050

How can I center a Picker's text?

$
0
0

I've been trying to center the text of my picker with no luck. I have a renderer to set things like text color and font size, but when I use the Control.TextAlignment = Android.Views.TextAlignment.ViewStart for android or Control.TextAlignment = UIKit.UITextAlignment.Center;, nothing happens at all. Neither the Title text nor the chosen list item is centered on the screen. In my PCL, the Picker is set to CenterAndExpand HorizontalOptions (CenterAndExpand and Center both seem to do the same thing), but all text is still left aligned. Is there anything I can do to set the Picker's text to center on screen? Thanks!


Viewing all articles
Browse latest Browse all 77050

Trending Articles



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