0
我的問題是,我在我的XML文件中使用了一個自定義視圖,同一個XML文件還包含其他組件,如文本視圖,圖像按鈕,如何將customview和linearlayout放在同一個xml文件中
該自定義視圖包含了圖片,我想在背景
但它擋住了我的整個佈局(其它成分)
,我只能看到自定義視圖
下面是我的代碼
<FrameLayout
android:id="@+id/framelayout"
android:layout_height="fill_parent"
android:layout_width="fill_parent">
<com.abc.android.image
android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@+id/imageview">
</com.abc.android.image>
<LinearLayout
android:id="@+id/linlayout1"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/small1"
android:orientation="vertical">
All text view, ImageButtons
</LinearLayout>
</FrameLayout>
任何人都可以請告訴如何在前臺使用自定義視圖在背景和其他組件。意味着組件應該在自定義視圖上顯示。
Thanx提前。