How to make the distance between left edge of Toolbar and Search Icon same as that between the right edge of the toolbar and the Cancel Icon?
问题 I am trying to add a SearchView to Material Design Toolbar / ActionBar such that the SearchView is expanded by default and takes up the entire space of the Toolbar width-wise. I have the following Toolbar so far. The problem with it is: I want the Search icon to have the same distance from the left edge of the screen as that of the X icon from the right edge of the screen. How can I do that? The X icon appears only when I start typing a search query, and then it disappears if I cancel the