我想在FrameLayout中将两个按钮添加到另一个之下,但它们应该是触摸的。但是,我没有设法做到这一点。这里是我的代码:添加两个在FrameLayout中相互接触的按钮
<FrameLayout
android:id="@+id/lytOptions"
android:layout_below="@id/imgLine"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
>
<Button
android:id="@+id/btnLogin"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/action_via_email"
android:textColor="@android:color/white"
android:textStyle="bold" />
<Button
android:id="@+id/btnSignUp"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/action_sign_up"
android:textColor="@android:color/white"
android:textStyle="bold" />
</FrameLayout>
你能澄清你所说的“既要感动”请什么意思?这些按钮应该彼此相邻吗?还是彼此重叠? – 2013-04-10 07:31:49
尼尔按钮边框应该被触及。我不希望两个按钮之间有任何空间。 – 2013-04-10 07:33:18
我已经编辑了这个问题来说明问题,假设我的编辑已被接受。 – 2013-04-10 07:43:02