ParentActivityName无法正常工作
我有3个顺序的活动。 订单详细信息屏幕 - >图像列表屏幕> 订单详细信息的图像查看屏幕
,我没有
为图像列表屏幕提供parentActivityName,我提供了
parentActivityName =“
:
。
Android 在图像视图屏幕中单击“返回”按钮,它仍然使我只能进入一个通常在活动堆栈中的活动(图像列表)。 而我期望它会返回订购屏幕屏幕,因为我提到了Android:parentActivityName =“。Activity.orderdetails”。
我想知道为什么它覆盖了ParentActivityName,以及如何使其按预期工作。
I have 3 activities in sequence.
Order Details Screen -> Images List Screen-> Image View Screen
For Order Details, I didn't provide parentActivityName
For Images List Screen, I provided
android:parentActivityName=".activities.OrderDetails"
For Images View Screen, I provided
android:parentActivityName=".activities.OrderDetails"
But when i click back button while in Image View screen, it is still taking me to the previous activity only (Images List) which is in the Activity stack generally.
Whereas I was expecting it to come back to OrderDetails Screen because I mentioned android:parentActivityName=".activities.OrderDetails".
I would like to know why it is overriding the parentActivityName, and how to make it work as expected.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论