Code Monkey home page Code Monkey logo

androiddrawablefactory's Introduction

Android Drawable Factory Mentioned in Awesome Java

An application to create appropriate Drawable resources for you Android app.

Installation

You can choose:

Usage

To open the application:

  • On Windows: double click on run.bat

  • On Gnu/Linux - OSX:

    • Open a terminal session
    • Type chmod +x run.sh
    • launch run.sh
  • Once opened, just click onto the image on the left of the windows and choose the drawable (.jpg or .png) you want to convert

Main window

  • Then click on browse and select your android project res folder's path.
  • In source density choose the density your image is drawn at
  • Select which density you want to create clicking on the checkboxes in the bottom of the window
  • click make and see the magic! :-)

Credits

Author: Tiziano Basile (aka Tizionario)

androiddrawablefactory's People

Contributors

basteez avatar gabrielemariotti avatar mjafarmashhadi avatar palazzem avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

androiddrawablefactory's Issues

Unable to find resources in imageCanvas.setIcon()

Note: I don't know if this issue only occurs in OSX and IntelliJ.

When creating a new ImageIcon the path is: /res/placeholder.png but I have /resources/res/placeholder.png. Fixing the path isn't sufficient and I require to put all resources inside src folder.

If this is a verified issue, I can provide a pull request. Otherwise just mark this as invalid :)

Tranparent pixel become black

I select my app icon(ic_launcher.png), after convert all transparent pixels become black pixels, include the origin one.
ic_launcher

Runtime errors

I got the same error that the first user got but I corrected this by setting the java compiler to 1.6 and modifying the code for the try/catches.

In the folder i downloaded and unzipped I couldn't find the run.sh file

I ran it manually in eclpse , the ui box appears about when i navigate an image the image doesn't get selected. Please advise.

Request : batch mode

Hi,

love the idea and the program! But what would be handy is that if you could select a list of images ( which are assumed to be the same source dpi that the user selects ), instead of one, that will be processed. That would make it easier if you have a lot of resources, instead of going through them one by one.

Bonus points if it could be made multi-threaded and you can specify the amount of threads/cores to use :)

it gives an error

I downloaded compiled version 1.1. But when i run the sample, it gives me the error

$ ./run.sh
Exception in thread "main" java.lang.UnsupportedClassVersionError: com/tizianobasile/androiddrawablefactory/AndroidDrawableFactory : Unsupported major.minor version 51.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(ClassLoader.java:637)
at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.