我的应用程序有一个启动画面,在小设备上看起来不错,但在大型平板电脑(模拟器)上看起来很糟糕。因此,我将背景更改为wrap_content
。但是它依然靠在屏幕的一侧,有人可以告诉我如何将背景图像居中吗?这是我的splash.xml-
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="vertical"
android:background="@drawable/splash">
</LinearLayout>