如何在Android中创建此布局

如何在Android中创建此布局,android,android-layout,xamarin.android,Android,Android Layout,Xamarin.android,我正在玩Mono Droid并尝试实现以下布局 我会使用什么类型的布局?安卓系统中有没有像WinForms这样的锚定和对接功能,这样就可以在某种程度上独立了 这只适用于平板电脑,更多用于我的实验。左面板内的按钮将重复 谢谢。根目录布局如下: <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" and

我正在玩Mono Droid并尝试实现以下布局

我会使用什么类型的布局?安卓系统中有没有像WinForms这样的锚定和对接功能,这样就可以在某种程度上独立了

这只适用于平板电脑,更多用于我的实验。左面板内的按钮将重复


谢谢。

根目录布局如下:

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:baselineAligned="false"
    android:orientation="horizontal"
    android:padding="5dp" >

    <RelativeLayout
        android:id="@+id/leftContainer"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:layout_weight="0.8" >
    </RelativeLayout>

    <RelativeLayout
        android:id="@+id/rightContainer"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:layout_weight="1" >

        <RelativeLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_alignParentBottom="true"
            android:padding="20dp" >

            <Button
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_alignParentLeft="true"
                android:text="btn1" />

            <Button
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_centerHorizontal="true"
                android:text="btn2" />

            <Button
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_alignParentRight="true"
                android:text="btn3" />
        </RelativeLayout>
    </RelativeLayout>

</LinearLayout>


将动态项目作为列表视图添加到右上方和左上方的布局中。

线性布局将正常工作。。您可以为指定要捕获的空间指定权重。

我们不应该在您的位置工作。您必须使用LinearLayout to Device(左/右),然后在左侧添加tableLayout,在右侧添加Relative Layout。@Sam当您要将图像添加到项目中时,请将其复制到问题本身中。那么,即使链接失效,这个问题仍然有效。那么,您希望我们阅读布局文档并为您编写布局吗?机会很小。@Anis如果你想告诉我你不是在为我工作,我不是在要求你为我工作。我想教自己一些新东西?@Teovald我正在阅读布局文档。我请求帮助。我明确地说“我会使用什么类型的布局”,我没有要求任何人为我写布局。