2012-01-13 65 views
0

我仍然努力將Java/Eclipse中的應用程序構建轉換爲使用Flashbuilder的Flex/Actionscript。 現在我無法找到我應該如何實現圖像來覆蓋洞屏幕。 在我目前的軟件,我用相對佈局和如何使用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

看看這個SO question

您需要修改的Image spark tag (as documented here).

<s:Image scaleMode="BitmapScaleMode.STRETCH" x="0" y="0" height="100%" width="100%" source="@Embed('assets/example.jpg')"/> 

的scaleMode財產你可與BitmapScaleMode.STRETCH,BitmapScaleMode.ZOOM,或BitmapScaleMode.LETTERBOX玩。