我有一個啓動屏幕,它在屏幕的中心顯示Imageview
中的應用程序徽標。顯示距離屏幕頂端30%距離處的Imageview android
我需要從屏幕頂部顯示imageview
在距離30%,因此,在屏幕下方的70%看上去是空的
我有襯墊的想法,但不知道如何與此條件
<ImageView
android:id="@+id/img_splashlogo"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:contentDescription="SplashImage"
android:layout_margin="20dip"
android:src="@drawable/app_logo_splash" />
我已經有了線性佈局.in xml ..我可以使用它還是需要在java代碼中創建? – 2014-11-25 12:48:10
你需要在想要的java文件中使用此代碼鏈接到Splash屏幕視圖 – 2014-11-25 12:52:54
或者還有一件事情首先嚐試在圖像頂部添加和隱藏視圖,然後在可見圖像頂部添加0.3重量通過android:visibility =「invisible」和android:weight =「0.30」來查看你的飛濺圖像 – 2014-11-25 12:56:50