[Android Themes] Raiz:
​

This part is for you, yes you the tweaker, the unstoppable decompiler or others Android Enthusiast

I made this theme with dependencies , it means I made separates file in the APK file for the tweakers who wants to modify the colors I set easily.

So to modify this APK , you need to decompile it and recompile it with some tools , you will need :

• Apktool

And to Sign and Align your apk, I advice this all in one tool , it's really easy to use , thanks to @aureljared.

• ZipAligner

--> This tools doesn't work that well anymore, I address how to sign apks in my Index thread

Read on the respective link how to install them and use them if you don't know how.

So first (after setting up both Apktool and Zipaligner) ,you should decompile the Labs.apk you downloaded above.

Enter this command:

java -jar apktool.jar d Labs.apk

Then , go to the Labs folder and go to /res/drawable. Search for the files starting by "background_".

Here the list of all the file I added to make easier the modifications :

• background_mydevice (to modify the "my device" background gradient)

• background_post (to modify the post background color, you have the ability to add a gradient)

• background_quote (to modify the quote/code background,you have the ability to add a gradient)

• background_refresh (to modify the "End of Thread" button background gradient)

• background_user (to modify the user info background gradient)

The only thing you want to modify is the color code , those files are regular files like that (this is an example , some of the files are different but they have always the <gradient/> line):

<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="[url]http://schemas.android.com/apk/res/android"[/url] android:shape="rectangle">
<gradient android:startColor="#ff48c6ef" android:endColor="#ff6f86d6" android:angle="135"/>
<corners android:radius="22dp"/>
</shape>

You want to modify this line to modify the color:

<gradient android:startColor="#ff48c6ef" android:endColor="#ff6f86d6" android:angle="135"/>

You just have to change the hex code, here what you want to modify here: 48c6ef and 6f86d6 , replace them with the hex code wanted.

The "startColor" tag is the color at the beginning of your gradient.

The "endColor" tag is the color and the end of your gradient.

You can add android:centerColor="#ff[hex code]" between startColor and endColor to set a middle color for your gradient.

If both startColor, centerColor and endColor are the same, you'll have only one color for your background ( the one you set for the three tags)

You want to modify this line to modify the corner radius:

<corners android:radius="22dp"/>

Replace 22 with your value

This line isn't present in every file so don't worry if you don't see it , but don't add it if she isn't here.

Then , recompile the APK file with this command:

java -jar apktool.jar b Labs

And launch ZipSigner to sign and Align the APK

Here you go , feel free to show me what you've done with screenshots in this thread.

Here some link for cool gradients and hex color view :

• https://webgradients.com

• https://www.hexcolortool.com/

And there's a website that allows you to see the Android code , make sure to test it out :

• https://labs.udacity.com/android-visualizer/