0
如何在此LinearLayout之外添加按钮?Android - 在LinearLayout外部添加按钮
我需要它在底部。我用几种方法自己尝试,但是它在每一行中都添加了相同的按钮!我会感谢一些帮助,谢谢!
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingLeft="5dp" >
<CheckBox
android:id="@+id/checkBox_alarm_active"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:focusable="false"
android:padding="5dp" />
<View
android:id="@+id/view1"
android:layout_width="1dp"
android:layout_height="match_parent"
android:layout_marginRight="10dp"
android:background="#CCCCCC"
android:paddingRight="10dp" />
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="vertical"
android:paddingBottom="5dp"
android:paddingTop="5dp" >
<TextView
android:id="@+id/textView_alarm_time"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceMedium" />
<TextView
android:id="@+id/textView_alarm_days"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceSmall" />
</LinearLayout>
</LinearLayout>
编者注:我看到了其他类似的问题,但问题与我有点不同,所以这些都不起作用。
如果你希望它是在布局的确切bottomview
谢谢!解决了我的问题! – 2014-10-16 19:15:56
不客气@匿名小屋 – Elltz 2014-10-16 19:16:35
等等,我错了。它使用Eclipse显示它应该在图形布局中的位置。但是我在真正的设备oO – 2014-10-16 19:20:06