2012-12-07 50 views
3

我想實現動畫標識至少由RelativeLayout中的兩個ImageView組成。一個是徽標圖標,另一個是背後的「光線」。 「光線」可以是標誌的3倍。我希望能夠爲複合視圖設置尺寸(例如200dp x 200dp),並讓徽標伸展這個區域,並且光線超出它。可能嗎?兒童ImageView可以超過其父視圖組邊界嗎?

預先感謝您。

enter image description here

回答

0

是的,它可以!使用android:layout_marginLeft,android:layout_marginRight,android:layout_marginTopandroid:layout_marginBottom負值。雖然這有點破解。