Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,736,888 Members 53,378 Now Online
XDA Developers Android and Mobile Development Forum

[TOOL][WINDOWS][.PNG][.9.PNG] Android Drawable Resizer Tool

Tip us?
 
~RoN~
Old
(Last edited by ~RoN~; 23rd April 2013 at 12:34 PM.)
#1  
Junior Member - OP
Thanks Meter 73
Posts: 26
Join Date: Apr 2013

 
DONATE TO ME
Prompt [TOOL] Android Drawable Resizer Tool

Hi!

Can you count how many times you created a drawable for your app?
The answer is probably NO.
You opened your favorite image-editing software, designed a beautiful drawable, saved, and now of course, there's the simple but annoying thing, of resizing the drawable to fit every density.
No more! Android Drawable Resizer, replaces you in the last annoying part.
All you have to do, is to choose a drawable, tell the software which density does it belong to, choose the the res folder, and press Go!. The software will know how and where to place each resized drawable, with the correct name.


Requirements:
If you don't have a .NET Framework installed, download and install this:
http://msdn.microsoft.com/en-us/vstudio/aa496123

Instructions:

1. Download the zip file.
2. Extract it including the .dll file.
3. Run the .exe file.
*Note: Both files need to be in the same place in order to activate the program!
4. Choose the source drawable density
5. Choose the drawable you want to resize
6. Choose which densities you want to export to
7. Choose the destination folder. The program will create a folder for each density selected (if the folder doesn't exist), and then insert the resized drawables to their right place
8. Press Go!
9. Enjoy!
10. Hit the Thanks button, or even donate for my work

Current Version: 1.1.3.0
From XDA: Android Drawable Resizer 1.1.3.0.zip
Or from dev-host - Here

Screenshot:



To do:

--->Change the selected drawables gallery (If you know of a free control for that, please P.M me) In progress
--->Adding the abillity to decompile-->resize-->recompile .9.png files In progress

--->Translation to more languages Not in the next version

Credits:
--->ComponentFactory Krypton 4.4.0 great .NET library
The Following 60 Users Say Thank You to ~RoN~ For This Useful Post: [ Click to Expand ]
 
GEKTHEBOSS
Old
#2  
GEKTHEBOSS's Avatar
Senior Member
Thanks Meter 2982
Posts: 1,995
Join Date: Mar 2012

 
DONATE TO ME
Default R: [TOOL] Android Drawable Resizer Tool

Yeah what i need for my app mods!!
 
cleverior.ipul
Old
#3  
cleverior.ipul's Avatar
Senior Member
Thanks Meter 302
Posts: 378
Join Date: Nov 2012
Location: Bogor
Is this tool cannot be run on windows xp?

 
 
~RoN~
Old
(Last edited by ~RoN~; 23rd April 2013 at 12:33 PM.)
#4  
Junior Member - OP
Thanks Meter 73
Posts: 26
Join Date: Apr 2013

 
DONATE TO ME
Changelog:

Version 1.1.3.0
[+]Fixed all known bugs
[+]Added xxhdpi density
Version 1.1.2.3
[+]Fixed bug of pictures being resized from a wrong size in some circumstances.
Version 1.1.2.2
[+]Solved the exception thrown when the server CPU limit was reached
[--]Replaced the drawables gallery because I didn't know the previous one is not free. Sorry!
Version 1.1.2.1
[+]Added multiple-choice exporting
[+]Changed manual mode behavior
[+]Added in-app update, so you won't need to download each version from xda
[+]Application crash problem fixed.
Version 1.1.1.0
[+] Added .9.png files support
[--] Removed support for jpg , gif , bmp files. Maybe will return in the future.
Version 1.1.0.0
Initial Release
The Following User Says Thank You to ~RoN~ For This Useful Post: [ Click to Expand ]
 
rjunraj
Old
#5  
rjunraj's Avatar
Senior Member
Thanks Meter 304
Posts: 1,104
Join Date: Apr 2012
Location: surat
can v somehow resize .9.png files ?
and one more question
i am making an app everything is fine ,but if i use this app in other phones the ui remains the same size
is there any way to change height and width in xml ,all at same time ,
thanks in advance

Sent from my MI355 using Xparent Cyan Tapatalk 2
 
GEKTHEBOSS
Old
#6  
GEKTHEBOSS's Avatar
Senior Member
Thanks Meter 2982
Posts: 1,995
Join Date: Mar 2012

 
DONATE TO ME
Need framewoek 3 or 3.5?
 
~RoN~
Old
#7  
Junior Member - OP
Thanks Meter 73
Posts: 26
Join Date: Apr 2013

 
DONATE TO ME
Quote:
Originally Posted by rjunraj View Post
can v somehow resize .9.png files ?
and one more question
i am making an app everything is fine ,but if i use this app in other phones the ui remains the same size
is there any way to change height and width in xml ,all at same time ,
thanks in advance

Sent from my MI355 using Xparent Cyan Tapatalk 2
Yes, I have just created a new version that supports .9.png files.
As for your second question, you shouldn't hardcode sizes in the layout file. You should use different drawables for each density.
You can use my application to do this easily, but you should also read this entry in the android API guides:
Supporting Multiple Screens
Quote:
Originally Posted by GEKTHEBOSS View Post
Need framewoek 3 or 3.5?
Need framework 2
The Following User Says Thank You to ~RoN~ For This Useful Post: [ Click to Expand ]
 
OJ
Old
#8  
OJ's Avatar
Senior Member
Thanks Meter 466
Posts: 464
Join Date: Dec 2011
Location: Pune

 
DONATE TO ME
Default GREAT!

Great work! Best thing is .9 png support. Very good...
I will try it tomorrow..
 
~RoN~
Old
#9  
Junior Member - OP
Thanks Meter 73
Posts: 26
Join Date: Apr 2013

 
DONATE TO ME
Soon I will upload a version which supports automatic bug reporting. Please if the application crashes, send me the details
The Following User Says Thank You to ~RoN~ For This Useful Post: [ Click to Expand ]
 
santod040
Old
#10  
santod040's Avatar
Recognized Developer / Recognized Contributor
Thanks Meter 7323
Posts: 5,663
Join Date: Nov 2008
Location: NorCal

 
DONATE TO ME
Let me know if you need more: CRASH DUMP (temp file)
Crashes when trying to run.
Code:
Select Code
<Parameter8>System.IO.FileNotFoundException</Parameter8>
Thank you for your efforts on this handy tool.
Current Devices: HTC Thunderbolt | HTC Droid DNA | HTC One | HTC One (2014)


Follow me on Twitter
ULTIMATE WALLS WVGA Wallpaper Collection
Donations always appreciated! Never required!



Tags
drawable, resize image, tool, windows
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes