问:
Last item in layout not appear
I am working on android app
and i have cart activity which have multi row of products
and then the total of cart and button to continue..

This layout have top and buttom bars and then Scrollview have linearLayout as child...

This child contain:

Recyclerview

Textboxes

Button

My problem is: I cant scroll to the last item in my layout (The Button) .

This is my xml:

```<code>    <?xml version="1.0" encoding="utf-8"?>
    <RelativeLayout android:layout_width="match_parent"
        android:layout_height="wrap_content"
        xmlns:android="http://schemas.android.com/apk/res/android"
        xmlns:app="http://schemas.android.com/apk/res-auto">
        <LinearLayout
            android:orientation="vertical" android:layout_width="fill_parent"
            android:layout_height="fill_parent"
            android:gravity="center"
            android:layout_alignParentTop="true">

            <ImageView
                android:id="@+id/ProgressBar"
                android:layout_width="match_parent"
                android:layout_height="match_parent"
                android:scaleType="fitCenter"
                android:src="@drawable/progress_rec"/>

        </LinearLayout>
        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:orientation="vertical">
            <ImageView
                android:id="@+id/overview_image"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:adjustViewBounds="true"
                android:src="@drawable/backgroudn"/>
        </LinearLayout>

        <RelativeLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:orientation="vertical"
            android:id="@+id/tt"
            >
            <LinearLayout
                android:layout_width = "match_parent"
                android:layout_height = "70dp"
                android:elevation="12dp"
                android:padding="8dp"
                android:background="@drawable/white_action_bar"
                android:id="@+id/first"
                android:orientation="horizontal"
                android:weightSum="1">

                <Button
                    android:layout_width="0dp"
                    android:layout_height="wrap_content"
                    android:layout_marginTop="8dp"
                    android:elevation="12dp"
                    android:id="@+id/btnActionBar11"
                    android:drawableStart="@drawable/ic_arrow_back_black_24dp"
                    android:drawableLeft="@drawable/ic_arrow_back_black_24dp"
                    android:drawablePadding="8dp"
                    android:drawableTint="@color/colorPrimaryDark"
                    android:padding="8dp"
                    android:background="@android:color/transparent"
                    android:layout_weight="0.2" />
                <TextView
                    android:layout_width = "0dp"
                    android:layout_height = "wrap_content"
                    android:gravity="center"
                    android:textSize="14sp"
                    android:padding="8dp"
                    android:text="@string/cart"
                    android:layout_marginTop="8dp"
                    android:id="@+id/tvActionBar"
                    android:textColor="@color/colorPrimaryDark"
                    android:layout_weight="0.5"/>
                <Button
                    android:layout_width="0dp"
                    android:layout_height="wrap_content"
                    android:layout_marginTop="8dp"
                    android:id="@+id/btnActionBarEnd11"
                    android:padding="8dp"
                    android:drawableEnd="@drawable/ic_shopping_cart_black_24dp"
                    android:drawableRight="@drawable/ic_shopping_cart_black_24dp"
                    android:drawablePadding="8dp"
                    android:drawableTint="@color/colorPrimaryDark"
                    android:textColor="@color/colorPrimaryDark"
                    android:background="@android:color/transparent"
                    android:layout_weight="0.3"
                    android:textSize="12sp"
                    android:visibility="gone"/>

            </LinearLayout>

            <androidx.core.widget.NestedScrollView
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:fillViewport="true"
                android:layout_below="@+id/first">

                <LinearLayout
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:orientation="vertical">

                    <TextView
                        android:layout_width="match_parent"
                        android:layout_height="wrap_content"
                        android:id="@+id/no_data"
                        android:text="@string/no_data"
                        android:textSize="24sp"
                        android:textAlignment="center"
                        android:gravity="center"
                        android:textColor="@color/colorPrimary"
                        android:visibility="gone"/>
                    <ProgressBar
                        android:foregroundGravity="center"
                        android:id="@+id/progress"
                        android:layout_below="@+id/no_data"
                        android:layout_width="40dp"
                        android:layout_height="40dp"
                        android:background="@android:color/transparent"
                        android:layout_gravity="center"
                        android:visibility="gone" />

                    <androidx.recyclerview.widget.RecyclerView
                        android:layout_width="match_parent"
                        android:layout_height="wrap_content"
                        android:id="@+id/cartContentList"
                        android:layoutAnimation="@anim/layout_animation"
                        app:layout_behavior="@string/appbar_scrolling_view_behavior"/>

                    <LinearLayout
                        android:layout_width="match_parent"
                        android:layout_height="wrap_content"
                        android:orientation="vertical"
                        android:padding="8dp"
                        android:weightSum="1"
                        android:id="@+id/totalLayout">

                        <LinearLayout
                            android:layout_width="match_parent"
                            android:layout_height="wrap_content"
                            android:weightSum="1"
                            android:orientation="horizontal">
                            <TextView
                                android:layout_width="0dp"
                                android:layout_height="wrap_content"
                                android:layout_weight="0.3"
                                android:text="@string/total"
                                android:textSize="@dimen/medium"
                                android:textColor="@color/colorPrimaryDark"
                                android:gravity="center"
                                />
                            <TextView
                                android:layout_width="0dp"
                                android:layout_height="wrap_content"
                                android:layout_weight="0.7"
                                android:text="@string/zero_dollar"
                                android:textSize="@dimen/medium"
                                android:textColor="@color/colorPrimaryDark"
                                android:gravity="center"

                                android:id="@+id/tvTotal"/>
                        </LinearLayout>
                        <LinearLayout
                            android:layout_width="match_parent"
                            android:layout_height="wrap_content"
                            android:orientation="vertical">
                            <Button
                                android:layout_width="wrap_content"
                                android:layout_height="wrap_content"
                                android:layout_gravity="center_horizontal"
                                android:background="@drawable/round_button"
                                android:text="@string/continue_"
                                android:textColor="@color/white"
                                android:textSize="@dimen/medium"
                                android:layout_margin="8dp"
                                android:padding="8dp"
                                android:gravity="center"
                                android:id="@+id/btnContinue" />
                        </LinearLayout>

                    </LinearLayout>

                </LinearLayout>

            </androidx.core.widget.NestedScrollView>

        </RelativeLayout>

        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:orientation="vertical"
            android:layout_marginTop="8dp"
            android:paddingTop="8dp"
            android:id="@+id/any"
            android:background="@drawable/white_menu_bar"
            android:layout_alignParentBottom="true"
            android:elevation="24dp">
            <LinearLayout
                android:layout_width = "match_parent"
                android:layout_height = "40dp"
                android:elevation="12dp"
                android:padding="2dp"
                android:id="@+id/end"
                android:orientation="horizontal"
                android:weightSum="1"
                android:gravity="center_horizontal">
                <Button
                    android:layout_width="0dp"
                    android:layout_height="wrap_content"
                    android:layout_weight="0.25"
                    android:background="@android:color/transparent"
                    android:drawableTop="@drawable/home_1"
                    android:layout_margin="8dp"
                    android:gravity="center"
                    android:layout_gravity="center"
                    android:textColor="@color/colorPrimaryDark"
                    android:paddingEnd="15dp"/>

                <Button
                    android:layout_width="0dp"
                    android:layout_height="wrap_content"
                    android:layout_weight="0.25"
                    android:background="@android:color/transparent"
                    android:textColor="@color/colorPrimaryDark"
                    android:gravity="center"
                    android:layout_gravity="center"
                    android:id="@+id/btnMyOrder"
                    android:drawableTop="@drawable/my_orders_1"
                    android:layout_margin="8dp"
                    android:paddingEnd="15dp"/>
                <Button
                    android:layout_width="0dp"
                    android:layout_height="wrap_content"
                    android:layout_weight="0.25"
                    android:background="@android:color/transparent"
                    android:textColor="@color/colorPrimaryDark"
                    android:gravity="center"
                    android:layout_gravity="center"
                    android:drawableTop="@drawable/notifications_1"
                    android:layout_margin="8dp"
                    android:paddingEnd="18dp"/>
                <Button
                    android:layout_width="0dp"
                    android:layout_height="wrap_content"
                    android:layout_weight="0.25"
                    android:background="@android:color/transparent"
                    android:drawableTop="@drawable/side_menu_1"
                    android:layout_marginTop="8dp"
                    android:drawableTint="@color/colorPrimaryDark"
                    android:layout_gravity="center"
                    android:paddingEnd="15dp"/>

            </LinearLayout>
            <LinearLayout
                android:layout_width = "match_parent"
                android:layout_height = "20dp"
                android:elevation="12dp"
                android:id="@+id/end1"
                android:orientation="horizontal"
                android:weightSum="1"
                android:gravity="center_horizontal">
                <Button
                    android:layout_width="0dp"
                    android:layout_height="wrap_content"
                    android:layout_marginTop="5dp"
                    android:id="@+id/gr1Home1"
                    android:drawableTop="@drawable/component1"
                    android:background="@android:color/transparent"
                    android:layout_weight="0.25"
                    android:paddingTop="8dp"
                    android:drawablePadding="15dp"
                    android:visibility="visible"/>
                <Button
                    android:layout_width="0dp"
                    android:layout_height="wrap_content"
                    android:layout_marginTop="5dp"
                    android:id="@+id/gr2Notification1"
                    android:drawableTop="@drawable/component1"
                    android:background="@android:color/transparent"
                    android:layout_weight="0.25"
                    android:padding="8dp"
                    android:drawablePadding="15dp"
                    android:visibility="invisible"/>
                <Button
                    android:layout_width="0dp"
                    android:layout_height="wrap_content"
                    android:layout_marginTop="5dp"
                    android:id="@+id/gr3Message1"
                    android:drawableTop="@drawable/component1"
                    android:background="@android:color/transparent"
                    android:layout_weight="0.25"
                    android:padding="8dp"
                    android:drawablePadding="15dp"
                    android:visibility="invisible"/>
                <Button
                    android:layout_width="0dp"
                    android:layout_height="wrap_content"
                    android:layout_marginTop="5dp"
                    android:id="@+id/gr4Calender1"
                    android:drawableTop="@drawable/component1"
                    android:background="@android:color/transparent"
                    android:layout_weight="0.25"
                    android:padding="8dp"
                    android:drawablePadding="15dp"
                    android:visibility="invisible"/>

            </LinearLayout>
        </LinearLayout>

    </RelativeLayout>
</code>```

.

答:
This is my Cart Activity XMl:

```<?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/cart_bg"
    android:orientation="vertical">

    <RelativeLayout
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:background="@color/cart_bg"
        android:orientation="vertical">

        <include
            android:id="@+id/abl_main1"
            layout="@layout/app_header_bar"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            app:layout_behavior="@string/appbar_scrolling_view_behavior" />

        <LinearLayout
            android:id="@+id/ll_item_count"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_below="@+id/abl_main1"
            android:orientation="horizontal">

            <TextView
                android:id="@+id/tv_item_count_label"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:fontFamily="@font/montserrat"
                android:paddingLeft="10dp"
                android:paddingTop="10dp"
                android:paddingRight="5dp"
                android:paddingBottom="10dp"
                android:text="@string/my_cart"
                android:textColor="@color/text_item"
                android:textSize="@dimen/text_size_18"
                android:textStyle="bold" />

            <TextView
                android:id="@+id/tv_item_count"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:fontFamily="@font/montserrat"
                android:paddingLeft="0dp"
                android:paddingTop="10dp"
                android:paddingRight="5dp"
                android:paddingBottom="10dp"
                android:text="@string/my_cart"
                android:textColor="@color/gray_9E"
                android:textSize="@dimen/text_size_12"
                android:textStyle="normal" />

            <TextView
                android:id="@+id/tv_total"
                android:layout_width="0dp"
                android:layout_height="wrap_content"
                android:layout_weight="5"
                android:fontFamily="@font/montserrat"
                android:gravity="right"
                android:padding="10dp"
                android:text="@string/total_caps"
                android:textColor="@color/text_item"
                android:textStyle="bold"
                android:visibility="gone" />
        </LinearLayout>

        <ScrollView
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:layout_below="@+id/ll_item_count">

            <RelativeLayout
                android:layout_width="match_parent"
                android:layout_height="match_parent"
                android:orientation="vertical"
                android:paddingBottom="60dp"
                android:visibility="visible">

                <LinearLayout
                    android:id="@+id/ll_listing"
                    android:layout_width="match_parent"
                    android:layout_height="match_parent"
                    android:orientation="vertical"
                    android:visibility="visible">

                    <androidx.recyclerview.widget.RecyclerView
                        android:id="@+id/rcv_cart"
                        android:layout_width="match_parent"
                        android:layout_height="match_parent"
                        android:layout_marginBottom="5dp"
                        android:background="@android:color/transparent"
                        android:clipToPadding="false"
                        android:orientation="vertical"
                        android:visibility="visible"
                        app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager" />

                    <androidx.cardview.widget.CardView
                        style="@style/CardView.Light"
                        android:layout_width="match_parent"
                        android:layout_height="wrap_content"
                        android:layout_marginStart="8dp"
                        android:layout_marginTop="8dp"
                        android:layout_marginEnd="8dp"
                        android:layout_marginBottom="8dp"
                        android:background="@color/white"
                        app:cardCornerRadius="4dp">

                        <LinearLayout
                            android:id="@+id/ll_playable"
                            android:layout_width="match_parent"
                            android:layout_height="match_parent"
                            android:orientation="vertical"
                            android:padding="10dp">

                            <LinearLayout
                                android:layout_width="match_parent"
                                android:layout_height="wrap_content"
                                android:orientation="horizontal"
                                android:paddingTop="5dp"
                                android:visibility="gone">

                                <TextView
                                    android:layout_width="0dp"
                                    android:layout_height="wrap_content"
                                    android:layout_weight=".5"
                                    android:fontFamily="@font/montserrat"
                                    android:text="@string/cart_total"
                                    android:textColor="@color/text_item"
                                    android:textStyle="normal" />

                                <TextView
                                    android:id="@+id/tv_cart_total"
                                    android:layout_width="0dp"
                                    android:layout_height="wrap_content"
                                    android:layout_weight=".5"
                                    android:fontFamily="@font/montserrat"
                                    android:gravity="right"
                                    android:text=""
                                    android:textColor="@color/text_item"
                                    android:textStyle="normal" />
                            </LinearLayout>

                            <LinearLayout
                                android:layout_width="match_parent"
                                android:layout_height="wrap_content"
                                android:orientation="horizontal"
                                android:paddingTop="5dp">

                                <TextView
                                    android:layout_width="0dp"
                                    android:layout_height="wrap_content"
                                    android:layout_weight=".5"
                                    android:fontFamily="@font/montserrat"
                                    android:text="@string/total"
                                    android:textColor="@color/text_item"
                                    android:textStyle="bold" />

                                <TextView
                                    android:id="@+id/tv_sub_total"
                                    android:layout_width="0dp"
                                    android:layout_height="wrap_content"
                                    android:layout_weight=".5"
                                    android:fontFamily="@font/montserrat"
                                    android:gravity="right"
                                    android:text=""
                                    android:textColor="@color/text_item"
                                    android:textStyle="bold" />
                            </LinearLayout>

                            <LinearLayout
                                android:layout_width="match_parent"
                                android:layout_height="wrap_content"
                                android:orientation="horizontal"
                                android:paddingTop="5dp"
                                android:visibility="gone">

                                <TextView
                                    android:layout_width="0dp"
                                    android:layout_height="wrap_content"
                                    android:layout_weight=".5"
                                    android:fontFamily="@font/montserrat"
                                    android:text="@string/discount"
                                    android:textColor="@color/text_item"
                                    android:textStyle="normal" />

                                <TextView
                                    android:id="@+id/tv_discount"
                                    android:layout_width="0dp"
                                    android:layout_height="wrap_content"
                                    android:layout_weight=".5"
                                    android:fontFamily="@font/montserrat"
                                    android:gravity="right"
                                    android:text=""
                                    android:textColor="@color/text_item"
                                    android:textStyle="normal" />
                            </LinearLayout>

                            <LinearLayout
                                android:layout_width="match_parent"
                                android:layout_height="wrap_content"
                                android:orientation="horizontal"
                                android:paddingTop="5dp"
                                android:visibility="gone">

                                <TextView
                                    android:layout_width="0dp"
                                    android:layout_height="wrap_content"
                                    android:layout_weight=".5"
                                    android:fontFamily="@font/montserrat"
                                    android:text="@string/dilivery"
                                    android:textColor="@color/text_item"
                                    android:textStyle="normal" />

                                <TextView
                                    android:id="@+id/tv_delivery"
                                    android:layout_width="0dp"
                                    android:layout_height="wrap_content"
                                    android:layout_weight=".5"
                                    android:fontFamily="@font/montserrat"
                                    android:gravity="right"
                                    android:text=""
                                    android:textColor="@color/text_item"
                                    android:textStyle="normal" />
                            </LinearLayout>

                            <LinearLayout
                                android:layout_width="match_parent"
                                android:layout_height="wrap_content"
                                android:orientation="horizontal"
                                android:paddingTop="5dp"
                                android:visibility="gone">

                                <TextView
                                    android:layout_width="0dp"
                                    android:layout_height="wrap_content"
                                    android:layout_weight=".5"
                                    android:fontFamily="@font/montserrat"
                                    android:text="@string/total_payable"
                                    android:textColor="@color/text_item"
                                    android:textStyle="bold" />

                                <TextView
                                    android:id="@+id/tv_total_payable"
                                    android:layout_width="0dp"
                                    android:layout_height="wrap_content"
                                    android:layout_weight=".5"
                                    android:fontFamily="@font/montserrat"
                                    android:gravity="right"
                                    android:text=""
                                    android:textColor="@color/text_item"
                                    android:textStyle="bold" />
                            </LinearLayout>

                            <LinearLayout
                                android:layout_width="match_parent"
                                android:layout_height="wrap_content"
                                android:orientation="horizontal"
                                android:paddingTop="5dp">

                                <TextView
                                    android:layout_width="match_parent"
                                    android:layout_height="wrap_content"
                                    android:fontFamily="@font/montserrat"
                                    android:maxLines="2"
                                    android:text="@string/tax_and_shipping_calculated"
                                    android:textColor="@color/text_item"
                                    android:textSize="@dimen/text_size_15"
                                    android:textStyle="normal" />

                            </LinearLayout>

                            <LinearLayout
                                android:layout_width="match_parent"
                                android:layout_height="wrap_content"
                                android:layout_marginTop="10dp"
                                android:orientation="vertical"
                                android:paddingTop="10dp">

                                <TextView
                                    android:layout_width="match_parent"
                                    android:layout_height="wrap_content"
                                    android:layout_marginBottom="@dimen/margin5dp"
                                    android:fontFamily="@font/montserrat"
                                    android:text="@string/add_order_note"
                                    android:textColor="@color/text_item" />

                                <EditText
                                    android:id="@+id/ed_order_note"
                                    android:layout_width="match_parent"
                                    android:layout_height="wrap_content"
                                    android:background="@drawable/shape_rectangle_transperant_bg_app_color_border"
                                    android:focusable="true"
                                    android:focusableInTouchMode="true"
                                    android:gravity="top|left"
                                    android:hint="@string/how_can_we_help_you"
                                    android:imeOptions="actionDone"
                                    android:isScrollContainer="false"
                                    android:lines="3"
                                    android:maxLines="3"
                                    android:overScrollMode="always"
                                    android:padding="@dimen/margin5dp"
                                    android:scrollbarStyle="insideInset"
                                    android:scrollbars="vertical"
                                    android:textColor="@color/text_item" />
                            </LinearLayout>

                        </LinearLayout>
                    </androidx.cardview.widget.CardView>
                </LinearLayout>
            </RelativeLayout>
        </ScrollView>

        <RelativeLayout
            android:id="@+id/rr_empty_view"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:layout_below="@+id/ll_item_count"
            android:layout_centerInParent="true"
            android:background="@color/white"
            android:visibility="gone">

            <LinearLayout
                android:layout_width="match_parent"
                android:layout_height="match_parent"
                android:layout_centerInParent="true"
                android:gravity="center_vertical"
                android:orientation="vertical">

                <LinearLayout
                    android:id="@+id/ll_backgorund_circle_cart"
                    android:layout_width="100dp"
                    android:layout_height="100dp"
                    android:layout_gravity="center_horizontal"
                    android:background="@drawable/circle_drawable"
                    android:gravity="center"
                    android:orientation="vertical">

                    <ImageView
                        android:id="@+id/iv_background_icon_cart"
                        android:layout_width="40dp"
                        android:layout_height="40dp"
                        android:layout_gravity="center_horizontal"
                        android:src="@mipmap/iv_red_heart"
                        android:visibility="visible" />

                </LinearLayout>

                <TextView
                    android:id="@+id/tv_empty_title"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:layout_marginLeft="@dimen/padding_10"
                    android:layout_marginTop="@dimen/text_size_20"
                    android:layout_marginRight="@dimen/padding_10"
                    android:fontFamily="@font/montserrat"
                    android:gravity="center"
                    android:text="@string/your_bag_is_empty"
                    android:textColor="@color/text_item"
                    android:textSize="20dp"
                    android:textStyle="bold"
                    android:visibility="visible" />

                <TextView
                    android:id="@+id/tv_empty_sub_title"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:layout_marginLeft="@dimen/padding_10"
                    android:layout_marginTop="@dimen/padding_10"
                    android:layout_marginRight="@dimen/padding_10"
                    android:layout_marginBottom="30dp"
                    android:fontFamily="@font/montserrat"
                    android:gravity="center"
                    android:text="@string/item_added_to_bag"
                    android:textColor="@color/gray_9E"
                    android:textSize="16dp"
                    android:textStyle="normal"
                    android:visibility="visible" />

                <LinearLayout
                    android:id="@+id/ll_shopping_now"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_gravity="center_horizontal"
                    android:background="@drawable/shape_rectangle_transperant_bg_app_color_border_new"
                    android:gravity="center"
                    android:orientation="vertical"
                    android:paddingLeft="20dp"
                    android:paddingRight="20dp">

                    <TextView
                        android:id="@+id/tv_shopping_now"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:layout_below="@+id/input_layout_password"
                        android:layout_alignParentStart="true"
                        android:layout_gravity="center_horizontal"
                        android:fontFamily="@font/montserrat"
                        android:gravity="center"
                        android:padding="@dimen/padding_10"
                        android:text="@string/shopping_now"
                        android:textColor="@color/black"
                        android:textSize="16dp" />
                </LinearLayout>
            </LinearLayout>
        </RelativeLayout>

        <View
            android:id="@+id/v_order_place"
            android:layout_width="match_parent"
            android:layout_height="1dp"
            android:layout_above="@+id/ll_place_order"
            android:background="@color/light_gray" />

        <LinearLayout
            android:id="@+id/ll_place_order"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_alignParentBottom="true"
            android:background="@color/white"
            android:orientation="horizontal">

            <LinearLayout
                android:layout_width="0dp"
                android:layout_height="wrap_content"
                android:layout_gravity="center"
                android:layout_weight=".5"
                android:gravity="center"
                android:orientation="vertical"
                android:padding="5dp">

                <TextView
                    android:id="@+id/tv_place_order_total"
                    android:layout_width="match_parent"
                    android:layout_height="match_parent"
                    android:fontFamily="@font/montserrat"
                    android:gravity="center"
                    android:text=""
                    android:textColor="@color/text_item"
                    android:textStyle="bold" />

            </LinearLayout>

            <com.wpa3.productshopify.util.RippleView
                rv_centered="true"
                android:layout_width="0dp"
                android:layout_height="wrap_content"
                android:layout_weight=".5"
                app:rv_type="rectangle"
                app:rv_zoom="true">

                <TextView
                    android:id="@+id/tv_place_order"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:layout_gravity="center"
                    android:layout_margin="5dp"
                    android:layout_weight=".5"
                    android:background="@drawable/shape_round_corner_rectangle"
                    android:fontFamily="@font/montserrat"
                    android:gravity="center"
                    android:padding="10dp"
                    android:text="@string/place_order"
                    android:textAllCaps="true"
                    android:textColor="@color/white"
                    android:textSize="15sp" />
            </com.wpa3.productshopify.util.RippleView>
        </LinearLayout>
    </RelativeLayout>
</RelativeLayout>
```

Right now i'm busy so did not seen your XML but check my code snippet.
Hope this may help you

Title: Last item in layout not appear

Body:
I am working on android app
and i have cart activity which have multi row of products
and then the total of cart and button to continue..

This layout have top and buttom bars and then Scrollview have linearLayout as child...

This child contain:

Recyclerview

Textboxes

Button

My problem is: I cant scroll to the last item in my layout (The Button) .

This is my xml:

    <?xml version="1.0" encoding="utf-8"?>
    <RelativeLayout android:layout_width="match_parent"
        android:layout_height="wrap_content"
        xmlns:android="http://schemas.android.com/apk/res/android"
        xmlns:app="http://schemas.android.com/apk/res-auto">
        <LinearLayout
            android:orientation="vertical" android:layout_width="fill_parent"
            android:layout_height="fill_parent"
            android:gravity="center"
            android:layout_alignParentTop="true">

            <ImageView
                android:id="@+id/ProgressBar"
                android:layout_width="match_parent"
                android:layout_height="match_parent"
                android:scaleType="fitCenter"
                android:src="@drawable/progress_rec"/>

        </LinearLayout>
        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:orientation="vertical">
            <ImageView
                android:id="@+id/overview_image"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:adjustViewBounds="true"
                android:src="@drawable/backgroudn"/>
        </LinearLayout>

        <RelativeLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:orientation="vertical"
            android:id="@+id/tt"
            >
            <LinearLayout
                android:layout_width = "match_parent"
                android:layout_height = "70dp"
                android:elevation="12dp"
                android:padding="8dp"
                android:background="@drawable/white_action_bar"
                android:id="@+id/first"
                android:orientation="horizontal"
                android:weightSum="1">

                <Button
                    android:layout_width="0dp"
                    android:layout_height="wrap_content"
                    android:layout_marginTop="8dp"
                    android:elevation="12dp"
                    android:id="@+id/btnActionBar11"
                    android:drawableStart="@drawable/ic_arrow_back_black_24dp"
                    android:drawableLeft="@drawable/ic_arrow_back_black_24dp"
                    android:drawablePadding="8dp"
                    android:drawableTint="@color/colorPrimaryDark"
                    android:padding="8dp"
                    android:background="@android:color/transparent"
                    android:layout_weight="0.2" />
                <TextView
                    android:layout_width = "0dp"
                    android:layout_height = "wrap_content"
                    android:gravity="center"
                    android:textSize="14sp"
                    android:padding="8dp"
                    android:text="@string/cart"
                    android:layout_marginTop="8dp"
                    android:id="@+id/tvActionBar"
                    android:textColor="@color/colorPrimaryDark"
                    android:layout_weight="0.5"/>
                <Button
                    android:layout_width="0dp"
                    android:layout_height="wrap_content"
                    android:layout_marginTop="8dp"
                    android:id="@+id/btnActionBarEnd11"
                    android:padding="8dp"
                    android:drawableEnd="@drawable/ic_shopping_cart_black_24dp"
                    android:drawableRight="@drawable/ic_shopping_cart_black_24dp"
                    android:drawablePadding="8dp"
                    android:drawableTint="@color/colorPrimaryDark"
                    android:textColor="@color/colorPrimaryDark"
                    android:background="@android:color/transparent"
                    android:layout_weight="0.3"
                    android:textSize="12sp"
                    android:visibility="gone"/>

            </LinearLayout>

            <androidx.core.widget.NestedScrollView
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:fillViewport="true"
                android:layout_below="@+id/first">

                <LinearLayout
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:orientation="vertical">

                    <TextView
                        android:layout_width="match_parent"
                        android:layout_height="wrap_content"
                        android:id="@+id/no_data"
                        android:text="@string/no_data"
                        android:textSize="24sp"
                        android:textAlignment="center"
                        android:gravity="center"
                        android:textColor="@color/colorPrimary"
                        android:visibility="gone"/>
                    <ProgressBar
                        android:foregroundGravity="center"
                        android:id="@+id/progress"
                        android:layout_below="@+id/no_data"
                        android:layout_width="40dp"
                        android:layout_height="40dp"
                        android:background="@android:color/transparent"
                        android:layout_gravity="center"
                        android:visibility="gone" />

                    <androidx.recyclerview.widget.RecyclerView
                        android:layout_width="match_parent"
                        android:layout_height="wrap_content"
                        android:id="@+id/cartContentList"
                        android:layoutAnimation="@anim/layout_animation"
                        app:layout_behavior="@string/appbar_scrolling_view_behavior"/>

                    <LinearLayout
                        android:layout_width="match_parent"
                        android:layout_height="wrap_content"
                        android:orientation="vertical"
                        android:padding="8dp"
                        android:weightSum="1"
                        android:id="@+id/totalLayout">

                        <LinearLayout
                            android:layout_width="match_parent"
                            android:layout_height="wrap_content"
                            android:weightSum="1"
                            android:orientation="horizontal">
                            <TextView
                                android:layout_width="0dp"
                                android:layout_height="wrap_content"
                                android:layout_weight="0.3"
                                android:text="@string/total"
                                android:textSize="@dimen/medium"
                                android:textColor="@color/colorPrimaryDark"
                                android:gravity="center"
                                />
                            <TextView
                                android:layout_width="0dp"
                                android:layout_height="wrap_content"
                                android:layout_weight="0.7"
                                android:text="@string/zero_dollar"
                                android:textSize="@dimen/medium"
                                android:textColor="@color/colorPrimaryDark"
                                android:gravity="center"

                                android:id="@+id/tvTotal"/>
                        </LinearLayout>
                        <LinearLayout
                            android:layout_width="match_parent"
                            android:layout_height="wrap_content"
                            android:orientation="vertical">
                            <Button
                                android:layout_width="wrap_content"
                                android:layout_height="wrap_content"
                                android:layout_gravity="center_horizontal"
                                android:background="@drawable/round_button"
                                android:text="@string/continue_"
                                android:textColor="@color/white"
                                android:textSize="@dimen/medium"
                                android:layout_margin="8dp"
                                android:padding="8dp"
                                android:gravity="center"
                                android:id="@+id/btnContinue" />
                        </LinearLayout>

                    </LinearLayout>

                </LinearLayout>

            </androidx.core.widget.NestedScrollView>

        </RelativeLayout>

        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:orientation="vertical"
            android:layout_marginTop="8dp"
            android:paddingTop="8dp"
            android:id="@+id/any"
            android:background="@drawable/white_menu_bar"
            android:layout_alignParentBottom="true"
            android:elevation="24dp">
            <LinearLayout
                android:layout_width = "match_parent"
                android:layout_height = "40dp"
                android:elevation="12dp"
                android:padding="2dp"
                android:id="@+id/end"
                android:orientation="horizontal"
                android:weightSum="1"
                android:gravity="center_horizontal">
                <Button
                    android:layout_width="0dp"
                    android:layout_height="wrap_content"
                    android:layout_weight="0.25"
                    android:background="@android:color/transparent"
                    android:drawableTop="@drawable/home_1"
                    android:layout_margin="8dp"
                    android:gravity="center"
                    android:layout_gravity="center"
                    android:textColor="@color/colorPrimaryDark"
                    android:paddingEnd="15dp"/>

                <Button
                    android:layout_width="0dp"
                    android:layout_height="wrap_content"
                    android:layout_weight="0.25"
                    android:background="@android:color/transparent"
                    android:textColor="@color/colorPrimaryDark"
                    android:gravity="center"
                    android:layout_gravity="center"
                    android:id="@+id/btnMyOrder"
                    android:drawableTop="@drawable/my_orders_1"
                    android:layout_margin="8dp"
                    android:paddingEnd="15dp"/>
                <Button
                    android:layout_width="0dp"
                    android:layout_height="wrap_content"
                    android:layout_weight="0.25"
                    android:background="@android:color/transparent"
                    android:textColor="@color/colorPrimaryDark"
                    android:gravity="center"
                    android:layout_gravity="center"
                    android:drawableTop="@drawable/notifications_1"
                    android:layout_margin="8dp"
                    android:paddingEnd="18dp"/>
                <Button
                    android:layout_width="0dp"
                    android:layout_height="wrap_content"
                    android:layout_weight="0.25"
                    android:background="@android:color/transparent"
                    android:drawableTop="@drawable/side_menu_1"
                    android:layout_marginTop="8dp"
                    android:drawableTint="@color/colorPrimaryDark"
                    android:layout_gravity="center"
                    android:paddingEnd="15dp"/>

            </LinearLayout>
            <LinearLayout
                android:layout_width = "match_parent"
                android:layout_height = "20dp"
                android:elevation="12dp"
                android:id="@+id/end1"
                android:orientation="horizontal"
                android:weightSum="1"
                android:gravity="center_horizontal">
                <Button
                    android:layout_width="0dp"
                    android:layout_height="wrap_content"
                    android:layout_marginTop="5dp"
                    android:id="@+id/gr1Home1"
                    android:drawableTop="@drawable/component1"
                    android:background="@android:color/transparent"
                    android:layout_weight="0.25"
                    android:paddingTop="8dp"
                    android:drawablePadding="15dp"
                    android:visibility="visible"/>
                <Button
                    android:layout_width="0dp"
                    android:layout_height="wrap_content"
                    android:layout_marginTop="5dp"
                    android:id="@+id/gr2Notification1"
                    android:drawableTop="@drawable/component1"
                    android:background="@android:color/transparent"
                    android:layout_weight="0.25"
                    android:padding="8dp"
                    android:drawablePadding="15dp"
                    android:visibility="invisible"/>
                <Button
                    android:layout_width="0dp"
                    android:layout_height="wrap_content"
                    android:layout_marginTop="5dp"
                    android:id="@+id/gr3Message1"
                    android:drawableTop="@drawable/component1"
                    android:background="@android:color/transparent"
                    android:layout_weight="0.25"
                    android:padding="8dp"
                    android:drawablePadding="15dp"
                    android:visibility="invisible"/>
                <Button
                    android:layout_width="0dp"
                    android:layout_height="wrap_content"
                    android:layout_marginTop="5dp"
                    android:id="@+id/gr4Calender1"
                    android:drawableTop="@drawable/component1"
                    android:background="@android:color/transparent"
                    android:layout_weight="0.25"
                    android:padding="8dp"
                    android:drawablePadding="15dp"
                    android:visibility="invisible"/>

            </LinearLayout>
        </LinearLayout>

    </RelativeLayout>

.

Body:
This is my Cart Activity XMl:

<?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/cart_bg"
    android:orientation="vertical">

    <RelativeLayout
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:background="@color/cart_bg"
        android:orientation="vertical">

        <include
            android:id="@+id/abl_main1"
            layout="@layout/app_header_bar"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            app:layout_behavior="@string/appbar_scrolling_view_behavior" />

        <LinearLayout
            android:id="@+id/ll_item_count"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_below="@+id/abl_main1"
            android:orientation="horizontal">

            <TextView
                android:id="@+id/tv_item_count_label"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:fontFamily="@font/montserrat"
                android:paddingLeft="10dp"
                android:paddingTop="10dp"
                android:paddingRight="5dp"
                android:paddingBottom="10dp"
                android:text="@string/my_cart"
                android:textColor="@color/text_item"
                android:textSize="@dimen/text_size_18"
                android:textStyle="bold" />

            <TextView
                android:id="@+id/tv_item_count"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:fontFamily="@font/montserrat"
                android:paddingLeft="0dp"
                android:paddingTop="10dp"
                android:paddingRight="5dp"
                android:paddingBottom="10dp"
                android:text="@string/my_cart"
                android:textColor="@color/gray_9E"
                android:textSize="@dimen/text_size_12"
                android:textStyle="normal" />

            <TextView
                android:id="@+id/tv_total"
                android:layout_width="0dp"
                android:layout_height="wrap_content"
                android:layout_weight="5"
                android:fontFamily="@font/montserrat"
                android:gravity="right"
                android:padding="10dp"
                android:text="@string/total_caps"
                android:textColor="@color/text_item"
                android:textStyle="bold"
                android:visibility="gone" />
        </LinearLayout>

        <ScrollView
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:layout_below="@+id/ll_item_count">

            <RelativeLayout
                android:layout_width="match_parent"
                android:layout_height="match_parent"
                android:orientation="vertical"
                android:paddingBottom="60dp"
                android:visibility="visible">

                <LinearLayout
                    android:id="@+id/ll_listing"
                    android:layout_width="match_parent"
                    android:layout_height="match_parent"
                    android:orientation="vertical"
                    android:visibility="visible">

                    <androidx.recyclerview.widget.RecyclerView
                        android:id="@+id/rcv_cart"
                        android:layout_width="match_parent"
                        android:layout_height="match_parent"
                        android:layout_marginBottom="5dp"
                        android:background="@android:color/transparent"
                        android:clipToPadding="false"
                        android:orientation="vertical"
                        android:visibility="visible"
                        app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager" />

                    <androidx.cardview.widget.CardView
                        style="@style/CardView.Light"
                        android:layout_width="match_parent"
                        android:layout_height="wrap_content"
                        android:layout_marginStart="8dp"
                        android:layout_marginTop="8dp"
                        android:layout_marginEnd="8dp"
                        android:layout_marginBottom="8dp"
                        android:background="@color/white"
                        app:cardCornerRadius="4dp">

                        <LinearLayout
                            android:id="@+id/ll_playable"
                            android:layout_width="match_parent"
                            android:layout_height="match_parent"
                            android:orientation="vertical"
                            android:padding="10dp">

                            <LinearLayout
                                android:layout_width="match_parent"
                                android:layout_height="wrap_content"
                                android:orientation="horizontal"
                                android:paddingTop="5dp"
                                android:visibility="gone">

                                <TextView
                                    android:layout_width="0dp"
                                    android:layout_height="wrap_content"
                                    android:layout_weight=".5"
                                    android:fontFamily="@font/montserrat"
                                    android:text="@string/cart_total"
                                    android:textColor="@color/text_item"
                                    android:textStyle="normal" />

                                <TextView
                                    android:id="@+id/tv_cart_total"
                                    android:layout_width="0dp"
                                    android:layout_height="wrap_content"
                                    android:layout_weight=".5"
                                    android:fontFamily="@font/montserrat"
                                    android:gravity="right"
                                    android:text=""
                                    android:textColor="@color/text_item"
                                    android:textStyle="normal" />
                            </LinearLayout>

                            <LinearLayout
                                android:layout_width="match_parent"
                                android:layout_height="wrap_content"
                                android:orientation="horizontal"
                                android:paddingTop="5dp">

                                <TextView
                                    android:layout_width="0dp"
                                    android:layout_height="wrap_content"
                                    android:layout_weight=".5"
                                    android:fontFamily="@font/montserrat"
                                    android:text="@string/total"
                                    android:textColor="@color/text_item"
                                    android:textStyle="bold" />

                                <TextView
                                    android:id="@+id/tv_sub_total"
                                    android:layout_width="0dp"
                                    android:layout_height="wrap_content"
                                    android:layout_weight=".5"
                                    android:fontFamily="@font/montserrat"
                                    android:gravity="right"
                                    android:text=""
                                    android:textColor="@color/text_item"
                                    android:textStyle="bold" />
                            </LinearLayout>

                            <LinearLayout
                                android:layout_width="match_parent"
                                android:layout_height="wrap_content"
                                android:orientation="horizontal"
                                android:paddingTop="5dp"
                                android:visibility="gone">

                                <TextView
                                    android:layout_width="0dp"
                                    android:layout_height="wrap_content"
                                    android:layout_weight=".5"
                                    android:fontFamily="@font/montserrat"
                                    android:text="@string/discount"
                                    android:textColor="@color/text_item"
                                    android:textStyle="normal" />

                                <TextView
                                    android:id="@+id/tv_discount"
                                    android:layout_width="0dp"
                                    android:layout_height="wrap_content"
                                    android:layout_weight=".5"
                                    android:fontFamily="@font/montserrat"
                                    android:gravity="right"
                                    android:text=""
                                    android:textColor="@color/text_item"
                                    android:textStyle="normal" />
                            </LinearLayout>

                            <LinearLayout
                                android:layout_width="match_parent"
                                android:layout_height="wrap_content"
                                android:orientation="horizontal"
                                android:paddingTop="5dp"
                                android:visibility="gone">

                                <TextView
                                    android:layout_width="0dp"
                                    android:layout_height="wrap_content"
                                    android:layout_weight=".5"
                                    android:fontFamily="@font/montserrat"
                                    android:text="@string/dilivery"
                                    android:textColor="@color/text_item"
                                    android:textStyle="normal" />

                                <TextView
                                    android:id="@+id/tv_delivery"
                                    android:layout_width="0dp"
                                    android:layout_height="wrap_content"
                                    android:layout_weight=".5"
                                    android:fontFamily="@font/montserrat"
                                    android:gravity="right"
                                    android:text=""
                                    android:textColor="@color/text_item"
                                    android:textStyle="normal" />
                            </LinearLayout>

                            <LinearLayout
                                android:layout_width="match_parent"
                                android:layout_height="wrap_content"
                                android:orientation="horizontal"
                                android:paddingTop="5dp"
                                android:visibility="gone">

                                <TextView
                                    android:layout_width="0dp"
                                    android:layout_height="wrap_content"
                                    android:layout_weight=".5"
                                    android:fontFamily="@font/montserrat"
                                    android:text="@string/total_payable"
                                    android:textColor="@color/text_item"
                                    android:textStyle="bold" />

                                <TextView
                                    android:id="@+id/tv_total_payable"
                                    android:layout_width="0dp"
                                    android:layout_height="wrap_content"
                                    android:layout_weight=".5"
                                    android:fontFamily="@font/montserrat"
                                    android:gravity="right"
                                    android:text=""
                                    android:textColor="@color/text_item"
                                    android:textStyle="bold" />
                            </LinearLayout>

                            <LinearLayout
                                android:layout_width="match_parent"
                                android:layout_height="wrap_content"
                                android:orientation="horizontal"
                                android:paddingTop="5dp">

                                <TextView
                                    android:layout_width="match_parent"
                                    android:layout_height="wrap_content"
                                    android:fontFamily="@font/montserrat"
                                    android:maxLines="2"
                                    android:text="@string/tax_and_shipping_calculated"
                                    android:textColor="@color/text_item"
                                    android:textSize="@dimen/text_size_15"
                                    android:textStyle="normal" />

                            </LinearLayout>

                            <LinearLayout
                                android:layout_width="match_parent"
                                android:layout_height="wrap_content"
                                android:layout_marginTop="10dp"
                                android:orientation="vertical"
                                android:paddingTop="10dp">

                                <TextView
                                    android:layout_width="match_parent"
                                    android:layout_height="wrap_content"
                                    android:layout_marginBottom="@dimen/margin5dp"
                                    android:fontFamily="@font/montserrat"
                                    android:text="@string/add_order_note"
                                    android:textColor="@color/text_item" />

                                <EditText
                                    android:id="@+id/ed_order_note"
                                    android:layout_width="match_parent"
                                    android:layout_height="wrap_content"
                                    android:background="@drawable/shape_rectangle_transperant_bg_app_color_border"
                                    android:focusable="true"
                                    android:focusableInTouchMode="true"
                                    android:gravity="top|left"
                                    android:hint="@string/how_can_we_help_you"
                                    android:imeOptions="actionDone"
                                    android:isScrollContainer="false"
                                    android:lines="3"
                                    android:maxLines="3"
                                    android:overScrollMode="always"
                                    android:padding="@dimen/margin5dp"
                                    android:scrollbarStyle="insideInset"
                                    android:scrollbars="vertical"
                                    android:textColor="@color/text_item" />
                            </LinearLayout>

                        </LinearLayout>
                    </androidx.cardview.widget.CardView>
                </LinearLayout>
            </RelativeLayout>
        </ScrollView>

        <RelativeLayout
            android:id="@+id/rr_empty_view"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:layout_below="@+id/ll_item_count"
            android:layout_centerInParent="true"
            android:background="@color/white"
            android:visibility="gone">

            <LinearLayout
                android:layout_width="match_parent"
                android:layout_height="match_parent"
                android:layout_centerInParent="true"
                android:gravity="center_vertical"
                android:orientation="vertical">

                <LinearLayout
                    android:id="@+id/ll_backgorund_circle_cart"
                    android:layout_width="100dp"
                    android:layout_height="100dp"
                    android:layout_gravity="center_horizontal"
                    android:background="@drawable/circle_drawable"
                    android:gravity="center"
                    android:orientation="vertical">

                    <ImageView
                        android:id="@+id/iv_background_icon_cart"
                        android:layout_width="40dp"
                        android:layout_height="40dp"
                        android:layout_gravity="center_horizontal"
                        android:src="@mipmap/iv_red_heart"
                        android:visibility="visible" />

                </LinearLayout>

                <TextView
                    android:id="@+id/tv_empty_title"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:layout_marginLeft="@dimen/padding_10"
                    android:layout_marginTop="@dimen/text_size_20"
                    android:layout_marginRight="@dimen/padding_10"
                    android:fontFamily="@font/montserrat"
                    android:gravity="center"
                    android:text="@string/your_bag_is_empty"
                    android:textColor="@color/text_item"
                    android:textSize="20dp"
                    android:textStyle="bold"
                    android:visibility="visible" />

                <TextView
                    android:id="@+id/tv_empty_sub_title"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:layout_marginLeft="@dimen/padding_10"
                    android:layout_marginTop="@dimen/padding_10"
                    android:layout_marginRight="@dimen/padding_10"
                    android:layout_marginBottom="30dp"
                    android:fontFamily="@font/montserrat"
                    android:gravity="center"
                    android:text="@string/item_added_to_bag"
                    android:textColor="@color/gray_9E"
                    android:textSize="16dp"
                    android:textStyle="normal"
                    android:visibility="visible" />

                <LinearLayout
                    android:id="@+id/ll_shopping_now"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_gravity="center_horizontal"
                    android:background="@drawable/shape_rectangle_transperant_bg_app_color_border_new"
                    android:gravity="center"
                    android:orientation="vertical"
                    android:paddingLeft="20dp"
                    android:paddingRight="20dp">

                    <TextView
                        android:id="@+id/tv_shopping_now"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:layout_below="@+id/input_layout_password"
                        android:layout_alignParentStart="true"
                        android:layout_gravity="center_horizontal"
                        android:fontFamily="@font/montserrat"
                        android:gravity="center"
                        android:padding="@dimen/padding_10"
                        android:text="@string/shopping_now"
                        android:textColor="@color/black"
                        android:textSize="16dp" />
                </LinearLayout>
            </LinearLayout>
        </RelativeLayout>

        <View
            android:id="@+id/v_order_place"
            android:layout_width="match_parent"
            android:layout_height="1dp"
            android:layout_above="@+id/ll_place_order"
            android:background="@color/light_gray" />

        <LinearLayout
            android:id="@+id/ll_place_order"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_alignParentBottom="true"
            android:background="@color/white"
            android:orientation="horizontal">

            <LinearLayout
                android:layout_width="0dp"
                android:layout_height="wrap_content"
                android:layout_gravity="center"
                android:layout_weight=".5"
                android:gravity="center"
                android:orientation="vertical"
                android:padding="5dp">

                <TextView
                    android:id="@+id/tv_place_order_total"
                    android:layout_width="match_parent"
                    android:layout_height="match_parent"
                    android:fontFamily="@font/montserrat"
                    android:gravity="center"
                    android:text=""
                    android:textColor="@color/text_item"
                    android:textStyle="bold" />

            </LinearLayout>

            <com.wpa3.productshopify.util.RippleView
                rv_centered="true"
                android:layout_width="0dp"
                android:layout_height="wrap_content"
                android:layout_weight=".5"
                app:rv_type="rectangle"
                app:rv_zoom="true">

                <TextView
                    android:id="@+id/tv_place_order"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:layout_gravity="center"
                    android:layout_margin="5dp"
                    android:layout_weight=".5"
                    android:background="@drawable/shape_round_corner_rectangle"
                    android:fontFamily="@font/montserrat"
                    android:gravity="center"
                    android:padding="10dp"
                    android:text="@string/place_order"
                    android:textAllCaps="true"
                    android:textColor="@color/white"
                    android:textSize="15sp" />
            </com.wpa3.productshopify.util.RippleView>
        </LinearLayout>
    </RelativeLayout>
</RelativeLayout>

Right now i'm busy so did not seen your XML but check my code snippet.
Hope this may help you


来源: stackexchange

问:
How to make visual studio c++ project require administrator
I want my visual studio project to require admin privileges when it is launched, how do you do that?
I've tried going on "properties -> Project properties -> linker -> manifest file" and changing the UAC execution level to "requireAdministrator (/level=requireAdministrator'')" but visual studio just gives me error MSB6011 while building the project.
All help is appreciated. Thanks

答:
I tried to reproduce your problem, but it didn't work.

I guess it might be something wrong with vs. I suggest that you could try to restore the settings of VS and try again, about restoring the settings of VS: Tools->Import and Export Settings...->Reset all Settings->Next->"No, just reset settings, overwriting my current settings"->Next->General->Finish.

I suggest you can try to clear the cache of VS.VS cache cleanup steps:

Close Visual Studio (ensure devenv.exe is not present in the Task Manager)

Delete the %USERPROFILE%\AppData\Local\Microsoft\VisualStudio\14.0\ComponentModelCache directory (2017 correspondence 15.xxx, 2019 correspondence 16.xxx, 2015 correspondence 14.xxx  )

Restart Visual Studio.

If the problem persists,I suggest you could try to open the build log function and take a look at the build process.

ContentLicense: CC BY-SA 4.0


问:
iPhone Simulator Refresh/Redraw View when debugging?
anyone does knows how redraw a  view when debugging code?
When Xcode is in the debugger mode, doesn't refresh the screen. If I add a view or a button, nothing  is show on the screen!</p>

答:
When the application is paused you can update live in the simulator or on the device while you are still in the debugger using the LLDB command below:

```<code> (lldb) e (void)[CATransaction flush]
</code>```

if you have Chisel use the alias caflush

ContentLicense: CC BY-SA 2.5

Body:
When the application is paused you can update live in the simulator or on the device while you are still in the debugger using the LLDB command below:

 (lldb) e (void)[CATransaction flush]

if you have Chisel use the alias caflush


问:
Dart - How to delete element in JSON
How can i delete an element in json in dart? For example, i want to delete the id element. </p>

```<code>{
    "activityPostId":"fc4bc183-e71a-47a2-8fcd-a1eb229148b6",
    "netUserId":"ca2e7f96-8d91-4195-9fa6-69e13e9d33c5",
    "quantity":"1",
    "price":"18.0",
    "reserveOnly":null,
    "comments":null,
    "id":null,
}
</code>```

答:
I assume that your example is that you are initializing a Map that you will encode to JSON like:

```<code>final data = {
    "activityPostId":"fc4bc183-e71a-47a2-8fcd-a1eb229148b6",
    "netUserId":"ca2e7f96-8d91-4195-9fa6-69e13e9d33c5",
    "quantity":"1",
    "price":"18.0",
    "reserveOnly":null,
    "comments":null,
    "id":null,
}
</code>```

Since this is just a Map under the hood.. its as simple as:

```<code>data.remove('id');
</code>```

Then to serialize of course:

```<code>json.encode(data);
</code>```

Title: Dart - How to delete element in JSON

Body:
How can i delete an element in json in dart? For example, i want to delete the id element.

{
    "activityPostId":"fc4bc183-e71a-47a2-8fcd-a1eb229148b6",
    "netUserId":"ca2e7f96-8d91-4195-9fa6-69e13e9d33c5",
    "quantity":"1",
    "price":"18.0",
    "reserveOnly":null,
    "comments":null,
    "id":null,
}

Body:
I assume that your example is that you are initializing a Map that you will encode to JSON like:

final data = {
    "activityPostId":"fc4bc183-e71a-47a2-8fcd-a1eb229148b6",
    "netUserId":"ca2e7f96-8d91-4195-9fa6-69e13e9d33c5",
    "quantity":"1",
    "price":"18.0",
    "reserveOnly":null,
    "comments":null,
    "id":null,
}

Since this is just a Map under the hood.. its as simple as:

data.remove('id');

Then to serialize of course:

json.encode(data);


问:
How can i search a json response to see if a value exists using linq?
I have the following json response

```<code>{
  "Id": "1234",
  "Name": "Test",
  "Orders": [
    {
      "OrderId": "87654",
      "OrderDetails": {
        "OrdId": "1234",
        "Name": "Desk"
      }
    },
    {
      "OrderId": "54213",
      "OrderDetails": {
        "OrdId": "4321",
        "Name": "Table"
      }
    }
  ]
}
</code>```

I want to search the list of orders to see if there is an OrderId of 87654.
I can do with an array , but how can I do it with Linq ?

答:
You can deserialize the json string to a JObject using Newtonsoft.Json and then loop through the orders to get the OrderIDs.

```<code>var obj = JObject.Parse(json);
foreach(var order in obj["Orders"])
{
    Console.WriteLine(order["OrderId"]);
}
</code>```

or you can use the Where clause.

```<code>var myOrder = obj["Orders"].Where(x => x["OrderId"].ToString().Equals("87654")).FirstOrDefault();
</code>```

Then you can print any property of that order,

```<code>Console.WriteLine(myOrder["OrderDetails"]["Name"].ToString());
// Prints: Desk
</code>```

Alternatively, you can: also use classes to deserialize the json you have and query the orders.

```<code>public class OrderDetails
{
    public string OrdId { get; set; }
    public string Name { get; set; }
}

public class Order
{
    public string OrderId { get; set; }
    public OrderDetails OrderDetails { get; set; }
}

public class RootObject
{
    public string Id { get; set; }
    public string Name { get; set; }
    public List<Order> Orders { get; set; }
}

public static void Main(string[] args)
{
    string json = File.ReadAllText(@"C:\temp\json.txt");
    var obj = JsonConvert.DeserializeObject<RootObject>(json);
    var myOrder = obj.Orders.FirstOrDefault(x => x.OrderId.Equals("87654"));
    if (myOrder != null)
    {
        Console.WriteLine(myOrder.OrderDetails.Name);
    }
}
</code>```

Body:
I have the following json response

{
  "Id": "1234",
  "Name": "Test",
  "Orders": [
    {
      "OrderId": "87654",
      "OrderDetails": {
        "OrdId": "1234",
        "Name": "Desk"
      }
    },
    {
      "OrderId": "54213",
      "OrderDetails": {
        "OrdId": "4321",
        "Name": "Table"
      }
    }
  ]
}

I want to search the list of orders to see if there is an OrderId of 87654.
I can do with an array , but how can I do it with Linq ?

Body:
You can deserialize the json string to a JObject using Newtonsoft.Json and then loop through the orders to get the OrderIDs.

var obj = JObject.Parse(json);
foreach(var order in obj["Orders"])
{
    Console.WriteLine(order["OrderId"]);
}

or you can use the Where clause.

var myOrder = obj["Orders"].Where(x => x["OrderId"].ToString().Equals("87654")).FirstOrDefault();

Then you can print any property of that order,

Console.WriteLine(myOrder["OrderDetails"]["Name"].ToString());
// Prints: Desk

Alternatively, you can: also use classes to deserialize the json you have and query the orders.

public class OrderDetails
{
    public string OrdId { get; set; }
    public string Name { get; set; }
}

public class Order
{
    public string OrderId { get; set; }
    public OrderDetails OrderDetails { get; set; }
}

public class RootObject
{
    public string Id { get; set; }
    public string Name { get; set; }
    public List<Order> Orders { get; set; }
}

public static void Main(string[] args)
{
    string json = File.ReadAllText(@"C:\temp\json.txt");
    var obj = JsonConvert.DeserializeObject<RootObject>(json);
    var myOrder = obj.Orders.FirstOrDefault(x => x.OrderId.Equals("87654"));
    if (myOrder != null)
    {
        Console.WriteLine(myOrder.OrderDetails.Name);
    }
}


问:
How to print spark data frame name on console
I am new to spark.

I want to print my spark data frame name on the spark console.
eg: my data frame name in df1. if I try to print it on the console, its getting printed as below:
DataFrame[id: int, name: string]

Do we have any built-in function to print the just data frame name?

答:
You can get a list of pyspark dataframes in a any given spark session as a list of strings. You can then print them or do whatever you like with them</p>

```<code>from pyspark.sql import DataFrame
allDataFrames = [k for (k, v) in globals().items() if isinstance(v, DataFrame)]
</code>```

Body:
You can get a list of pyspark dataframes in a any given spark session as a list of strings. You can then print them or do whatever you like with them

from pyspark.sql import DataFrame
allDataFrames = [k for (k, v) in globals().items() if isinstance(v, DataFrame)]


问:
Is there a way to include the git hash in a github pages site?
Github pages works by using the Markdown static site generator.

Is there a way to make it include the commit hash of the current gh-pages branch, so it is easy to check that a page has been updated, and that everyone is viewing the same version of the site?

答:
This is not specific to GitHub page, and depends on the website generator you are using.

Github pages works with any static website generator you want.

For instance, Hugo would propose Git Info Variables, in order to get the last Git revision information for every content file.

Example:

```<code>    {{ with .GitInfo }} <!-- To enable this, put "enableGitInfo = true" in your site config.toml -->
        {{ $git := . }}
        {{ with $.Site.Params.source }}
            This page was created/modified in commit <a href="{{ .url }}/commit/{{- $git.Hash -}}">
            {{- $git.AbbreviatedHash -}}</a> "{{ $git.Subject }}" on <b>{{ dateFormat "2006-01-02" $git.AuthorDate }}</b>.
        {{ end }}
    {{ end }}
</code>```

Regarding  Jekyll, the engine behind GitHub Pages, the OP Andrew points out in the comments to this thread.

Suriyaa Kudo used in _layouts/default.html

```<code><!-- build-commit-id: {{ site.github.build_revision }} -->
</code>```

That, after declaring in _config.yml

```<code>repository: suriyaakudo/cdn.suriyaa.tk
</code>```

You can see it in 26000+ files on GitHub.

Body:
This is not specific to GitHub page, and depends on the website generator you are using.

Github pages works with any static website generator you want.

For instance, Hugo would propose Git Info Variables, in order to get the last Git revision information for every content file.

Example:

    {{ with .GitInfo }} <!-- To enable this, put "enableGitInfo = true" in your site config.toml -->
        {{ $git := . }}
        {{ with $.Site.Params.source }}
            This page was created/modified in commit <a href="{{ .url }}/commit/{{- $git.Hash -}}">
            {{- $git.AbbreviatedHash -}}</a> "{{ $git.Subject }}" on <b>{{ dateFormat "2006-01-02" $git.AuthorDate }}</b>.
        {{ end }}
    {{ end }}

Regarding  Jekyll, the engine behind GitHub Pages, the OP Andrew points out in the comments to this thread.

Suriyaa Kudo used in _layouts/default.html

<!-- build-commit-id: {{ site.github.build_revision }} -->

That, after declaring in _config.yml

repository: suriyaakudo/cdn.suriyaa.tk

You can see it in 26000+ files on GitHub.


问:
Modifying Calculator in Android Studio
I made a calculator in android studio. It is working fine. But the problem is it is working only for two operands and one operator 2+2. I want to make a calculator as we have on our smartphones. It should do a calculation like 2+2*5/7-8. I tried but I am not able to code this. Can you please help. Here is my code of two operands: </p>

```<code>TextView zeroTv,oneTv, twoTv,threeTv,fourTv,fiveTv,sixTv,sevenTv,eightTv,nineTv;
TextView addTv,subTv,mulTv,divTv,clearTv,backTv,dotTv,equalTv,percentTv;
TextView exprTv,resultTv;
double firstNo, secondNo;
char operator;

@Override
protected void onCreate(Bundle savedInstanceState) {
   super.onCreate(savedInstanceState);
   setContentView(R.layout.activity_main);

   zeroTv = findViewById(R.id.tvZero_ID);
   oneTv = findViewById(R.id.tvOne_ID);
   twoTv = findViewById(R.id.tvTwo_ID);
   threeTv = findViewById(R.id.tvThree_ID);
   fourTv = findViewById(R.id.tvFour_ID);
   fiveTv = findViewById(R.id.tvFive_ID);
   sixTv = findViewById(R.id.tvSix_ID);
   sevenTv = findViewById(R.id.tvSeven_ID);
   eightTv = findViewById(R.id.tvEight_ID);
   nineTv = findViewById(R.id.tvNine_ID);
   addTv = findViewById(R.id.tvAdd_ID);
   subTv = findViewById(R.id.tvSub_ID);
   mulTv = findViewById(R.id.tvMul_ID);
   divTv = findViewById(R.id.tvDiv_ID);
   clearTv = findViewById(R.id.tvClear_ID);
   backTv = findViewById(R.id.tvBack_ID);
   dotTv = findViewById(R.id.tvDot_ID);
   equalTv = findViewById(R.id.tvEqual_ID);
   percentTv = findViewById(R.id.tvPercent_ID);

   exprTv = findViewById(R.id.tvExpression_ID);
   resultTv = findViewById(R.id.tvResult_ID);

   zeroTv.setOnClickListener(new View.OnClickListener() {
       @Override
       public void onClick(View v) {

           if (!exprTv.getText().equals(""))
               exprTv.append("0");
       }
   });

   oneTv.setOnClickListener(new View.OnClickListener() {
       @Override
       public void onClick(View v) {

           exprTv.append("1");
       }
   });

   twoTv.setOnClickListener(new View.OnClickListener() {
       @Override
       public void onClick(View v) {

           exprTv.append("2");
       }
   });

   threeTv.setOnClickListener(new View.OnClickListener() {
       @Override
       public void onClick(View v) {

           exprTv.append("3");
       }
   });

   fourTv.setOnClickListener(new View.OnClickListener() {
       @Override
       public void onClick(View v) {

           exprTv.append("4");
       }
   });

   fiveTv.setOnClickListener(new View.OnClickListener() {
       @Override
       public void onClick(View v) {

           exprTv.append("5");
       }
   });

   sixTv.setOnClickListener(new View.OnClickListener() {
       @Override
       public void onClick(View v) {

           exprTv.append("6");
       }
   });

   sevenTv.setOnClickListener(new View.OnClickListener() {
       @Override
       public void onClick(View v) {

           exprTv.append("7");
       }
   });

   eightTv.setOnClickListener(new View.OnClickListener() {
      @Override
       public void onClick(View v) {

           exprTv.append("8");
       }
   });

   nineTv.setOnClickListener(new View.OnClickListener() {
       @Override
       public void onClick(View v) {

           exprTv.append("9");
       }
   });

   dotTv.setOnClickListener(new View.OnClickListener() {
       @Override
       public void onClick(View v) {

          exprTv.append(".");
       }
   });

   clearTv.setOnClickListener(new View.OnClickListener() {
       @Override
       public void onClick(View v) {

           exprTv.setText("");
           esultTv.setText("");
       }
   });

   backTv.setOnClickListener(new View.OnClickListener() {
       @Override
       public void onClick(View v) {

           String text = exprTv.getText().toString().trim();
           if(text.length() > 0)
           {
               text = text.substring(0,text.length()-1);
               exprTv.setText(text);
            }
       }
   });

   addTv.setOnClickListener(new View.OnClickListener() {
       @Override
       public void onClick(View v) {

           firstNo = Double.parseDouble(exprTv.getText().toString().trim());
           operator = '+';
           exprTv.setText("");
       }
   });

   subTv.setOnClickListener(new View.OnClickListener() {
       @Override
       public void onClick(View v) {

           firstNo = Double.parseDouble(exprTv.getText().toString().trim());
           operator = '-';
           exprTv.setText("");
       }
   });

   mulTv.setOnClickListener(new View.OnClickListener() {
       @Override
       public void onClick(View v) {

           firstNo = Double.parseDouble(exprTv.getText().toString().trim());
           operator = '*';
           exprTv.setText("");
       }
   });

   divTv.setOnClickListener(new View.OnClickListener() {
       @Override
       public void onClick(View v) {

           firstNo = Double.parseDouble(exprTv.getText().toString().trim());
           operator = '/';
           exprTv.setText("");
       }
   });

   equalTv.setOnClickListener(new View.OnClickListener() {
       @Override
       public void onClick(View v) {

           secondNo = Double.parseDouble(exprTv.getText().toString().trim());
           double ans;
           switch (operator)
           {
               case '+':
                   ans = firstNo + secondNo;
                   resultTv.setText(""+ans);
                   break;
               case '-':
                   ans = firstNo - secondNo;
                   resultTv.setText(""+ans);
                   break;
               case '*':
                   ans = firstNo * secondNo;
                   resultTv.setText(""+ans);
                   break;
               case '/':
                   ans = firstNo / secondNo;
                   resultTv.setText(""+ans);
                   break;
           }
       }
   });
  }
}
</code>```

答: use EXception. you need to put codes inside try ..catch block</p>

Title: Modifying Calculator in Android Studio

Body:
I made a calculator in android studio. It is working fine. But the problem is it is working only for two operands and one operator 2+2. I want to make a calculator as we have on our smartphones. It should do a calculation like 2+2*5/7-8. I tried but I am not able to code this. Can you please help. Here is my code of two operands:

TextView zeroTv,oneTv, twoTv,threeTv,fourTv,fiveTv,sixTv,sevenTv,eightTv,nineTv;
TextView addTv,subTv,mulTv,divTv,clearTv,backTv,dotTv,equalTv,percentTv;
TextView exprTv,resultTv;
double firstNo, secondNo;
char operator;

@Override
protected void onCreate(Bundle savedInstanceState) {
   super.onCreate(savedInstanceState);
   setContentView(R.layout.activity_main);

   zeroTv = findViewById(R.id.tvZero_ID);
   oneTv = findViewById(R.id.tvOne_ID);
   twoTv = findViewById(R.id.tvTwo_ID);
   threeTv = findViewById(R.id.tvThree_ID);
   fourTv = findViewById(R.id.tvFour_ID);
   fiveTv = findViewById(R.id.tvFive_ID);
   sixTv = findViewById(R.id.tvSix_ID);
   sevenTv = findViewById(R.id.tvSeven_ID);
   eightTv = findViewById(R.id.tvEight_ID);
   nineTv = findViewById(R.id.tvNine_ID);
   addTv = findViewById(R.id.tvAdd_ID);
   subTv = findViewById(R.id.tvSub_ID);
   mulTv = findViewById(R.id.tvMul_ID);
   divTv = findViewById(R.id.tvDiv_ID);
   clearTv = findViewById(R.id.tvClear_ID);
   backTv = findViewById(R.id.tvBack_ID);
   dotTv = findViewById(R.id.tvDot_ID);
   equalTv = findViewById(R.id.tvEqual_ID);
   percentTv = findViewById(R.id.tvPercent_ID);

   exprTv = findViewById(R.id.tvExpression_ID);
   resultTv = findViewById(R.id.tvResult_ID);

   zeroTv.setOnClickListener(new View.OnClickListener() {
       @Override
       public void onClick(View v) {

           if (!exprTv.getText().equals(""))
               exprTv.append("0");
       }
   });

   oneTv.setOnClickListener(new View.OnClickListener() {
       @Override
       public void onClick(View v) {

           exprTv.append("1");
       }
   });

   twoTv.setOnClickListener(new View.OnClickListener() {
       @Override
       public void onClick(View v) {

           exprTv.append("2");
       }
   });

   threeTv.setOnClickListener(new View.OnClickListener() {
       @Override
       public void onClick(View v) {

           exprTv.append("3");
       }
   });

   fourTv.setOnClickListener(new View.OnClickListener() {
       @Override
       public void onClick(View v) {

           exprTv.append("4");
       }
   });

   fiveTv.setOnClickListener(new View.OnClickListener() {
       @Override
       public void onClick(View v) {

           exprTv.append("5");
       }
   });

   sixTv.setOnClickListener(new View.OnClickListener() {
       @Override
       public void onClick(View v) {

           exprTv.append("6");
       }
   });

   sevenTv.setOnClickListener(new View.OnClickListener() {
       @Override
       public void onClick(View v) {

           exprTv.append("7");
       }
   });

   eightTv.setOnClickListener(new View.OnClickListener() {
      @Override
       public void onClick(View v) {

           exprTv.append("8");
       }
   });

   nineTv.setOnClickListener(new View.OnClickListener() {
       @Override
       public void onClick(View v) {

           exprTv.append("9");
       }
   });

   dotTv.setOnClickListener(new View.OnClickListener() {
       @Override
       public void onClick(View v) {

          exprTv.append(".");
       }
   });

   clearTv.setOnClickListener(new View.OnClickListener() {
       @Override
       public void onClick(View v) {

           exprTv.setText("");
           esultTv.setText("");
       }
   });

   backTv.setOnClickListener(new View.OnClickListener() {
       @Override
       public void onClick(View v) {

           String text = exprTv.getText().toString().trim();
           if(text.length() > 0)
           {
               text = text.substring(0,text.length()-1);
               exprTv.setText(text);
            }
       }
   });

   addTv.setOnClickListener(new View.OnClickListener() {
       @Override
       public void onClick(View v) {

           firstNo = Double.parseDouble(exprTv.getText().toString().trim());
           operator = '+';
           exprTv.setText("");
       }
   });

   subTv.setOnClickListener(new View.OnClickListener() {
       @Override
       public void onClick(View v) {

           firstNo = Double.parseDouble(exprTv.getText().toString().trim());
           operator = '-';
           exprTv.setText("");
       }
   });

   mulTv.setOnClickListener(new View.OnClickListener() {
       @Override
       public void onClick(View v) {

           firstNo = Double.parseDouble(exprTv.getText().toString().trim());
           operator = '*';
           exprTv.setText("");
       }
   });

   divTv.setOnClickListener(new View.OnClickListener() {
       @Override
       public void onClick(View v) {

           firstNo = Double.parseDouble(exprTv.getText().toString().trim());
           operator = '/';
           exprTv.setText("");
       }
   });

   equalTv.setOnClickListener(new View.OnClickListener() {
       @Override
       public void onClick(View v) {

           secondNo = Double.parseDouble(exprTv.getText().toString().trim());
           double ans;
           switch (operator)
           {
               case '+':
                   ans = firstNo + secondNo;
                   resultTv.setText(""+ans);
                   break;
               case '-':
                   ans = firstNo - secondNo;
                   resultTv.setText(""+ans);
                   break;
               case '*':
                   ans = firstNo * secondNo;
                   resultTv.setText(""+ans);
                   break;
               case '/':
                   ans = firstNo / secondNo;
                   resultTv.setText(""+ans);
                   break;
           }
       }
   });
  }
}