Android TableLayout Width

后端 未结 6 805
耶瑟儿~
耶瑟儿~ 2021-01-30 21:33

I have a two column TableLayout as the only child of a scroll view. The first column contains TextViews (\'labels\') and the second column contains

6条回答
  •  死守一世寂寞
    2021-01-30 22:35

    I had similar problem with EditText on Android 2.2. In my case adding android:maxWidth="0sp" property helped. Now EditText field is displayed as I wanted - so it is still of the same size as other EditText fields, but additionaly it is not resized when long text is entered.

    Here is my EditText definition:

    
    

提交回复
热议问题