[Q] How to resize .9.png ? - Sony Ericsson XPERIA X10 Mini

I just want to resize a lot of .9.PNG's !
I am making a theme who is for hdpi devices and I want to convert to mdpi devices (our devices) so I need to resize all the PNG's !
I think I must decompile the framework-res from the theme, resize the PNG (I use VSO Image resizer) and recompile the framework-res with the resized PNG's
Is that right ?
Thanks in advance for your help
PS : Sorry for my bad english

Plancton.fr said:
I just want to resize a lot of .9.PNG's !
I am making a theme who is for hdpi devices and I want to convert to mdpi devices (our devices) so I need to resize all the PNG's !
I think I must decompile the framework-res from the theme, resize the PNG (I use VSO Image resizer) and recompile the framework-res with the resized PNG's
Is that right ?
Thanks in advance for your help
PS : Sorry for my bad english
Click to expand...
Click to collapse
First, our devices are LDPI not MDPI
and for the .9.png click here

Héhé ldpi yes ! But in the framework-res from Slade ROM the PNG's are in "drawable-mdpi", my mistake
And I search on google "resize .9.png" and not "edit .9.png", my second mistake x)
Thanks
So I think I can decompile the apk whith "Apk manager", resize the PNG's, and recompile. Is thaht ok ?

go here and choose download

azadtaufiq said:
go here and choose download
Click to expand...
Click to collapse
That didnt help...patches were not restored on resizing

sunny.xgcp
found a bug and was not allowed to post in dev thread

You should search for 9patch-resizer on code dot google got com. (Don't have enough rights to post an url)
I made this tool that is basically what you are looking for

Why resize them in the first place?
If you have hdpi images you want to use on a mdpi rom, just put them in a 'drawable-mdpi' folder. Android will resize them automatically. You could have a, for example, 100x100 image and it will be shrunk by the system to the right dimensions.

Related

creating theme for arc

hello
im new in android world and specialy xperia arc
i know how to install roms and other stuff and i have so many problems with my phone and i solved them like battery 0% and ...
i have a question about how can i make my own theme , i wanna customize everything status bar buttons icons and ... i don wanna use go luncher and sth like that.
i wanna do everything from zero to hero
please let me know what should i do and if there is a link can u refer me to it please thanks a lot. and god bless you
i wanna create a theme to make my arc looks like xperia x8 , u know i love the corner buttons of x8
thanks again
theme is base on
- system/framework/framework-res.apk
- system/framework/SemcGenericUxpRes.apk
- system/app/SystemUI.apk
- system/app/Home.apk
basic , You can change all *.png to your style , open & extract apk using winRAR and replace old file using winRAR again.
- save change edited apk
- copy new edited apk to internal memory (/xxx /yyy /root) , change file permission (rw-r--r--) , move file to overwrite old apk target
-always change files permission! before paste & overwrite!! (if not , bootloop!!)
- about Home.apk is Xperia main launcher , before you overwrite apk you must change default launcher to 3rd party launcher (if not , may be bootloop!!)
EDIT:
Delete please, other guy was faster
Sent from my iPad 2 using Tapatalk
Is it possible to change the black fields on my sreenshot? I want them to be at least lighter - example - light grey... I used UOT Kitchen to make my own theme but this can not be changed with it... So, does anybody know what files to change to change that black fields?
Thanks in advance...
Ninolina said:
Is it possible to change the black fields on my sreenshot? I want them to be at least lighter - example - light grey... I used UOT Kitchen to make my own theme but this can not be changed with it... So, does anybody know what files to change to change that black fields?
would also appreciate help on this and also if anyone knows how to change the colour of the white text and grey icons in attached screenshot
Click to expand...
Click to collapse
XperienceD said:
This GUIDE was wrote for the X10, but some of the same principles apply and should help to get you started modding the U.I of your Phone.
Click to expand...
Click to collapse
..........

porting hdpi ROM to mdpi

I recently started to mess with android system. I learned how to port ROM's between devices with the same screen size. The problem popped up when I tried to port a NEO V ROM to mini. I got it running, but the screen was was too big for the mini.
Can anyone give me a clue on how to port screen size please?
I've searched google, but no success on porting different screen size ROM's
All app images and framework are of different size. You will have to resize every image. A lot of work.
Via Tapatalk 2.0 on ICS
I advice you to use faststone resizer, instead of resizing image by image..
Sent from my WT19i using XDA
Thanx for replying!
I'm just starting to understand how android works so any help is welcome
I know how to open apk's and resize images in them. That's no problem.
But as far as I know everything in the framework folder is java .jar?
Any hint on how to to resize framework?
i think u must pm to ExPeacer how to port hdpi to mdpi
You may find this helpful:
http://forum.xda-developers.com/showthread.php?t=785864
iONEx said:
I recently started to mess with android system. I learned how to port ROM's between devices with the same screen size. The problem popped up when I tried to port a NEO V ROM to mini. I got it running, but the screen was was too big for the mini.
Can anyone give me a clue on how to port screen size please?
I've searched google, but no success on porting different screen size ROM's
Click to expand...
Click to collapse
you can port mini framework to ported rom.may you change density display to 160?
thanx for helping!
Changed "ro.sf.lcd_density=" from 240 to 160 and it worked alright
Then I replaced hdpi system apk's with the same mdpi system apk's for now. All working ok
As for unique system apk's, I'll resize png files with image scaler.
iONEx said:
thanx for helping!
Changed "ro.sf.lcd_density=" from 240 to 160 and it worked alright
Then I replaced hdpi system apk's with the same mdpi system apk's for now. All working ok
As for unique system apk's, I'll resize png files with image scaler.
Click to expand...
Click to collapse
good luck!
Can you write tutorial how you ported the rom from arc/neo to mini???
Please
singh_dd93 said:
Can you write tutorial how you ported the rom from arc/neo to mini???
Please
Click to expand...
Click to collapse
or even between mdpi would be great, asked a lot of people, no one gives clear sets of instructions, just pieces
something organized would be greatly appreciated
gandhar said:
or even between mdpi would be great, asked a lot of people, no one gives clear sets of instructions, just pieces
something organized would be greatly appreciated
Click to expand...
Click to collapse
Same here i posted a thread as well but no one replied
Sent from my Xperia Mini using XDA
I'm definitely no dev, but I'll try to put something together for you
It's nothing more than replacing/overwriting files&folders.
This is what worked for me. I'm no expert, I figured this on my own. So it
may or may not be all correct. Feel free to correct me, I'm happy to learn
If you port mini/minipro/live/active, you don't need to replace camera
drivers or bootanim since they have the same cam and bootanim res.
If you're porting NEO ROM, you have to replace camera or it won't work.
These are folder/files you have to copy from mini ROM to ROM you're porting:
in /etc replace:
/firmware folder
ppp folder
wifi folder
sensors.conf
hw_config.sh
pre_hw_config.sh
vold.fstab
in /usr replace:
keychars folder
keylayout folder
[it's for hard and soft keys]
in /system/lib replace:
/hw folder
[contains the files which control the sensors and lights such as GPS and
the accelerometer]
>>>build.prop<<<
You have to change ALL MT11, SK17, ST17 etc. entries to ST15i.
Also replace codenames i.e. mango to smultron.
It's best to have a mini build.prop side by side and just do some
copy/pasting
-------------------NEO V [HDPI to MDPI only]-------------------
-CAMERA driver-
in /usr/semc replace:
camera folder
/lib/
libarccamera.so
libcamera.so
libcameraservice.so
libcamera_client.so
libCaMotion.so
liboemcamera.so
libseccamera.so
libseccameraadaptor.so
Replace bootanimation in /media
>>>APK replace<<<
If porting NEO V to mini (hdpi to mdpi), you have to replace some APK's in
/system/app.
Replace only SAME APK's from mini ROM to NEO V ROM.
That's what I did anyway.
All other apk's you have to resize to mdpi.
You can do it the hard way and resize ALL png's inside the apk's to mdpi.
I just replaced those same files and that's it. I was testing anyway.
If you don't do it, you'll have a hard time with apps since they'll be too
big for mini screen.
Also for HDPI to MDPI, find this line "ro.sf.lcd_density=" and change it
from 240 to 160
Or you'll boot into a seriously wrong sized screen
-------------------NEO V [HDPI to MDPI only]-------------------
That's it!
I hope I haven't forgot something
If you find this useful, I may post it as a thread....
i had also figured out to port roms from MDPI to MDPI but was unable to port from HDPI to MDPI.
Thanks a lot for great info.
how did u converted hdpi to mdpi apk...
instead of png ..
what else is needed to be convert ...
xml files?
if yes how
vermilion871 said:
how did u converted hdpi to mdpi apk...
instead of png ..
what else is needed to be convert ...
xml files?
if yes how
Click to expand...
Click to collapse
I didn't convert at all it would take to long.
I just replaced the apk's with identical, but MDPI sized apk's from another ROM.
Most ROMs have similar sys apps. If not take from two ROMs...
Sent from my ST15i
thank u ..
well i m trying to port miuiv4 to my mdpi device...
please guide... some tips ...
I'm no real dev
I'm just experimenting. So I think you might get much better help from like expeacer or ramezzidane. They're MIUI devs.
Also kamarush seems to be willing to help a lot of folks. So you might ask him too, he's a great dev
MIUI dev threads:
http://forum.xda-developers.com/showthread.php?t=1724798
http://forum.xda-developers.com/showthread.php?t=1578109
Also how to port MIUI guides:
http://www.modaco.com/topic/352934-auto-limpot-a-tool-for-automatic-miui-porting/
http://www.modaco.com/topic/341986-how-to-port-miui/
http://forum.xda-developers.com/showthread.php?t=1499411
hope that helps a bit
thanks a lot..

[Q]How can i resize .9.png's in a miui theme?

Hi to all... how can I resize .9.png's in a miui theme .. ?because we have now miui mdpi but for its themes i need to resize .9.png's in mdpi ... and i don''t know how to do this =( because when .9.png's are in an apk .. it's simple.. just decompile and recompile .. but .. when they are in a theme .. how can i do?
Frankin96 said:
Hi to all... how can I resize .9.png's in a miui theme .. ?because we have now miui mdpi but for its themes i need to resize .9.png's in mdpi ... and i don''t know how to do this =( because when .9.png's are in an apk .. it's simple.. just decompile and recompile .. but .. when they are in a theme .. how can i do?
Click to expand...
Click to collapse
its simply, actually miui theme is a zip file just like apk..... rename it to @@@@.zip. frm .tmz then u will b able to open zip, take apk out, edit, rplace....
Dont forgot to hit thanks....

[Q] Changing emotion on i9100??

i replaced with some emotions png files on framework-res.apk emotions ( res/drawablw-hdpi inside) but it didn't work again i check whether framework-res includes my new emos' but yes it has my new emotion png's. But when i text to someone still i got stock emotions .. y? can some one tell me how to replace original files of emos' (I used http://forum.xda-developers.com/showthread.php?t=1578854 to decompile and compile framework-res. because i need CRT effect too. i got CRT effect but not emotions )
help me please
Thankx
sasadara said:
i replaced with some emotions png files on framework-res.apk emotions ( res/drawablw-hdpi inside) but it didn't work
Click to expand...
Click to collapse
You need to change the emoticons in \system\app\Mms.apk\res\drawable-hdpi
Also, it's not necessary to decompile & recompile to do this.
Either just drop the new pngs into Mms.apk using 7-Zip or make a flashable vrtheme - there's some here you can modify.
Spannaa said:
You need to change the emoticons in \system\app\Mms.apk\res\drawable-hdpi
Also, it's not necessary to decompile & recompile to do this.
Either just drop the new pngs into Mms.apk using 7-Zip or make a flashable vrtheme - there's some here you can modify.
Click to expand...
Click to collapse
+1
ahh i got it
Thank you

[Q]How to resize HDPI/MDPI 9/PNG IMAGE To LDPI? PLEASE HELP!!!

Hi guys, can you teach me how to resize 9/png images(HDPI/MDPI) to LDPI SIZED???
PLEASE HELP!!! Dont Snob me!!!​
Renz29 said:
Hi guys, can you teach me how to resize 9/png images(HDPI/MDPI) to LDPI SIZED???
PLEASE HELP!!! Dont Snob me!!!​
Click to expand...
Click to collapse
Decompile apk using apktool. Extract the .9.png that you want to resize. Open it up in Paint.NET (or any photo editing software) and hit on resize. Then choose the option "By Percentage:" and enter 66%. If you are porting from MDPI to LDPI, do this only once. If you are porting from HDPI to LDPI, do the step twice, i.e., resize it to 66% twice. If you're doing it from XHDPI, do it thrice. Hit save and replace the original with the edited.
Simple, no?

Categories

Resources