Android Screen density qualifiers

81 views Asked by At

I understand how android picks density bucket.This answer explains how android picks density buckets.

My question is why does android uses buckets instead of using the linear relation?

For example if device density is 232 then it belongs to its closest density bucket, hdpi bucket(240dpi) and the scaling factor is 1.5px/dp which we get from 240/160 = 1.5 and if we would have used linear relation then scaling factor would be 232/160.

Won't we have better precision with linear relation as compared to buckets?

0

There are 0 answers