Android 如何将单个线性布局拆分为两个线性布局

Android 如何将单个线性布局拆分为两个线性布局,android,image,layout,bitmap,signature,Android,Image,Layout,Bitmap,Signature,我已经下载了关于在线性布局上签名的内容 我想做什么? 在我的项目中,我将把线性布局分成两个线性布局,在第一个布局中,我可以将签名放在图像上,我需要保存在gallery中,在另一个布局中,我将在图像上写一些东西,并作为单个布局保存到gallery中 但在这个项目中,我只能保存第一个版面本身,但我需要在第二个版面上写,我需要保存在gallery中。请任何人帮帮我 您可以像这样分成两个相等的线性布局 <LinearLayout android:orientation="vertical" and

我已经下载了关于在线性布局上签名的内容

我想做什么?

在我的项目中,我将把线性布局分成两个线性布局,在第一个布局中,我可以将签名放在图像上,我需要保存在gallery中,在另一个布局中,我将在图像上写一些东西,并作为单个布局保存到gallery中


但在这个项目中,我只能保存第一个版面本身,但我需要在第二个版面上写,我需要保存在gallery中。请任何人帮帮我

您可以像这样分成两个相等的
线性布局

<LinearLayout android:orientation="vertical" android:layout_height="fill_parent" android:layout_width="fill_parent">
  <LinearLayout android:layout_weight="1" android:layout_height="fill_parent" android:layout_width="fill_parent">

{Put all those you want to come in 1st layout here}

  </LinearLayout>
  <LinearLayout android:layout_weight="1" android:layout_height="fill_parent" android:layout_width="fill_parent">

{Put all those you want to come in 2nd layout here}

  </LinearLayout>
</LinearLayout>

{把你想要的都放在第一排}
{把你想要的都放在第二排}


你到底在问什么?请检查我的答案@ManojThanks以获取你的答案,但我已经使用的代码不适用于我的项目,我可以在一个版面中登录,我已经在java代码中执行了我的版面,请查看我的项目链接,并给我一些其他有用的答案。我可以在使用此代码时拆分版面,但我只能在第二个版面中签名。我怎样才能在第一个版面中写东西?我也想在两个版面中都写东西。请参见我编辑的答案。在第一个版面中签名。即在打开和关闭
LinearLayout
是,如果我评论第二个版面,我可以在第一个版面中写作。现在我可以在两个版面中写作,我可以将其保存在gallery中作为相同的图像,但我遇到一个问题,如果我开始在第一个版面中绘制,我只能在第一个版面中写作,如果我开始从第二个版面中绘制,我可以在第二个版面中绘制,但我不能同时在两种布局中画一条线。
<LinearLayout android:orientation="vertical"
 android:layout_height="fill_parent"
 android:weightsum="2"
 android:orientation=""// horizontal or veritical
 android:layout_width="fill_parent">
 <LinearLayout 
    android:layout_weight="1"
    android:layout_height="fill_parent"
    android:layout_width="fill_parent">


 </LinearLayout>
 <LinearLayout 
        android:layout_weight="1" 
        android:layout_height="fill_parent"
        android:layout_width="fill_parent">

 </LinearLayout>
</LinearLayout>