Hi I have two buttons on my startscreen. this buttons shall now be in the
exact middle of the activity(Because there are many mobile phones or tablet
pcs with not the exact equal resolution).
how can i realize this elegantly? i tried this:
Display d = WindowManager.DefaultDisplay;
Button btnNewData =
FindViewById<Button>(Resource.Id._btnNewData);
btnNewData.Left = (d.Width / 2) - (btnNewData.Width / 2);
But i get an error. I can not write to the left property from the activity.
but.. how to do it?...
thanks so much
--
View this message in context:
http://mono-for-android.1047100.n5.nabble.com/Button-Left-tp5711964.html
Sent from the Mono for Android mailing list archive at Nabble.com.
_______________________________________________
Monodroid mailing list
[email protected]
UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid