[Android Themes] remeic:
[MENTION=1233140]93Akkord[/MENTION]

To be as clear as possible, this application, as the theme installer, does nothing but collect a family of themes in one package, so that those who download the application can use all the themes in it.

In the event that an issue was updated would be updated must also application (theme installer), then it is the user who has to manually update the theme that had already installed. I hope to be exhaustive, if not, do not be afraid to ask for further explanations.

@ _moelle

you, then the addition of a theme is very very simple.

If we do, your theme is called moellered.apk, you must simply copy the apk in your assets / Files.

the second thing you have to update the files that contain the information and the colors of your theme.

Let's see how you do, go in app / src / main / res / values-v21 / arrays.xml and modify the following information:

<String-array name = "theme_names">
<Item> Lin </ item>
<Item> Daa </ item>
</ String-array>

Here contains information on the names of themes you want to insert in the installer, remember you're inserting the theme moellered then we can change this array like this:

<String-array name = "theme_names">
<Item> MoelleRed </ item>
</ String-array>

Let the name of the package and take the example com.example.moellered package as your theme.

before we have:

<String-array name = "theme_packages">
<Item> com.example.theme1 </ item>
<Item> com.example.theme2 </ item>
</ String-array>

after we have:

<String-array name = "theme_packages">
<Item> com.example.moellered </ item>
</ String-array>

it's time the motto of the theme , we take as an example that the motto of moellered is "Moelle is Red, Moelle is Awesome" thus:

before:

<String-array name = "theme_motto">
<Item> Leak, Coming Soon, Follow me </ item>
<Item> Not now, Fake, Maybe </ item>
</ String-array>

after:

<String-array name = "theme_motto">
<Item> Moelle is Red, Moelle is Awesome </ item>
</ String-array>

Lacks to change colors, we know that lollipop is based on four main colors,

primary, primaryDark, accent and highlighted and in fact we find 4 array containing the colors of your theme, make an example for the primary, the operation is indentical to the other three, you just have to change the color codes.

take # F44336 primary color of your theme and we would modify the array:

before we have:

<String-array name = "theme_colors">
<Item> # 009 688 </ item>
<Item> # f44336 </ item>
</ String-array>

after we have:

<String-array name = "theme_colors">
<Item> # F44336 </ item>
</ String-array>

Remembers each line in an array is the information related to a theme, if in addition to moellered wanted to add a theme moelleyellow, then you will need to enter the information relating to that theme even in these arrays, one example is:

<String-array name = "theme_names">
<Item> MoelleRed </ item>
<Item> MoelleYellow </ item>
</ String-array>

<String-array name = "theme_packages">
<Item> com.example.moelleyellow </ item>
</ String-array>

<String-array name = "theme_motto">
<Item> Moelle is Red, Moelle is Awesome </ item>
<Item> Yellow, Yellow, Moelle </ item>
</ String-array>

<String-array name = "theme_colors">
<Item> # F44336 </ item>
<Item> # FFEB3B </ item>
</ String-array>

Now we can do is add images related to the theme, with version 1.7 of piller Added gallery for each theme, if you use an older version we strongly recommend you to upgrade if you could not, below are the old method, so we go to the Assets folder of our project and we create two folders and MoelleRed MoelleYellow inside them we can put all the images to be included in the gallery, there are no limitations on the number and their name, it 's important that the folder names coincide with those of the theme to which they refer.

Old Version of Piller

[Deprecated

]

Lastly there are pictures to be included, we go in app / src / main / res / and insert images into folders drawable, (we for convenience we have inserted two directly in the drawable folder, but you can insert them in the right size various folders drawable-xxhdpi, drawable-xhdpi and so on)

call the two images and moellered.png moelleyellow.png the code will be:

before:

switch (auxTheme.theme_name) {
case "Lin": // Replace Lin with your Theme Name
res = R.drawable.imm; // Replace imm with your image name
break;
case "Daa": // Replace Lin with your Theme Name
res = R.drawable.imm2; // Replace imm with your image name
}

after:

switch (auxTheme.theme_name) {
case "MoelleRed": // Replace Lin with your Theme Name
res = R.drawable.moellered; // Replace imm with your image name
break;
case "MoelleYelllow": // Replace Lin with your Theme Name
res = R.drawable.moelleyellow; // Replace imm with your image name
}

I hope I was as exhaustive as possible, for any questions or concerns please do not hesitate to ask, even directly hangouts or email.