我仍然在努力将我在Java / Eclipse中的应用程序构建转换为使用Flashbuilder的Flex / Actionscript。 现在我找不到如何实现图像来覆盖孔屏幕。 在我当前的应用程序中,我使用了相对布局和
<ImageView
android:id="@+id/img"
android:scaleType="centerCrop"
android:layout_width="fill_parent"
android:layout_height="0dip"
android:layout_above="@id/bottom"
android:layout_below="@id/rubrik"
/>
但是我找不到如何在Flex视图中定义它。
答案 0 :(得分:0)
查看此SO question。
您需要修改Image spark tag (as documented here).
的 scaleMode 属性<s:Image scaleMode="BitmapScaleMode.STRETCH" x="0" y="0" height="100%" width="100%" source="@Embed('assets/example.jpg')"/>
您可以使用BitmapScaleMode.STRETCH,BitmapScaleMode.ZOOM或BitmapScaleMode.LETTERBOX。