I am using fragments in my application.I have a fragment that contains edittexts and some dialogfragments. When i click one particular widget it will move to next fragment. I need the first fragment in the backstack.so i added addToBackStack method also. The second fragment doesn't contain any edittexts. Now the problem is, when we touch or press the second fragment, edittext in the first fragment get the focus and the dialogs are coming.
i got the following code
getView().setFocusableInTouchMode(true);
getView().requestFocus();
I placed this in onresume. But onresume will not call according to some android documents. What I should I do?
0 comments:
Post a Comment