MiguelCatalan/MaterialSearchView

Bug: reveal animation doesn't always start from the search menu item

Open

#57 geöffnet am 20. Jan. 2016

Auf GitHub ansehen
 (4 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)Java (627 Forks)batch import
enhancementhelp wantedon hold

Repository-Metriken

Stars
 (3.821 Stars)
PR-Merge-Metriken
 (Keine gemergten PRs in 30 T)

Beschreibung

modify the sample to have more action items on the right of the search menu item, and then click the search menu item. The reveal animation still starts from the most right area, instead of from the search menu item.

Here's an example of the modification that's needed to do it: menu_main.xml

<menu
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    tools:context=".MainActivity">
    <item
        android:id="@+id/action_search"
        android:icon="@drawable/ic_action_action_search"
        android:title="@string/abc_search_hint"
        app:showAsAction="always"/>
    <item
        android:icon="@android:drawable/ic_menu_edit"
        android:title="edit"
        app:showAsAction="always"/>
</menu>

Please fix this.

Contributor Guide