Rewriting the Fragment in the onKeyEvent () method, to achieve the effect of the return key, click the back button but nothing happens. Seek solutions.
Reply: fragment is dependent activity, realize onkeydown in activity in
Reply: fragment need not add event listeners to return what it
unified managementYou have to listen to modify the onkeydown and returns false viewgroup
Reply: ft.addToBackStack (null) ;/ / this line of code can return to the previous operation (the horizontal screen, the display that is on both sides of the lower case)
Reply: Have solved it!
No comments:
Post a Comment