我在我的片段中使用search-view元素来实现搜索功能。
<SearchView
android:id="@+id/search_bar"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginTop="7dp"
android:layout_marginLeft="7dp"
android:layout_marginRight="7dp"
android:layout_marginBottom="7dp"
android:background="@color/white" />
问题在于只有搜索图标是可点击的,搜索栏的其他区域不可点击,当我点击图标时才能进行搜索。
请问您能否帮助我使整个搜索区域都可以被点击。
SearchView
δΗäφΖΜεä†android:clickable="true"
ψIJ - Lamorak