ActionbarSherlock SearchView crash in android 4.x -


i'm using searchview in actionbarsherlock. i't works correctly in android 2.3 crash in android 4.x

<com.actionbarsherlock.widget.searchview         android:id="@+id/provincefilter"         android:layout_width="match_parent"         android:layout_height="wrap_content"         android:ems="10" >         <requestfocus />     </com.actionbarsherlock.widget.searchview> 

and logic code

searchmanager searchmanager = (searchmanager) mcontext.getsystemservice(context.search_service); msearchview = (searchview)view.findviewbyid(r.id.provincefilter); msearchview.setsearchableinfo(searchmanager.getsearchableinfo(getactivity().getcomponentname())); msearchview.seticonifiedbydefault(false); msearchview.setonquerytextlistener(this); msearchview.setoncloselistener(this); 


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

CSS3 Transition to highlight new elements created in JQuery -