我有一个线性布局里面的相对布局,里面的相对布局我有一个图像视图和glsurface堆叠在它上面,我想glsurface具有与imageview相同的大小,如何完成此任务?Android相对布局儿童大小
<RelativeLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<com.zibi.ResizableImageView
android:id="@+id/imageView1"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_weight="1.0"
android:gravity="center_horizontal"
android:src="@drawable/notepad" />
<com.zibi.zGLSurfaceView android:id="@+id/surfaceviewclass"
android:layout_width="match_parent"
android:layout_height="match_parent">
</com.zibi.travelersnotepad.zGLSurfaceView>
</RelativeLayout>
“我有一个图像视图和glsurface堆放在它上面”,你不能堆放在linear_layout等顶级一种观点认为,这就是为什么我使用相对之一,我想glsurface有相同的大小作为imageview – ZZZ 2013-03-03 10:46:13