我已经下载了a project关于在线性布局上签名的签名。
我想做什么?
在我的项目中,我将线性布局拆分为两个线性布局,在第一个布局中我可以将签名放在图像上,我需要保存在图库中,在另一个布局中我会在图像上写一些东西保存到图库中作为图库中的单个布局,
但是在项目中我只能保存第一个布局本身,但我需要在第二个布局上编写,我需要保存在库中。请任何人帮助我。
答案 0 :(得分:1)
你可以像这样划分为两个相等的LinearLayout
..
<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>
答案 1 :(得分:0)
<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>