How to remove inner bottom space (bottom margin/padding) of text/layout inside a SearchView?
- 阅读更多 关于 How to remove inner bottom space (bottom margin/padding) of text/layout inside a SearchView?
问题 So I got this SearchView that has a default space at the bottom for the text inside it. How can I reduce it (see the red lines in picture): 回答1: Imagine you have SearchView named: searchBar SearchView searchBar = (SearchView) findViewById(R.id.searchViewBar); Get the view ( AutoCompleteTextView ) that holds the text inside your SearchView : //The view that contains the SearchView text AutoCompleteTextView searchTextContent = (AutoCompleteTextView) searchBar.findViewById(searchBar.getContext()