Android soft-input does not disappear when moving back with ActionBar -


I'm using Android searchwid on search search for searches I

However, when users Returns with the actionbars (), the soft-input stays on the screen, though the activity

  android: windowSoftInputMode = "stateHidden; adjusted unspecified"  

As descripbed

It seems that it works only on the move, and is not coming back.

Problem: There may be many activities called search activity and stateAlwaysHidden may not be appropriate for them (in other words: I do not know the behavior of all other activities. )

UPDATE: Giving code, actually just the action. Bars. SetDisplayHomeAssup Disabled (true); Protected void (bundle saved instenestate) on

@OverrideCreate {.... if (Build.VERSION.SDK_INT> = Build.VERSION_CODES.HONEYCOMB) {// Action Bar ActionBeer Actioner = Get Actionbar (); If (null! = ActionBar) {// Action Bar icon Enable Back Navigation Action Bar.setDisplayHomeAsUpEnabled (true); }} ....}

UDATE 2:

  @ Override public boolean-on-options item selected (menu item) {return Super.Option Systemmated ( item); }  

Use the rod lead and:

  @Official Boolean overrideOptesitem Select (menu item) {// handles action bar items here Click Action bar will automatically manage clicks on the Home / Up button automatically, so long as // you Specify a parental activity in AndroidManifest.xml. // Fix bug when there is soft-input on the screen when navigating with Actionbear Home / Back button https: // https://accack.co.uk) .setSoftInputMode (WindowManager.LayoutParams.SOFT_INPUT_STATE_HIDDEN); InputMathManAppleImil (input-method manager) could not find any system service (reference.INPUT_METHOD_SERVICE); // Check that there is no visual focus: View View = this.getCurrentFocus (); If (see! = Null) {//imm.hideSoftInputFromWindow (v.getWindowToken (), InputMethodManager.HIDE_NOT_ALWAYS); Imm.hideSoftInputFromWindow (view.getWindowToken (), 0); } Return Super.Options item selected (item); }  

Comments

Popular posts from this blog

sqlite3 - UPDATE a table from the SELECT of another one -

c# - Showing a SelectedItem's Property -

javascript - Render HTML after each iteration in loop -