Which one to use NavUtils.navigateUpFromSameTask() vs. onBackPressed()

后端 未结 2 924
闹比i
闹比i 2020-12-29 06:06

I have two activities A and B. The A has a ListFragment which uses LoaderManager, whereas B activity shows a details about the item selected in the A\'s ListFragment. I\'ve

2条回答
  •  攒了一身酷
    2020-12-29 06:42

    check out this presentation: https://speakerdeck.com/jgilfelt/this-way-up-implementing-effective-navigation-on-android. It answers to all of your problems.

提交回复
热议问题