我仍在努力用Flashbuilder将Java/Eclipse中的应用程序构建转换为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视图中定义它。
发布于 2012-01-22 01:57:17
看看这个所以问题。
您需要修改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。
https://stackoverflow.com/questions/8848750
复制相似问题