EditText set text start 10dp from left border

后端 未结 4 1763
花落未央
花落未央 2020-12-24 10:36

Is possible in android EditText widget to set that text start 10dp from left border ? When I type something at the moment it is glued to left side and I need to put a little

4条回答
  •  再見小時候
    2020-12-24 11:24

    Did this really solve your problem? setting padding on xml doesn't seem to apply on EditText for me. I solved it some other way. Placed the EditText in side a RelativeLayout view and applied the padding to that RelativeLayout.

    
            
             
    

    as i had issues with EditText background RelativeLayout and set the EditText background transparent. Hope this helps

提交回复
热议问题