HI friends,
i have an edittext below which is the listview. after searching in the
edittext ,when i click on the listview item it switches to next activity
but the keyboard is not dismissed. how to acheive this.
In the getView() method i have given
convertView.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {
activity.getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_HIDDEN);
Intent intent = new Intent(v.getContext(),
ChannelDetailShowListActivity.class);
Bundle myData = new Bundle();
myData.putSerializable("currentShow", channelShowItem);
myData.putString("class", "guide");
intent.putExtras(myData);
View view1 = EPGGroup.group
.getLocalActivityManager()
.startActivity(
"ChannelDetailShowListActivity",
intent
.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP))
.getDecorView();
// Again, replace the view
EPGGroup.group.replaceView(view1);
}
});
and
@Override
protected void onPause() {
super.onPause();
this.getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_HIDDEN);
}
and
getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_HIDDEN);
is i have given in the onCreate of the next activity.
But still the keyboard is not dismisssed.
--
Regards,
Vani Reddy
--
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