i try to make simple android puzzle game with using Buttons , and i try to create buttons in for loop
How can I set this buttons in layout and give all of them same Event Handler ??
You can try something like this :
Button myButton = new Button(this);
myButton.Text = "Push Me";
LinearLayout ll = (LinearLayout)FindViewById(Resource.Id.myLayout);
LayoutParams lp = new LayoutParams(LayoutParams.MatchParent, LayoutParams.WrapContent);
I Solved My Issue by using TableLayout
Refer : http://stackoverflow.com/questions/18207470/adding-table-rows-dynamically-in-android
But Now I have another problem
I want to find anything like TabeIndex property for Button in windows application
can u help me to find the same property in Xamarin andriod Button control??
Xamarin Inc., as a wholly-owned Microsoft subsidiary acting as a separate legal entity, adheres to the Microsoft Privacy Statement: Privacy & cookies