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

Anchor and translation settings ignored for rotation on Android?

$
0
0

In my Forms project I have a custom label that uses a combination of AnchorX, TranslationX, TranslationY and Rotation to position on label on the screen. On iOS, these properties work as expected. However, on Android, only the Rotation is taken into account. I'm unable to translate or change the anchor on the label. Is there another way I should be using those properties for Android?

<custom:CustomLabel Grid.Row="2" Grid.Column="0" Grid.ColumnSpan="3" WidthRequest="125" 
                AnchorX="0" Rotation="-90" TranslationX="88" TranslationY="80"
                FontSize="21"  YAlign="Center" XAlign="Center" TextColor="White" Text="Text goes here" />

Viewing all articles
Browse latest Browse all 58056

Trending Articles



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