Android EditText in AlertDialog seems too wide

后端 未结 4 674
挽巷
挽巷 2021-02-13 20:03

It seems like the EditText in the image below is too wide. I assume that I have misused the SDK in some way and until convinced otherwise I am not looking for a way to specify

4条回答
  •  一个人的身影
    2021-02-13 20:34

    Set the layout marginleft and layout marginright to 5sp. The margin sets the space around the view group. Take a look at ViewGroup.MarginLayoutParams

提交回复
热议问题