recyclerview
とbutton
があります。これはalignParentBottom
です。表示は、recyclerview
の項目の最後の行がボタンによってブロックされていることを除いて、私のrecyclerview
はの後に "となり、ボタンの上にはではなく、と表示されます。これをどうすれば解決できますか?あなたが最初のLinear Layout
ダウンを移動する必要が上記のalignParentBottomレイアウトの上にrecyclerviewを設定します。
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/white_three"
app:layout_behavior="@string/appbar_scrolling_view_behavior">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<android.support.v7.widget.RecyclerView
android:id="@+id/orderList"
android:layout_height="0dp"
android:layout_weight="1"
android:layout_width="match_parent">
</android.support.v7.widget.RecyclerView>
<TextView
android:id="@+id/errorLoadingText"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:textSize="15sp"
android:visibility="gone"
android:layout_marginTop="120dp"
android:gravity="center"/>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/white_three"
android:layout_alignParentBottom="true"
android:orientation="vertical">
<TextView
android:id="@+id/paymentButtonTop"
android:layout_width="match_parent"
android:layout_height="43dp"
android:background="@drawable/button_radius_toggle_confirm"
android:layout_marginTop="15dp"
android:layout_marginStart="15dp"
android:layout_marginEnd="15dp"
android:layout_marginBottom="75dp"
android:text="@string/prepayment"
android:textColor="@color/warm_grey_two"
android:enabled="false"
android:textSize="17sp"
android:gravity="center" />
<TextView
android:id="@+id/paymentButton"
android:layout_width="match_parent"
android:layout_height="43dp"
android:background="@drawable/button_radius_toggle_confirm"
android:layout_margin="15dp"
android:visibility="gone"
android:enabled="false"
android:textColor="@color/warm_grey_two"
android:text="@string/prepayment"
android:textSize="17sp"
android:gravity="center" />
</LinearLayout>
</RelativeLayout>
うーんは...試したとボタンが消え、それが今の代わりに背後に隠されています – stackyyflow