• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!
  • Hello [name]! Thanks for joining the GMC. Before making any posts in the Tech Support forum, can we suggest you read the forum rules? These are simple guidelines that we ask you to follow so that you can get the best help possible for your issue.

SOLVED Different banner image on Android tv based on localization?

gkri

Member
Is it possible to dynamically change the banner image on Android tv based on localization? Maybe by checking os_get_language() or maybe by somehow altering the AndroidManifest.xml?
 

chirpy

Member

gkri

Member
I have no experience supporting Android TV, but I see in the generated manifest we're using android:banner="@drawable/banner" for it.
You should be able to add res/drawable-LANG_CODE-rREGION/ folders to provide banner.png for different languages that you support.
In GMS2, you can do so by adding resources to an Android extension.

Reference:
https://developer.android.com/guide/topics/resources/localization
https://developer.android.com/guide/topics/resources/providing-resources
Thank you, I'll try it!
 

gkri

Member
@chirpy Thank you for your lead, it was very helpful and I managed to do it.

The res/drawable folder did not work for me, but the folder res/drawable-xhdpi worked for en and not localized content (as default). For localized content worked the res/drawable-[LANG_CODE-rREGION]-xhdpi

Thank you!!!
 
Top