
Medium density (160dpi) is the default density. Ideally bitmaps will be generated for the various screen densities possible on Android devices. These can be exported directly to the relevant drawable folder in the Android project. The bitmap export format is Portable Network Graphics (PNG).

Here the buttons were exported as 60 by 60 pixel images. option is used to generate the correctly sized bitmaps (using the Width or Height boxes). For an SVG file the Inkscape Export PNG Image. Alternatively bitmaps can be generated directly from the Open Clip Art Library, if a suitable image is found that requires no changes. If an image is created, or an SVG file opened, in Inkscape then bitmaps for an ImageButton can be exported. The three images to be used can be built in Inkscape, or alternatively they are available from the Open Clip Art Library as a Scalable Vector Graphic (SVG) file: Image

Those that are not familiar with working in Inkscape can use the built in (under the Help menu) and online tutorials at the Inkscape Tutorials Blog.įor this article an ImageButton is used to represent Play (or Start, or Go). It makes it easier to produce the variety of sizes needed for multiple screen densities. When creating graphics for apps work with vector images instead of raster (bitmap) images.

ImageButton Graphics with Inkscape ExampleĪ good User Interface should be intuitive and attractive.
