Op zondag 8 april 2012 13:18:15 UTC+2 schreef Lars het volgende:
>
> i am creating a android 4.03 application and i am making a searchview with
> this code
>
> @Override public void onCreateOptionsMenu(Menu menu, MenuInflater
> inflater) {
> MenuItem item = menu.add("Search");
> item.setIcon(android.R.drawable.ic_menu_search);
> item.setShowAsAction(MenuItem.SHOW_AS_ACTION_IF_ROOM);
> SearchView sv = new SearchView(getActivity());
> sv.setOnQueryTextListener(this);
> item.setActionView(sv);
> }
>
Op zondag 8 april 2012 13:18:15 UTC+2 schreef Lars het volgende:
>
> i am creating a android 4.03 application and i am making a searchview with
> this code
>
> @Override public void onCreateOptionsMenu(Menu menu, MenuInflater
> inflater) {
> MenuItem item = menu.add("Search");
> item.setIcon(android.R.drawable.ic_menu_search);
> item.setShowAsAction(MenuItem.SHOW_AS_ACTION_IF_ROOM);
> SearchView sv = new SearchView(getActivity());
> sv.setOnQueryTextListener(this);
> item.setActionView(sv);
> }
>
EDIT
forgot to mention that what the problem is that the icon i get is in
honeycomb style and not in ics style
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en