Yes, you can use 0.5dp or whatever decimal you want, but be careful. When your dp is converted to pixels, they are multiplied by the density of the display logic and rounded.
If your dp = 0.1 than for hdpi display, you get (int) (0.1 * 1.5 + 0.5) = 1px. (1.5 - logical density for hdpi display)
If your dp = 0.5 to display mdpi you get (int) (0.5 * 1 + 0.5) = 1px (1 is the logical density for displaying mdpi)
Leonidos
source share