Posted by: pierrot | on April 2, 2015
Posted in | 3 Comments » Tags: Masaoka Taro
< ![CDATA[
You need to use to multiply dpi with the “density” field found in the DisplayMetrics class.
LL.getContext().getResources().getDisplayMetrics().density may work (not tested)
]]>
Thanks!
Another way: http://developer.android.com/reference/android/util/TypedValue.html#applyDimension%28int,%20float,%20android.util.DisplayMetrics%29
Your email address will not be published. Required fields are marked *
Comment
Name *
Email *
Website
< ![CDATA[
You need to use to multiply dpi with the “density” field found in the DisplayMetrics class.
LL.getContext().getResources().getDisplayMetrics().density may work (not tested)
]]>
< ![CDATA[
Thanks!
]]>
< ![CDATA[
Another way: http://developer.android.com/reference/android/util/TypedValue.html#applyDimension%28int,%20float,%20android.util.DisplayMetrics%29
]]>