How to change the position of edit text programmatically in android?

前端 未结 2 1452
萌比男神i
萌比男神i 2021-01-27 23:18

I\'m creating a number of edit texts next to each other programmatically using RelativeLayout. The default width of each edit text is wrap_content, but when the edit text reache

2条回答
  •  抹茶落季
    2021-01-27 23:56

    Try FlowLayout in android and dynamiaclly inflate TextViews in it.

    Rather than that you can use Linearlayout with fixed number of children in each row and if doing this the children must having same layout_weight.

    But rather than going in such big disputes i will request you to simply replace RelativeLayout With FlowLayout in android

提交回复
热议问题