2014-05-02 53 views

回答

2

我準備了一個簡單的黑客解決方案。 轉儲View並將您的View分配給它。

<View 
    android:id="@+id/view1" 
    android:layout_width="match_parent" 
    android:layout_height="0dp" 
    android:layout_centerHorizontal="true" 
    android:layout_centerVertical="true" /> 

<ImageView 
    android:id="@+id/imageView1" 
    android:layout_width="wrap_content" 
    android:layout_height="wrap_content" 
    android:layout_alignTop="@id/view1" 
    android:layout_centerHorizontal="true" 
    android:src="@drawable/ic_launcher" /> 

希望能幫助你...任何查詢,歡迎:)

+0

幹得好!它的作品,深思熟慮! –

相關問題