I am currently developing simple applications with Android Studio with a minimum API level of 8, now I use android.support.v7.widget.SearchView in the LinearLayout layout in content_main.xml and not in ACTIONBAR , now the problem is I canโt install searchView as Expanded by default, I'm already looking for a solution, and I only got this:
android:iconifiedByDefault="false"
here is my complete code for my search.
<android.support.v7.widget.SearchView android:layout_width="wrap_content" android:layout_height="wrap_content" android:id="@+id/searchView" android:background="#00000000" android:iconifiedByDefault="false" android:layout_weight="1" />
but no luck, it does not work. can anyone help me? Any help would be greatly appreciated. Thank you very much!
source share