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?

后端 未结 1 781
难免孤独
难免孤独 2020-12-12 00:03

I am trying to add a SearchView to Material Design Toolbar/ActionBar such that the SearchView is expanded by default and

相关标签:
1条回答
  • 2020-12-12 00:11

    I believe that

        android:contentIntentStart="0dp"
        android:contentIntentLeft="0dp"
        app:contentIntentStart="0dp"
        app:contentIntentLeft="0dp"
    

    was meant to be

        android:contentInsetStart="0dp"
        android:contentInsetLeft="0dp"
        app:contentInsetStart="0dp"
        app:contentInsetLeft="0dp"
    
    0 讨论(0)
提交回复
热议问题