Здравствуйте, программисты Android,
Я пытался создать экран, который имеет EditText и нижнюю панель кнопок с Framelayout, чтобы моя нижняя панель кнопок оставалась внизу, независимо от того, насколько большим будет текст редактирования.пользователь, потому что FrameLayout делает мою нижнюю панель кнопок, расположенную в верхней части экрана.Ниже приведен мой код.
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
>
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/hello" />
<EditText android:id="@+id/tm_et_date_year" android:layout_width="120px" android:layout_height="wrap_content"/>
<LinearLayout android:layout_width="fill_parent" android:layout_height="wrap_content" android:id="@+id/tm_ll_buttons" android:orientation="horizontal"
android:gravity="bottom">
<Button android:id="@+id/tm_btn_save" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="Save" android:layout_weight="1" />
<Button android:id="@+id/tm_btn_cancel" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="Cancel" android:layout_weight="1" />
</LinearLayout>
</FrameLayout>
Однако, когда я закончил кодирование, нижняя панель кнопок внезапно появилась в ТОПе, а не Внизу, как показано ниже.
<a href="http://img269.imageshack.us/img269/6374/71485552.jpg" rel="nofollow noreferrer">http://img269.imageshack.us/img269/6374/71485552.jpg</a>
Я искал эту проблему, но не смог найти хороших статей, которые могли бы мне помочь, поэтому теперь прошу у вас совета.Если кто-нибудь знает, как решить эту проблему, не могли бы вы мне помочь?
Спасибо за чтение