How to finish an activity from an Adapter..?

前端 未结 10 636
野趣味
野趣味 2020-12-13 08:39

I tried with passing context of activity into the adapter and then i tried context.finish(); But its giving me one error like The method fini

10条回答
  •  青春惊慌失措
    2020-12-13 09:14

    Try passing your Activity as an activity parameter, then you'll be able to call finish() on it. Hope this helps.

提交回复
热议问题