我们的项目在 540*960的手机上显示不了全屏,请问那位高手遇到这种情况?在之前的版本中,只有一个drawable,而2.1版本中有drawable-mdpi、drawable-ldpi、drawable-hdpi三个,这三个主要是为了支持多分辨率。
drawable- hdpi、drawable- mdpi、drawable-ldpi的区别:
(1)drawable-hdpi里面存放高分辨率的图片,如WVGA (480x800),FWVGA (480x854)
(2)drawable-mdpi里面存放中等分辨率的图片,如HVGA (320x480)
(3)drawable-ldpi里面存放低分辨率的图片,如QVGA (240x320)怎样才能合理的解决这个问题????
drawable- hdpi、drawable- mdpi、drawable-ldpi的区别:
(1)drawable-hdpi里面存放高分辨率的图片,如WVGA (480x800),FWVGA (480x854)
(2)drawable-mdpi里面存放中等分辨率的图片,如HVGA (320x480)
(3)drawable-ldpi里面存放低分辨率的图片,如QVGA (240x320)怎样才能合理的解决这个问题????
layout_width = "fill_parent"
layout_height = "fill_parent"
就一定能显示全屏.还有一点就是, 把你的图片放到相应的文件夹中, 就是, 如果你的图片是为480x800设计的,就应该放到drawable-hdpi中.
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical" android:background="@drawable/bg"
android:layout_width="fill_parent" android:layout_height="fill_parent">
<LinearLayout android:id="@+id/linearLayout1"
android:orientation="horizontal"
android:layout_height="wrap_content"
android:layout_width="wrap_content">
<ImageButton android:id="@+id/button_back"
android:layout_width="wrap_content" android:layout_height="wrap_content"
android:src="@drawable/tit2"></ImageButton>
<ImageButton android:id="@+id/imageButton1"
android:layout_width="wrap_content" android:layout_height="wrap_content"
android:src="@drawable/tit1"></ImageButton>
<ImageButton android:id="@+id/imageButton3"
android:layout_width="wrap_content" android:layout_height="wrap_content"
android:src="@drawable/tit3"></ImageButton>
<ImageButton android:id="@+id/imageButton4"
android:layout_width="wrap_content" android:layout_height="wrap_content"
android:src="@drawable/tit4"></ImageButton>
<ImageButton android:id="@+id/imageButton5"
android:layout_width="wrap_content" android:layout_height="wrap_content"
android:src="@drawable/tit5"></ImageButton>
</LinearLayout>
<WebView android:id="@+id/webView"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
/>
</LinearLayout>
非标准尺寸可能都进行了扩展。。
把你的图片放在这个文件夹内,试试
就可以了..
好像两者之间没有什么关系。
System.out.println("~~~~~~~~~~~~~~height = "+d.getHeight())你看下这个高度值 如果我没算错的话 应该是640 而不是960
官方给的答复是 没有声明 意味着 支持Android1.0