DJ-DOO
DJ-DOO

Reputation: 4780

Change launcher icon and name for each flavour in Android Project

I will have four flavours in my app each flavour will have a different name and launcher icon. My question is, how do I achieve this?

I found this which actually answers my question. However, I have alot of assets in my app and I don't want to have to duplicate my res folder four times for a string and an icon, this seems very inefficient.

Is there a more efficient method of doing this?

Upvotes: 2

Views: 1740

Answers (1)

Samuil Yanovski
Samuil Yanovski

Reputation: 2867

Flavour specific resource folders are applied on top of the main one. You could keep all the common assets in the main res directory and put the launcher icon and a strings file containing only the app name in the flavoured directories.

Upvotes: 3

Related Questions