【发布时间】:2015-01-23 11:24:46
【问题描述】:
我有一个启动画面,它在屏幕中心的Imageview 中显示应用程序徽标。
我需要在距离屏幕顶部 30% 的地方显示 imageview,这样底部 70% 的屏幕看起来是空的
我有关于 padding 的想法,但不知道如何在这种情况下使用 %( percent )
<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" />
【问题讨论】: