How to place button inside of edit text

后端 未结 11 667
我在风中等你
我在风中等你 2020-12-04 10:17

I want to place an image button inside of EditText, but I don\'t have Idea please tell me how to do so as shown in the figure . Thanks

11条回答
  •  攒了一身酷
    2020-12-04 10:39

    How about placing it in a RelativeLayout like this ?:

    
    
        
        
    
             

    Also this way you´ll be able to handle the visibility of the Button (GONE / VISIBLE) in code.

    Hope it helps.

提交回复
热议问题