EditText getting out of GridLayout

后端 未结 2 922
[愿得一人]
[愿得一人] 2021-01-01 02:33

I am trying to create a view with an EditText and a label associated. I am placing them in a GridLayout. The EditText is in the last column and the text seems to go out of t

2条回答
  •  醉酒成梦
    2021-01-01 02:58

    Okay, this problem seems to tricker than it seems.

    To stop the TextView label pushing the EditText off of the screen.

     
    

    But you're then left with a problem where adding text to the EditText squishes the TextView untils you can't see it.

    Try what was done in this answer which seems to be a good compromise.

提交回复
热议问题