Call activity's onBackPressed() from a fragment

后端 未结 0 672
陌清茗
陌清茗 2021-01-03 21:05

I have a fragment with a back button. I want to call onBackPressed of my activity when the user clicks the button. I tried doing this on my fragment:

buttonBa         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题