[HOW TO] Theme ALL keyboards without FCs! [A guide for beginners]

Search This thread

csmasn

Senior Member
Sep 17, 2011
850
280
2) Using 7zip extract the 'res\drawable-xhdpi' folder into the folder you created. This folder will contain the pngs that control some of the keys, outlined in red on this pic:

what pic? TIA...
 
  • Like
Reactions: rompnit

cforlife

Member
Jul 28, 2010
43
43
Keyboard Height

I'm trying to change the height of the keyboard because i added a row of number keys. I changed the value keyboardHeight in dimens.xml and it doesn't seem to do anything. Does anyone know of a different value i have to change to make this happen? Thanks.

Update:

If you change the keyboardHeight in the styles.xml it works. I still don't know why changing the value in the dimens.xml didn't work when the one in the styles points to that value.
 
Last edited:
  • Like
Reactions: rompnit

timmetal6669

Inactive Recognized Developer
Apr 15, 2012
2,761
2,029
Redlands CA
Moto G7
I'm trying to change the height of the keyboard because i added a row of number keys. I changed the value keyboardHeight in dimens.xml and it doesn't seem to do anything. Does anyone know of a different value i have to change to make this happen? Thanks.

Update:

If you change the keyboardHeight in the styles.xml it works. I still don't know why changing the value in the dimens.xml didn't work when the one in the styles points to that value.

Check in drawable..

And i saw some links to apk tool. One of my greatest developer friends Lorjay589 developed a very user friendly way to compile and decompile.. You may have heard of it.. Team Rejectz quick fix. Here's a link to the latest updated version... http://d-h.st/k3N .... Black Hole SuperNova is coming to suck you in...
 
  • Like
Reactions: rompnit

notmyepic

Senior Member
Mar 19, 2011
661
618
Livonia, MI
rompnit,

Do you know of any reason why a keyboard will not return a new line within the stock email app? I am using the paid Swype from the play store and from what I remember, I just started having this problem.

At first I thought it might be due to me, since I did theme it, but I uninstalled my themed one, and tried the one from the play store, with no success.
 
  • Like
Reactions: rompnit

rompnit

Senior Member
Aug 24, 2008
3,249
20,624
Granger, IN
Two questions. 1) Do the apk files need to be signed to be installed as system/user app. Does it need to be signed when used in the flash able zip? 2) How to change the color of the gesture trail? Thanks

Sent from a Shaftamle Galaxy S4
"Thanks Button" is always appreciated!
http://mycolorscreen.com/Shaftamle/

1) No because you are actually moving files into the original apk w/o breaking the sig
2) What keyboard? It varies.. ;)

Sent from my SPH-L710 using xda app-developers app
 

notmyepic

Senior Member
Mar 19, 2011
661
618
Livonia, MI
Rompnit, the Google keyboard from the play store, will not recompile for me, even if no changes are made. Most errors are "no resource identifier"

Seems to decompile just fine

I am using the most recent version of apktool and aapt with the framework from Strong Steve Odexed Blue.

Any ideas?

Sent from Notmyepic's Odexed Blue GS3
 
  • Like
Reactions: Smirky Guitars

Shaftamle

Inactive Recognized Themer
1) No because you are actually moving files into the original apk w/o breaking the sig
2) What keyboard? It varies.. ;)

Sent from my SPH-L710 using xda app-developers app

Oh, OK, that makes sense. If you decompiled then recompiled I'm assuming it would need to be signed be it flash able zip or not.
Also, I was referring to the Google keyboard.

Sent from a Shaftamle Galaxy S4
"Thanks Button" is always appreciated!
http://mycolorscreen.com/Shaftamle/

---------- Post added at 04:56 PM ---------- Previous post was at 04:55 PM ----------

Rompnit, the Google keyboard from the play store, will not recompile for me, even if no changes are made. Most errors are "no resource identifier"

Seems to decompile just fine

I am using the most recent version of apktool and aapt with the framework from Strong Steve Odexed Blue.

Any ideas?

Sent from Notmyepic's Odexed Blue GS3

I had the exact same problem. Also tried doing it after making no changes and it failed for me as well.

Sent from a Shaftamle Galaxy S4
"Thanks Button" is always appreciated!
http://mycolorscreen.com/Shaftamle/
 
  • Like
Reactions: Smirky Guitars

rompnit

Senior Member
Aug 24, 2008
3,249
20,624
Granger, IN
Rompnit, the Google keyboard from the play store, will not recompile for me, even if no changes are made. Most errors are "no resource identifier"

Seems to decompile just fine

I am using the most recent version of apktool and aapt with the framework from Strong Steve Odexed Blue.

Any ideas?

Sent from Notmyepic's Odexed Blue GS3

Try to download a 4.2 ROM and load the framework from there.
 

BigMosley

Senior Member
Aug 19, 2011
4,352
1,224
Samsung Galaxy Z Fold3
Could someone send me a PM to a themed keyboard of the unspoken keyboard from post 1? That's my daily keyboard and really would like something themed if possible. Any help is much appreciated! :D

Sent from my SPH-L710 using xda premium
 

Shaftamle

Inactive Recognized Themer
Theming a keyboard may be common knowledge to some of the amazing Devs here. But to a noob like me, it took some research and time to get it working without breaking the original signature (That's the trick!). I searched the forum and it doesn't look like anyone has posted a "How To" on theming a keyboard, so I thought I'd share my experience with you all.
**Some of these steps may seem elementary, but I tried to explain everything in layman's terms so even a beginner can theme a keyboard.


// Before you get started:
You must have a working environment setup. Check out QBKing77's awesome video "How to install the android-sdk" to get that going.http://xdaforums.com/showthread.php?t=1614922

Make sure you also have installed:

// This method has worked with every keyboard that I have encountered so far. I will use 'LatinIME.apk' for reference, as that is the stock ICS keyboard. //

WARNING.. DO NOT POST DISTRIBUTION LINKS TO ANY MODDED 'Swype.apk'. XDA HAS A STANDING ORDER FROM NUANCE (MAKERS OF SWYPE), THAT DOES NOT ALLOW SUCH LINKS TO BE POSTED.

1) To start make sure you have a working copy of your keyboard apk; grab it out of a ROM, download it, or use a file manager with root access (like Root Explorer) to copy it to your SD card then to your computer.
**I would suggest dropping the keyboard apk into a folder on the desktop, seperate from anything else, and making a backup of the original so that you have a spare copy.

2) Using 7zip extract the 'res\drawable-xhdpi' folder into the folder you created. This folder will contain the pngs that control some of the keys, outlined in red on this pic:
Screenshot_edit.png


Color these pngs to match using your favorite editor and save (bucket fill with Paint.Net is a breeze!)

3) Now that your pngs are themed.. Within the folder that you created containing your apk, hold down shift and right click. Select "Open Command Window Here" to fire up command prompt.

4) Next to decompile the keyboard apk with apktool (again using 'LatinIME.apk' for reference, but the apk may be of a different name; SamsungIME.apk, HTC_IME.apk, etc.).
Type this command:
Code:
apktool d LatinIME.apk
When it's done, you will see a folder with the apk name appear, within the folder you created. Click into it and you should see at minimun a 'res' folder and a 'smali' folder.

5) Navigate to 'res\values' folder. Depending on the keyboard you are working on, the xml controlling the remaining key colors will be contained in the 'colors.xml' or 'styles.xml' file. Open with Notepad++, and change the color codes as needed. Save and close.

6) Go back to the root of the folder containing your apk, and fire up command prompt (if it's not still open). Now it's time to build using this command (again using 'LatinIME.apk' for reference, but the apk may be of a different name; SamsungIME.apk, HTC_IME.apk, etc.)
Code:
apktool b LatinIME

7) When it's done building, you should have 4 folders minimum now (res, smali, build, dist) and it's time for the key to success. Navigate into the 'dist' folder and you will see the "Built" apk. Open it with 7zip, and extract the 'resources.arsc' file to your folder. Close 7zip.

8) Now it's time to pull it all together. Navigate back to the ORIGINAL keyboard apk, and open with 7zip.
Copy (you can drag and drop with 7zip) the 'resources.arsc' that you extracted from your "Built" apk, into the "ORIGINAL" apk overwriting the file. Then with 7zip still open and the apk loaded, navigate (within 7zip) into the 'res\drawable-xhdpi' folder where you should see the list of unthemed pngs. Simply drop your edited pngs into this folder. Close 7zip and you're done here!

9) Finally, take your "ORIGINAL" but themed apk, and push it back the 'system\app' folder on your phone.
Fix permissions to 'rw-r--r--' (only check everything under 'read' and Owner under 'write')
Reboot, and bask in the glory of your new themed keyboard! ;)
**Alternatively, grab my empty zip installer here: http://d-h.st/oKG to flash in recovery. You must drop your themed apk into the system\app folder of the zip and save. Also, the zip already contains the 'LatinImeDictionaryPack.apk'

:D Please hit THANKS if I helped!! And please keep this thread alive! :D

Just curious but what significance does copying over the resource.arsc have? I have looked for definitions on what that file even contains and it appears if you are not computer genius extraordinaire you are SOL when it comes to comprehending their explanations.


Sent from a Shaftamle Galaxy S4
"Thanks Button" is always appreciated!
http://mycolorscreen.com/Shaftamle/
 
  • Like
Reactions: KillerofJoy

notmyepic

Senior Member
Mar 19, 2011
661
618
Livonia, MI
Just curious but what significance does copying over the resource.arsc have? I have looked for definitions on what that file even contains and it appears if you are not computer genius extraordinaire you are SOL when it comes to comprehending their explanations.


Sent from a Shaftamle Galaxy S4
"Thanks Button" is always appreciated!
http://mycolorscreen.com/Shaftamle/

resources.arsc contains all of the xml files in it, so if you change anything in them, that is how you can the original apk

Sent from Notmyepic's Odexed Blue GS3
 
  • Like
Reactions: Shaftamle

Shaftamle

Inactive Recognized Themer

Top Liked Posts

  • There are no posts matching your filters.
  • 54
    Theming a keyboard may be common knowledge to some of the amazing Devs here. But to a noob like me, it took some research and time to get it working without breaking the original signature (That's the trick!). I searched the forum and it doesn't look like anyone has posted a "How To" on theming a keyboard, so I thought I'd share my experience with you all.
    **Some of these steps may seem elementary, but I tried to explain everything in layman's terms so even a beginner can theme a keyboard.


    // Before you get started:
    You must have a working environment setup. Check out QBKing77's awesome video "How to install the android-sdk" to get that going.http://xdaforums.com/showthread.php?t=1614922

    Make sure you also have installed:
    // This method has worked with every keyboard that I have encountered so far. I will use 'LatinIME.apk' for reference, as that is the stock ICS keyboard. //

    WARNING.. DO NOT POST DISTRIBUTION LINKS TO ANY MODDED 'Swype.apk'. XDA HAS A STANDING ORDER FROM NUANCE (MAKERS OF SWYPE), THAT DOES NOT ALLOW SUCH LINKS TO BE POSTED.

    1) To start make sure you have a working copy of your keyboard apk; grab it out of a ROM, download it, or use a file manager with root access (like Root Explorer) to copy it to your SD card then to your computer.
    **I would suggest dropping the keyboard apk into a folder on the desktop, seperate from anything else, and making a backup of the original so that you have a spare copy.

    2) Using 7zip extract the 'res\drawable-xhdpi' folder into the folder you created. This folder will contain the pngs that control some of the keys, outlined in red on this pic:
    Screenshot_edit.png


    Color these pngs to match using your favorite editor and save (bucket fill with Paint.Net is a breeze!)

    3) Now that your pngs are themed.. Within the folder that you created containing your apk, hold down shift and right click. Select "Open Command Window Here" to fire up command prompt.

    4) Next to decompile the keyboard apk with apktool (again using 'LatinIME.apk' for reference, but the apk may be of a different name; SamsungIME.apk, HTC_IME.apk, etc.).
    Type this command:
    Code:
    apktool d LatinIME.apk
    When it's done, you will see a folder with the apk name appear, within the folder you created. Click into it and you should see at minimun a 'res' folder and a 'smali' folder.

    5) Navigate to 'res\values' folder. Depending on the keyboard you are working on, the xml controlling the remaining key colors will be contained in the 'colors.xml' or 'styles.xml' file. Open with Notepad++, and change the color codes as needed. Save and close.

    6) Go back to the root of the folder containing your apk, and fire up command prompt (if it's not still open). Now it's time to build using this command (again using 'LatinIME.apk' for reference, but the apk may be of a different name; SamsungIME.apk, HTC_IME.apk, etc.)
    Code:
    apktool b LatinIME

    7) When it's done building, you should have 4 folders minimum now (res, smali, build, dist) and it's time for the key to success. Navigate into the 'dist' folder and you will see the "Built" apk. Open it with 7zip, and extract the 'resources.arsc' file to your folder. Close 7zip.

    8) Now it's time to pull it all together. Navigate back to the ORIGINAL keyboard apk, and open with 7zip.
    Copy (you can drag and drop with 7zip) the 'resources.arsc' that you extracted from your "Built" apk, into the "ORIGINAL" apk overwriting the file. Then with 7zip still open and the apk loaded, navigate (within 7zip) into the 'res\drawable-xhdpi' folder where you should see the list of unthemed pngs. Simply drop your edited pngs into this folder. Close 7zip and you're done here!

    9) Finally, take your "ORIGINAL" but themed apk, and push it back the 'system\app' folder on your phone.
    Fix permissions to 'rw-r--r--' (only check everything under 'read' and Owner under 'write')
    Reboot, and bask in the glory of your new themed keyboard! ;)
    **Alternatively, grab my empty zip installer here: http://d-h.st/oKG to flash in recovery. You must drop your themed apk into the system\app folder of the zip and save. Also, the zip already contains the 'LatinImeDictionaryPack.apk'

    :D Please hit THANKS if I helped!! And please keep this thread alive! :D
    3
    I can't even recompile just after editing images... I give up on the Google keyboard. The note 2 keyboard is light years better....

    Thebe@r'$ G@L@XY

    Don't decompile/recompile. Its my understanding that its not neccasary unless your editing xml's. Use 7 zip to pull the images, edit them then put them back into the signed, original apk also with 7zip. If somehow you loose the Sig. You can use a lot of different things to sign them. I used signapktic from the play store. Awesome app.

    Sent from a Shaftamle Galaxy S4
    "Thanks Button" is always appreciated!
    http://mycolorscreen.com/Shaftamle/
    3
    Two questions. 1) Do the apk files need to be signed to be installed as system/user app. Does it need to be signed when used in the flash able zip? 2) How to change the color of the gesture trail? Thanks

    Sent from a Shaftamle Galaxy S4
    "Thanks Button" is always appreciated!
    http://mycolorscreen.com/Shaftamle/

    1) No because you are actually moving files into the original apk w/o breaking the sig
    2) What keyboard? It varies.. ;)

    Sent from my SPH-L710 using xda app-developers app
    3
    I wish I could tell you but I ran into the same issues. I only modded the keyboards res-xhdpi images. No XML edit as of yet. I will keep you posted if I figure something else out.

    Sent from a Shaftamle Galaxy S4
    "Thanks Button" is always appreciated!
    http://mycolorscreen.com/Shaftamle/
    3
    I think the program is called xUltimate. Search xda for it, because I don't have a link handy. That's what I use to edit the .9png. You can decompile the keyboard and pull the decompiled images to the xUltimate program. Make your changes and it will compile them if there are no errors. Then you can move the compiled .9png back into the original apk. Hopefully that helps a little.

    Sent from my Wicked SGS3.

    That is exactly what I use. I could not locate the link either. But thanks for posting the name. I just could not remember it for the life of me.:thumbup:

    Sent from a Shaftamle Galaxy S4
    "Thanks Button" is always appreciated!
    http://mycolorscreen.com/Shaftamle/