I'm currently developing a simple apps using Android Studio with the minimum API Level 8, now i currently using android.support.v7.widget.SearchView
in my LinearLayout
in content_main.xml
layout, not on ACTIONBAR
, now the problem is, i'm not able to set the searchView as Expanded
by default, i already look for solution and i only got this:
android:iconifiedByDefault="false"
here is my full code for my searchView
<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's not working. anyone could help me? any help would be appreciated. Thank you so much!