Как добавить кнопку за пределы этого 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>
Примечание для редакторов: Я видел другие подобные вопросы, но проблема немного отличается для меня, так что те не работают.
Спасибо! Решила мою проблему! –
Добро пожаловать @ AnonymousMouse – Elltz
Подождите, я ошибся. Он показывает, где это должно быть в графическом макете с использованием Eclipse. Но я получаю ту же проблему на реальном устройстве oO –