Hey guys,
I want to make a theme, so i ask all you themers here:
How do i have to add a background picture, for example to settings.apk? there is no bg.png or something like that to replace..so obviously i'll have to add one..but i think that has to happen in an .xml file..but how do i edit those xml files?
Please help me, our Minis are going to get a beautiful theme
Thanks,
nitro
Nitroboy77 said:
Hey guys,
I want to make a theme, so i ask all you themers here:
How do i have to add a background picture, for example to settings.apk? there is no bg.png ord something like that to replace..so obviously i'll have to add one..but i think that has to happen in an .xml file..but how do i edit those xml files?
Please help me, our Minis are going to get a beautiful theme
Thanks,
nitro
Click to expand...
Click to collapse
Pretty easy if you have xml
Code:
<android:background="@drawable/background">
Add that to relative layout
thanks for your fast reply darknessys
but i don't get you all the way..where do i have to add this line? And how do i decompile a xml file? do i have to decompile a xml file anyway?
I would like to edit the "Android unlock" lockscreen that is included with Project-V, I have found the smali file (LockScreen.smali in android.policy.jar) that I believe contains the code for elements I want to remove, but I have zero java coding experience.
I want to remove the next alarm and battery charging notifications that show below the clock on the AOSP lockscreen.
Can anyone help? Or point me to some resources/guides for learning the language?
No expert here or anything but I would think that would be a smali file somewhere in android.policy.jar and not xml.
Sent from my GT-I9000
jneal9 said:
No expert here or anything but I would think that would be a smali file somewhere in android.policy.jar and not xml.
Sent from my GT-I9000
Click to expand...
Click to collapse
Ya, I have started looking in there, but so far I'm not finding anything
Yeah smali is pretty low level java and tough to understand. Maybe try and PM Romanbb. He seems be very good with java.
Have you had any luck with this? I want to do pretty much the same thing, except I want to keep the alarm details. I know a bit about Java but lockscreen.smali just gives me a headache..
Ticklefish said:
Have you had any luck with this? I want to do pretty much the same thing, except I want to keep the alarm details. I know a bit about Java but lockscreen.smali just gives me a headache..
Click to expand...
Click to collapse
Here's what Roman said:
"Removing them via smali will be a huge pain. They are defined an XML layout file in framework-res.apk, you could try and modify them to shove them off the screen, or make the dimensions small enough to where it's not visible. Don't try and remove it from the XML file though, it'll throw smali errors."
WidgetLocker is fulfilling my needs.
Ah, well..I suppose it depends on how much of a stubborn nerd you are.
I've tried WidgetLocker and it does seem to be a decent app, but it's not for me. I started out wanting to modify the stock lockscreen and, dammit, I'm going to do it. I've done some fiddling with the smali code and I've got a pretty good idea what to do, I just need some free time in which to do it.
Free time? Around Christmas? Nah..
Thanks for your tip about removing them from the layout files. This was the first thing I tried and I ended up with all sorts of errors once I'd pushed the framework back to the phone.
Hi,
So I've tried many times to edit buttons(in framework), but the problem is that they are resizeable during the usage and each time I edit them (with Photoshop) the layout is just changed. Even after simply color change. So instead of cool a looking button I get an egg(shape).
How do You edit these buttons?
Please help if You know.
jakuburban said:
Hi,
So I've tried many times to edit buttons(in framework), but the problem is that they are resizeable during the usage and each time I edit them (with Photoshop) the layout is just changed. Even after simply color change. So instead of cool a looking button I get an egg(shape).
How do You edit these buttons?
Please help if You know.
Click to expand...
Click to collapse
I assume you're editing .9.png's? Images with the extension .9.png need to be manipulated a bit to get them to work right when editing. .9.png's have extra information attached to them with regards to stretching and re-sizing. Editing them with Photoshop destroys this extra information. Do a quick search on how to edit .9.png's.
Frosty666 said:
I assume you're editing .9.png's? Images with the extension .9.png need to be manipulated a bit to get them to work right when editing. .9.png's have extra information attached to them with regards to stretching and re-sizing. Editing them with Photoshop destroys this extra information. Do a quick search on how to edit .9.png's.
Click to expand...
Click to collapse
Thanks, I haven't noticed that it's *.9.png extension. I thought it's a normal *.png.
Will search for it
Hi guys !!
I'm looking for a mod that adds swipe to remove notifications on my Arc S.
It's in the all in one mod but i don't need everything in this mod ^^
And i've found this thread , where there is a tutorial to add it "manually" but it's a bit tricky to do it by myself...
And the search function didn't return something "premade" useful...
Thanks in advance ;-)
http://forum.xda-developers.com/showthread.php?t=1477190
Sent from my R800i
I'm not sure if there is a mod released on its own, however from the tutorial it says to edit the framework.jar and systemui.apk so you could just push those 2 to your phone instead but that still might contain some of the other mods, but its worth a shot if you don't want to go through editing it manually.
Hey guys,
I was asked a week or so back to make a guide so others can theme the Stock SamsungIME.apk the way they like. I have made my thread to do this and you can put in request if this guide is not helpful(which I hope it is).
I will answer as many questions as I can, time permitting, and be as Noob friendly as I can, as well. I know this guide will not be perfect and there might be some things I am leaving out, and if so tell me, I will adjust the OP with any suggestions or changes. So here goes nothing...
Things you need:
Android SDK
Java JDK and JRE
Apktool
Notepad++
xUltimate-d9pc
Photo Editor (Gimp/Photoshop)
Before we begin, I am not going to go into how to load/decompile/recompile apks.. There are some good guides out there and here are some..
http://forum.xda-developers.com/showthread.php?t=2195680
http://forum.xda-developers.com/showthread.php?t=2206938
After you have the SamsungIME.apk totally decompiled you will want to open the folder it decompiled into and start with the res/drawables-sw359dp-xhdpi folder. In this folder there is all the pngs you need to edit. For starters the keys themselves..
You want:
sip_key_bg_normal.9.png
sip_key_bg_option.9.png
sip_key_bg_pressed.9.png
As you can tell, by the name, these are not normal pngs. You will see a 1 pixel border on all sides of the image. When editing the png either erase them or resize the canvas of the image. Just subtract by 2 form the height and the width, but remember when you save it re open it and adjust the canvas size back to the way it was. As my understanding of these goes, they are named this way because Android recognizing these .9.pngs and stretches them.. When I first attempted editing these I would have nothing but problems, of course because I was doing it wrong. I never could understand where the lines go and what they actually do. Thats probably because I was trying to do it with transparent/semi-transparent images and could not see the actual image expanding. Well when you are editing these with draw9patch, I noticed two very important things to look at (for the keyboard). The window to your right is how the actual image will look when expanded, but to see that you have to go to the bottom of the screen and the second scroll bar, move it all all the way to the right.
You will notice that it stretches the image.. This is the same thing Android does.
The middle image needs attention here because it expands it horizontally. So that means when you expand it all the way thats what you spacebar will look like. .
You notice that these edges (red lines) Are not defined they are rounded.. Because they are not patched correctly.
Notice the difference? This after it was patched with the proper line alignment.
To start you want add to full lines on the bottom and the right side. Next is the top and the left side. These are the lines you need play with to make you image look right. I used to only add a 1 pixel dot in the middle and one pixel line on the left. But when I started getting more advanced with photoshop/gimp I noticed my images would not looking the same. When you add gradients or borders to you keys, seeing the image on the right expanded is important because you will draw you lines to make you image look like it did in photoshop/gimp. NOTE: Don't leave any space in the lines to the right and on the bottom. You can, however, do so on the left and top but it will distort your png.
Here are a few guides to help you if you have anymore questions:
http://forum.xda-developers.com/showthread.php?t=2326393
The next image of importance is:
qwerty_keypad_bg.png
This is the background of the keyboard.. NOTE: there is also one of these located in res/drawables-sw359dp--land-xhdpi, the only difference being the above image is for Portrait and land is for Landscape. Also, they are two different resolutions so be careful when changing them. You can change this image to anything you want.. It is a normal png so therefore no patching or further steps are needed.
Next would be all the other option pngs, backspace, space bar, voice, settings, enter key, etc. You will will find these starting with the word qwerty_.
So example:
qwerty_key_icon_enter.png
This is the enter key as it sits on your keyboard.. Yes there are other ones but there are for different actions.
Another thing we might want to change is the color of the CAPS key when it is enabled.
That png is named:
qwerty_key_bg_shift_capslock.png
As you can see a lot of these are named exactly what they are..well some at least..
Next is .xml edits. You want to locate res/values-sw359hp-xhdpi/colors.xml. You will need to open this with notepad++ to edit colors of the key text, pressed key text, shadow of those text, space bar lettering, etc. You will only (or I only do) need to focus on the first 12 lines. They pretty much explain themselves by there names.
Code:
<color name="normalkey_shadowcolor">#ff000000</color>
<color name="functionkey_shadowcolor">#ff000000</color>
<color name="functionkey_labelcolor">#ffe2e2e2</color>
<color name="normalkey_labelcolor">#ffe2e2e2</color>
<color name="pressedkey_labelcolor">#ff122438</color>
<color name="disablekey_labelcolor">#7fe2e2e2</color>
<color name="popup_normalkey_labelcolor">#ffffffff</color>
<color name="popup_pressedkey_labelcolor">#ff2d5a8c</color>
<color name="normalkey_extra_labelcolor">#ffe2e2e2</color>
<color name="spacekey_labelcolor">#ffb6b6b6</color>
Click to expand...
Click to collapse
You'll notice that the colors are hex codes.. So the first two letters or numbers is for the transparency.. The next six define the actual color.
After we have edited our xml we can go ahead and recompile the apk. You should recompile with no errors. If you do encounter an error it's possible that you edited the color wrong and made it seven letters instead of eight or vice versa. Make sure that you transfer the old AndroidManifest.xml and META-INF folder form your original APK and transfer them to your new APK in SamsungIME/dist/.
FInally, you can copy you NEW SamsunIME.apk to your sd card, reboot into recovery. I prefer this method (Thanks to @Deckoz2302) because I would have trouble with APK's fully copying through adb. When in recovery select Mount, then click System. Select back. Then select Advanced, than File Manager. When in File Manager goto wherever you put your new APK. Copy it. Then go to System/app/ and hit Select and slide to copy. Reboot!
:good:Special THANKS to: @Deckoz2302: Best developer I have ever talk to! @Rizal Lovins, @grilleld, @Arsaw, @twanskys204, @Winterlove, @GuneetAtwal and I REALLY hope I didn't leave anyone out! If I did I'm sorry, tell me and I will update!:good:
FIRST......!!!
Thanks brother, I am going to give this a go tomorrow.
Today, young ,men on acid realize that all matter is merely energy condensed to a slow vibration, we are all one consciences sharing itself subjectively, there is no such thing as death, life is only a dream, and we are just imaginations of ourselves And now to the weather.....
Reserved. .
Sent from my Galaxy Nexus using xda app-developers app
This is quite the guide thanks so much for this.
Sent from Kendrick Lamar, King of New York
Nice Tut Great Work..!
Can all this be done on Mac osx?
Shamestick said:
Can all this be done on Mac osx?
Click to expand...
Click to collapse
If there is an Android SDK for OSX then i'd imagine it can be done on a Mac.
The SDK was fine, its getting the java jdk that's giving me issue
Shamestick said:
The SDK was fine, its getting the java jdk that's giving me issue
Click to expand...
Click to collapse
@Shamestick - Do you use Polaris to run Windows? That could work possibly.
Sent from my SCH-I605 using xda app-developers app
dudeicles said:
@Shamestick - Do you use Polaris to run Windows? That could work possibly.
Sent from my SCH-I605 using xda app-developers app
Click to expand...
Click to collapse
I do not, and I haven't gotten a copy of windows to dualboot with yet either. My problems always come whe i try to go to the downloading site for java, it just will never open on chrome or safari
well done my friend ! Nice to see you here
Text color SamsungIME.apk Note3-MOD
I have a big problem.
I decompiled the SamsungIME.apk from Note3-MOD to change the color of the KEY-Text from BLACK to WHITE.
But I can't find the right XML and location where the code has to be changed.
Can someone help me in this topic?
Superwolf77 said:
I have a big problem.
I decompiled the SamsungIME.apk from Note3-MOD to change the color of the KEY-Text from BLACK to WHITE.
But I can't find the right XML and location where the code has to be changed.
Can someone help me in this topic?
Click to expand...
Click to collapse
They will most likely be in values/colors.xml
For testing I already changed every black code to white in this XML but it does not change.
Superwolf77 said:
For testing I already changed every black code to white in this XML but it does not change.
Click to expand...
Click to collapse
Oops sorry its in /values-sw359dp-xhdpi/colors.xml.. Took me a long time to figure out that! lmao! Anyways have fun hope I helped!
Thank you for the help. It works fine now.
Thnks sir.. usefull :fingers-crossed:
Apks?
For those who have made custom keyboards will you please post your apks?
Good
Thanks for your tutorial. I have a question about adding a backround image for the keyboard.Not sure if thread is to old so please respond if you an answer question and ill write it . thanks