Setting button alignment programmatically

后端 未结 4 1271
轮回少年
轮回少年 2020-12-22 10:51

I\'m creating some 50 button dynamically.
Text is getting set as followed:

btn.Text=result.Rows[i]["Col1"].ToString()+"\\n"+result.Row         


        
4条回答
  •  北海茫月
    2020-12-22 11:18

    Button myButton = new Button();
    myButton.setGravity(Gravity.RIGHT);   //LEFT
    

    Hope this help you. Worked for my (i was also strugling with this issue for some time)

提交回复
热议问题