1

ボタンがポップアップしたときに画面の下部とキーボードにボタンを貼り付けるのは、XML では非常に簡単でした。次のようなことができます。

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical">

//the ui views

    <TableLayout
    android:id="@+id/m_table_menu"
    style="@style/table_layout_style">

    <View style="@style/view_style" />

        <TableRow style="@style/table_row_button_style">
        //This button sticks to the bottom of the screen or to the keyboard when its open
        <Button
            android:id="@+id/save_user_name"
            style="@style/green_bottom_sticky_button"
            android:background="@drawable/green_disabled_ripple_rectangular_button"
            android:enabled="false"
            android:text="@string/next" />

        </TableRow>

    </TableLayout>

</RelativeLayout>

これを Jetpack 構成でどのように複製しますか?

4

1 に答える 1