サンプルのnavigationアプリをいじっています
SearchViewだけなら問題ないんですが、
ListViewを組み合わせると検索ボックスが入力状態になった時、一緒にナビゲーションバーも動いてしまいます。
何が問題なのでしょうか。ボタンなど追加して試してみましたが同じことは起こりませんでした。
リストビューには何も機能を追加していません!Javaでリストビューについて書いていた部分をコメントアウトしましたが何も変わりませんでした。
よろしくお願いします。
xml
1fragment_search.xml 2 3<?xml version="1.0" encoding="utf-8"?> 4 5 <LinearLayout 6 xmlns:android="http://schemas.android.com/apk/res/android" 7 xmlns:app="http://schemas.android.com/apk/res-auto" 8 xmlns:tools="http://schemas.android.com/tools" 9 tools:context=".main.search.SearchFragment" 10 android:layout_width="match_parent" 11 android:layout_height="match_parent" 12 android:orientation="vertical" 13 android:padding="16dp"> 14 15 <SearchView 16 android:id="@+id/searchingbox" 17 android:layout_width="wrap_content" 18 android:layout_height="wrap_content" 19 android:layout_gravity="center_horizontal" 20 android:layout_marginTop="3dp" 21 android:iconifiedByDefault="false" 22 android:queryHint="検索" /> 23 24 <ListView 25 android:id="@+id/list" 26 android:layout_width="match_parent" 27 android:layout_height="wrap_content"/> 28 </LinearLayout>
回答1件
あなたの回答
tips
プレビュー