Android ';启动图像&x27;对于我的trigger.io,Galaxy Nexus上的应用程序太小
我已经为我正在开发的全新三星Galaxy Nexus Android应用程序设置了launchimageAndroid ';启动图像&x27;对于我的trigger.io,Galaxy Nexus上的应用程序太小,android,galaxy,trigger.io,Android,Galaxy,Trigger.io,我已经为我正在开发的全新三星Galaxy Nexus Android应用程序设置了launchimage "launchimage": { "android": "images/splash.png", "android-landscape": "images/splash.png" }, 当我启动应用程序时,图像显示 但它并没有像它应该的那样填满屏幕 图像为720x1280,这是银河系Nexus的本机分辨率 "launchim
"launchimage": {
"android": "images/splash.png",
"android-landscape": "images/splash.png"
},
当我启动应用程序时,图像显示
但它并没有像它应该的那样填满屏幕
图像为720x1280,这是银河系Nexus的本机分辨率
"launchimage": {
"android": "images/splash.png",
"android-landscape": "images/splash.png"
},
我如何才能显示一个大小合适的launchimage?您提供的信息很少,但据我所知 如果要在图像视图中设置图像 您应该使用Xml作为启动映像
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/launchimage"
android:orientation="vertical" >
<ImageView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:src="@drawable/launchimage"
android:scaleType="fitXY"
/>
<LinearLayout/>
or alertnativiely
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/launchimage"
android:orientation="vertical" >
<LinearLayout/>
或者警觉地
线性布局不是强制性的,您可以选择自己选择的布局原因似乎是设备像素比/像素密度导致图像缩小
示例:三星Galaxy Nexus的像素比为2()。如果您希望在横向模式下使用全宽启动图像(1280 x 720 px),则需要宽度至少为1280x2=2560像素的图像。对于纵向模式下的全宽,您需要宽度至少为720x2=1440像素这是高像素密度屏幕上的资源加载问题-在Trigger.io平台的v1.4.24中已修复
是的。这是我的相关问题-@KrisKrause对不起,这与我的问题有什么关系?“是的,它是”——是的,它是什么?感谢您的帮助,只是想正确理解您的建议:)您启动应用程序的方向是什么,以及您的launchimage是什么方向?如果你在纵向和横向方向上使用相同的launchimage,我们将不得不对其中一个方向进行缩小…@JamesBrady-我在纵向方向上启动。在巨大的黑色背景下,它看起来像一个小小的徽标。@KrisKrause我们只是按比例缩小徽标以适应屏幕-它一开始足够大吗?不过,关于程序化方向修正的要点是:我们也会这么做。