Skip to main content

All Questions

Filter by
Sorted by
Tagged with
0 votes
1 answer
295 views

SearchView in ActionBar with more fragment on android

I need Add SearchBar in ActionBar handle with more Fragments like whatsApp when Search in Tab chats get data and when Search in Tab Status get another data How do This?This is My Code there is 3 tabs ...
Mohamed Mohamed Taha's user avatar
2 votes
1 answer
4k views

How to implement SearchView in Fragment

I wrote the following code : public class TabFragment extends Fragment { @Override public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) { super.onCreateOptionsMenu(menu, ...
Android Boy's user avatar
  • 4,345
0 votes
1 answer
973 views

Android - NullPointerException on SearchView in Fragment

I am always getting searchView null at below line in my fragment class: SearchView searchView = (SearchView) MenuItemCompat.getActionView(searchItem); here is my fragment class, Please find ...
Vichi's user avatar
  • 1
2 votes
1 answer
949 views

SaerchView in ActionBar showing icon twice and not getting auto focus. Why is that?

I've a SearchView for a fragment in ActionBar. The problem is when I first touch the icon it shifts to the left (Expanded SearchView). Then I have to touch it again to get the text field. The below ...
priyank's user avatar
  • 2,691