uicolor - How to Get Android System Colors -


i've seen references on how set system colours, need find out how them - how find out are?

on samsung galaxy s example, tab views, listview highlights when select item, , summary text line on preference screen blue.

there many apps immitate style , want same. cannot hard code , set colour blue, other handsets use different colours.

the question is, there way programmatically find out colour preference screen summary line, tabs, or listview selections are, can set against textview elsewhere in app?

how android system colours?

there answer question, not 1 wanted hear. there no way reliably this. "selection color" part of nine-patch image, provided on platform specific basis. use standard orange color, (sense) uses green, , others use red. exhaustive list of these might able create mapping hardware color, not effective because new hardware comes out time, , of these phones allow sense uninstalled.

the real thing can make buttons consistent within application itself, hard enough task itself. if have have custom item selection color (which common enough), advice copy button resources platform of choice (i default sdk resources myself) , manually set them throughout application. way same no matter platform on, , match custom views. note require more buttons. dialogs , menus need modified, possible, hard.

really flaw in way android designed, , causes lot of grief. wish had better answer you, think best we've got.


Comments

Popular posts from this blog

android - Spacing between the stars of a rating bar? -

aspxgridview - Devexpress grid - header filter does not work if column is initially hidden -

c# - How to execute a particular part of code asynchronously in a class -