我得到的图像从URL,但它与屏幕不作为浏览器的表现拟合...好心help..i试图everything..this网址 “http://i.imgur.com/DvpvklR.png” 这里是图像如何使URL图像适合Android屏幕?
如果我们运行在浏览器的URL,我们可以看到谓我的设备上对其稍加upside..i希望它看起来完美的我的设备
这里是我的xml文件:
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1"
android:orientation="vertical">
<LinearLayout
android:id="@+id/linearLayout1"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="0.7">
<ImageView
android:id="@+id/ms1"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:scaleType="fitXY"
android:src="@drawable/main1" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="0.3">
<ImageView
android:id="@+id/ms2"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight=".5"
android:scaleType="fitXY"
android:src="@drawable/pl2" />
<ImageView
android:id="@+id/ms3"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight=".5"
android:scaleType="fitXY"
android:src="@drawable/l1" />
</LinearLayout>
</LinearLayout>
</RelativeLayout>
是否要将图像设置为屏幕的背景图像,并将其他图像设置为背景图像? – fluffyBatman
不是这是第一张图片其他下面的图片是第2张和第3张 –
没有背景图片其主屏幕图片 –