<?xml version="1.0" encoding="utf-8"?>
<!--
  ~ Copyright (c) 2019 Adyen N.V.
  ~
  ~ This file is open source and available under the MIT license. See the LICENSE file for more info.
  ~
  ~ Created by caiof on 21/3/2019.
  -->

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    xmlns:tools="http://schemas.android.com/tools"
    android:orientation="vertical">

    <include
         layout="@layout/bottom_sheet_indicator"
         android:layout_width="match_parent"
         android:layout_height="wrap_content"/>

    <TextView
        android:id="@+id/header"
        style="@style/AdyenCheckout.TextAppearance.HeaderTitle"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:textIsSelectable="false"
        tools:text="Header"/>

    <androidx.core.widget.NestedScrollView
        android:layout_width="match_parent"
        android:layout_height="0dp"
        android:layout_weight="1">
        <LinearLayout android:layout_width="match_parent"
                      android:layout_height="wrap_content"
                      android:orientation="vertical">
            <FrameLayout
                android:id="@+id/componentContainer"
                android:layout_width="match_parent"
                android:layout_height="0dp"
                android:layout_weight="1"/>

            <Button
                android:id="@+id/payButton"
                style="@style/AdyenCheckout.Button.Colored"
                android:enabled="false"
                android:text="@string/pay_button"/>
        </LinearLayout>
    </androidx.core.widget.NestedScrollView>
</LinearLayout>