Forum Xamarin.Android

Change layout alignment to "Right to Left" programatically

Johann.SebastianJohann.Sebastian USMember
edited January 2014 in Xamarin.Android

Hi dears

I have an application that all of it's layout are Left to Right.I want to add a new language to the app that is a RtoL language.my application get some info from the server at the first load.I want when server parameter RtoL is true app layouts change to Right to Left automatically.
I tried this code:
RelativeLayout.LayoutParams lp = new RelativeLayout.LayoutParams(...)
lp.addRule(RelativeLayout.ALIGN_PARENT_Right)
but RelativeLayout does not have ALIGN_PARENT_Right !

Im using minSdkVersion="8" targetSdkVersion="18 .I want a solution that devices with android version below jelly been support it.

Thanks

Posts

Sign In or Register to comment.