DisplayMetrics dm = new DisplayMetrics();
dm=getResources().getDisplayMetrics();
int width=dm.widthPixels
int height=dm.heightPixels
W shoud be 480 and H shoud be 854 But for me W is 320 and H is 536.What am I
doing wrong???
--
Cary
--
You received this message because you are subscribed to
Make sure that in the manifest, you either have:
uses-sdk
android:minSdkVersion=4 /
or
supports-screens
android:smallScreens=true
android:normalScreens=true
android:largeScreens=true
android:anyDensity=true /
-- Kostya
22.03.2011 13:01, CaryWang пишет:
DisplayMetrics dm = new
if i don't want add code to XML.Are there any other method.
2011/3/22 Kostya Vasilyev kmans...@gmail.com
Make sure that in the manifest, you either have:
uses-sdk
android:minSdkVersion=4 /
or
supports-screens
android:smallScreens=true
android:normalScreens=true
3 matches
Mail list logo