[英]image view size in splash-screen
我正在為我的應用程序創建一個啟動畫面,但我有一個問題:我把圖像放在drawable中並不占用智能手機的整個屏幕。 怎么解決?
這是我的xml:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical" android:layout_width="fill_parent"
android:layout_height="fill_parent">
<RelativeLayout android:id="@+id/RelativeLayout01"
android:layout_height="fill_parent"
android:layout_width="fill_parent"
android:gravity="fill"
android:layout_gravity="center">
<ImageView android:id="@+id/ImageView01"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:src="@drawable/fundo" />
</RelativeLayout>
</LinearLayout>
將android:scaleType="fitXY"
到ImageView
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.