D
D
dom1n1k2012-08-28 02:00:03
Android
dom1n1k, 2012-08-28 02:00:03

Scope of dp and sp units in Android?

I looked here in between times in the Android SDK and became interested in the units of measurement dp and sp.
developer.android.com/guide/topics/resources/more-...
Did I understand correctly that these units are only for android applications and cannot be used when laying out web pages?
And then I riveted a test mini-page, opened it on a smartphone with ~ 5 browsers - they interpret the size of the text who is in the forest, who is firewood :(
It is clear that dp / sp are not included in the CSS specification, but probably it could be expanded in androbrowsers support for these units as well (with fallback to regular pixels, of course)?..
Maybe they are supported in some mode enabled by a special doctype or media query (I'm fantasizing)
?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
silentnuke, 2012-09-05
@silentnuke

this units are for android applications only.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question