i am creating an android 4.03 application, in my application i am using 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);
}

it works perfectly but the icons of my searchview look old and not like the 
new style

<https://lh4.googleusercontent.com/-t2-aqMI1yDs/T4F00WO5HeI/AAAAAAAAAD0/mhT5QPfTk2A/s1600/Knipsel.PNG>

i want the icons to look like the style of the left menu item

how can i accomplish that??

thanks Lars



-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to