How do I set the activity of the Android Up-button dynamically?

怎甘沉沦 提交于 2019-12-11 07:59:20

问题


The following two methods seem like they should do the trick, but I can't get them to work. Does anyone how to get these methods to work, or know of another way?

getSupportParentActivityIntent http://developer.android.com/reference/android/support/v7/app/ActionBarActivity.html#getSupportParentActivityIntent()

onCreateSupportNavigateUpTaskStack http://developer.android.com/reference/android/support/v7/app/ActionBarActivity.html#onCreateSupportNavigateUpTaskStack(android.support.v4.app.TaskStackBuilder)


回答1:


How to implement getSupportParentActivityIntent() to set the activity dynamically for up-button in android



来源:https://stackoverflow.com/questions/19843757/how-do-i-set-the-activity-of-the-android-up-button-dynamically

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!