Combining EditText and Button?

In some applications, I see the EditText widget in combination with the button on the right (for example, the search field in the Twitter application ). How to create such widgets?

Regards, Marco

+3
source share
3 answers

I finally found a solution. Here's how the Google guys did it: search_bar.xml Thanks for all your help!

+3
source

Check out TableLayout and RelativeLayout in the Android Developer Center.

Below are some official layout guides here .

TableLayout, EditText , . , , RelativeLayout, .

+1

Draw 9-patch. 9- , EditText Button. , .

0

Source: https://habr.com/ru/post/1748001/


All Articles