2012-03-29 58 views

回答

0

對於寬度和高度的變化,您可以將該自定義視圖放置在線性佈局中,並更改線性佈局屬性,如下所示。

<LinearLayout 
     android:layout_width="fill_parent" 
     android:layout_height="fill_parent" 
     android:layout_marginRight="50dp" 
     android:layout_marginLeft="20dp" 
     android:layout_marginTop="20dp" 
     android:layout_marginBottom="20dp" 
     android:layout_weight="1" 
     android:orientation="vertical" > 

     <com.mobinius.hungama.curl.CurlView 
      android:id="@+id/curl" 
      android:layout_width="fill_parent" 
      android:layout_height="fill_parent" /> 

    </LinearLayout> 

背景顏色

mCurlView.setBackgroundColor(0xFF202830); 
相關問題