Android Question Minimum pixels for views?

Graeme Tacon

Member
Licensed User
Longtime User
Is there a minimum number of pixels that should be used for each view (i.e. for a seekbar, minimum is 10pixels height) ?

I'm using the holo theme and adding views with code (doesn't seem to work correctly using the designer). On my SGS3, all the views look great, but on other devices, they don't look so good. The seekbar is a good example - the 'circle' is squared off top and bottom and doesn't sit in the centre of the 'line'.

I am adding them using %x and %y for height and width, so I would have thought that should be ok.
 

Graeme Tacon

Member
Licensed User
Longtime User
I was using the Holo dark theme. Panels added in the designer come up as 'white', whereas, adding them via code, they appear black (which is what I wanted).

In holo light theme, panels are the same colour, added by designer or code.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…