簡體   English   中英

啟動畫面中的圖像視圖大小

[英]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.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM