MiguelCatalan / MaterialSearchView

Cute library to implement SearchView in a Material Design Approach

Home Page:http://miguelcatalan.info/2015/09/23/MaterialSearchView/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SearchView not working in Androidx

Rudra-n-khatri opened this issue · comments

My search view was working fine before i migrated to androidx and now its not working at all.
I think the problem lies with the androidx.appcompat.widget.Toolbar. My searchview is not even visible now and the funny thing is i used the same thing in other fragment and its working fine there but after migrating i used the searchview in another fragment and now its not visible at all.

    <androidx.appcompat.widget.Toolbar
        android:id="@+id/toolbarinsearch2"
        android:layout_width="match_parent"
        android:layout_height="?attr/actionBarSize"
        android:background="@android:color/holo_blue_light" />

    <com.miguelcatalan.materialsearchview.MaterialSearchView
        android:id="@+id/searchHere2"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:theme="@style/MaterialSearchViewStyle" />
</FrameLayout>

This PR maybe helpful.

Same, I don't think this library is implemented for that.