make multi language android application

后端 未结 1 665
猫巷女王i
猫巷女王i 2021-01-05 18:14

I created multi language (English, Russian, Uzbek) app. I put 4 string resoureses in 4 folders (values, values-en, values-ru, values-uz) as docs. When I change app language

相关标签:
1条回答
  • 2021-01-05 18:44

    From my observations, weird behaviour was affecting only Activity titles, and I found that I was setting translations of activity titles in Manifest file. Only these translations were misbehaving. All other dynamically set translations were working fine. So, to fix the problem, I removed all activity labels from Manifest file, then set activity titles in onCreate method as below:

    getSupportActionBar().setTitle(R.string.title_activity_followers);
    

    Problem solved.

    0 讨论(0)
提交回复
热议问题