Forum Xamarin.Android

few small issues with layout

meirrotfleischmeirrotfleisch USMember ✭✭✭


I have a layout with an Animated Gif, 3 textviews and 2 buttons.

1) the textview in design layout is set to "alignment center" and shows correctly when running on device the text is not centered. I even tried to reset the alignment in the Activity
TextView txtEvent = FindViewById(Resource.Id.textView1);
txtEvent.Text = "Test Event ";
txtEvent.TextAlignment = Android.Views.TextAlignment.Center;

To no avail..

2) I have 2 buttons within a "relativelayout" within the "linearlayout" i am able to get them aligned to the left and to the right sides of the layout but I am trying to get them to the same width ?

Thanks for your help

Attached is the layout xml



Best Answer


Sign In or Register to comment.