Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Dashboard Icon size

I am developing a little application in android by following the Android UI Patterns and I am facing a little difficulty about the patterns used to build the dashboard. My question is the following : what should be the size of the icons used to build dashboard according to differents densities. In the android SDK documentation, it is not described.

King Regards.

like image 371
Harry Coder Avatar asked Dec 22 '25 03:12

Harry Coder


1 Answers

If it helps, reference the DashbordLayout class in the Google I/O schedule app at http://code.google.com/p/iosched The class itself is in src/com/google/android/apps/iosched/ui/widget/DashboardLayout.java

An example of how it's used is seen in:

  • res/layout/fragment_dashboard.xml for the dashboard itself and the buttons inside. Note the style attribute set
  • res/values/styles.xml for an example of the style used
  • res/values/dimens.xml for an example
  • res/values/colors.xml for the color they used (obviously you can use any)
  • res/drawable/home_btn_*.xml for examples of a selector related to the various states of the button to reference different drawable files
  • res/drawable-hdpi/home_btn_*.png for the actual png files that are used, which tend to be 144x96

I myself had no idea so much was involved to make it look just right, but this made things so much easier once I saw how to properly make it.

like image 178
Jouva Moufette Avatar answered Dec 24 '25 21:12

Jouva Moufette



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!