Skip to content

[建议]:切换语言界面效果意见 #55

Closed
@Xxj-star

Description

@Xxj-star

你觉得框架有什么不足之处?【必答】

demo的MainActivity启动模式是默认模式 一般APP都是singleTask启动模式,如果是singleTask启动模式 切换语言的话 是无效的,必须调用intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK or Intent.FLAG_ACTIVITY_CLEAR_TASK)

Image才有效,但是调用intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK or Intent.FLAG_ACTIVITY_CLEAR_TASK)会出现界面跳转效果,怎么优化这个问题啊

issue 是否有人曾提过类似的建议?【必答】

框架文档是否提及了该问题【必答】

是否已经查阅框架文档但还未能解决的【必答】

你觉得该怎么去完善会比较好?【非必答】

我个人觉得切换的时候,我的MainActivity是singleTask启动模式并且调用了intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK or Intent.FLAG_ACTIVITY_CLEAR_TASK)属性,能做到切换语言的时候没有任何跳转效果会更友好,因为很多App MainActivity都是singleTask启动模式,如果你不理解我的意思, 你可以把你demo的mainactivity改成singleTask模式 你在运行看看 根本没有效果,必须要加上intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK才行,但是效果出来要是跟你demo效果不一样 怎么优化

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions