Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

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

OP ~RoN~

3rd April 2013, 09:05 PM   |  #1  
OP Junior Member
Thanks Meter: 73
 
26 posts
Join Date:Joined: Apr 2013
Donate to Me
More
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
Last edited by ~RoN~; 23rd April 2013 at 01:34 PM.
The Following 60 Users Say Thank You to ~RoN~ For This Useful Post: [ View ]
3rd April 2013, 09:45 PM   |  #2  
GEKTHEBOSS's Avatar
Senior Member
Thanks Meter: 2,983
 
1,996 posts
Join Date:Joined: Mar 2012
Donate to Me
More
R: [TOOL] Android Drawable Resizer Tool
Yeah what i need for my app mods!!
4th April 2013, 09:18 AM   |  #3  
cleverior.ipul's Avatar
Senior Member
Flag Bogor
Thanks Meter: 366
 
431 posts
Join Date:Joined: Nov 2012
More
Is this tool cannot be run on windows xp?

4th April 2013, 03:26 PM   |  #4  
OP Junior Member
Thanks Meter: 73
 
26 posts
Join Date:Joined: Apr 2013
Donate to Me
More
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
Last edited by ~RoN~; 23rd April 2013 at 01:33 PM.
The Following User Says Thank You to ~RoN~ For This Useful Post: [ View ]
6th April 2013, 03:45 AM   |  #5  
rjunraj's Avatar
Senior Member
surat
Thanks Meter: 316
 
1,108 posts
Join Date:Joined: Apr 2012
More
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
6th April 2013, 07:47 AM   |  #6  
GEKTHEBOSS's Avatar
Senior Member
Thanks Meter: 2,983
 
1,996 posts
Join Date:Joined: Mar 2012
Donate to Me
More
Need framewoek 3 or 3.5?
6th April 2013, 09:41 AM   |  #7  
OP Junior Member
Thanks Meter: 73
 
26 posts
Join Date:Joined: Apr 2013
Donate to Me
More
Quote:
Originally Posted by rjunraj

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

Need framewoek 3 or 3.5?

Need framework 2
The Following User Says Thank You to ~RoN~ For This Useful Post: [ View ]
6th April 2013, 11:44 AM   |  #8  
OJ's Avatar
Senior Member
Flag Pune
Thanks Meter: 466
 
468 posts
Join Date:Joined: Dec 2011
Donate to Me
More
GREAT!
Great work! Best thing is .9 png support. Very good...
I will try it tomorrow..
10th April 2013, 08:33 AM   |  #9  
OP Junior Member
Thanks Meter: 73
 
26 posts
Join Date:Joined: Apr 2013
Donate to Me
More
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: [ View ]
12th April 2013, 04:30 AM   |  #10  
santod040's Avatar
Recognized Developer / Recognized Contributor
Flag NorCal
Thanks Meter: 10,680
 
7,164 posts
Join Date:Joined: Nov 2008
Donate to Me
More
Let me know if you need more: CRASH DUMP (temp file)
Crashes when trying to run.
Code:
<Parameter8>System.IO.FileNotFoundException</Parameter8>
Thank you for your efforts on this handy tool.

Post Reply Subscribe to Thread

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

Advanced Search
Display Modes