UNPKG

react-native-payment-gateway

Version:

this module for payment gateway, first gateway is midtrans payment gateway, i hope all payment gateway so you can contribute to this module

118 lines (102 loc) 4.83 kB
<android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" android:background="@android:color/white" android:fitsSystemWindows="true"> <android.support.design.widget.AppBarLayout android:id="@+id/main_appbar" android:layout_width="match_parent" android:layout_height="wrap_content"> <android.support.v7.widget.Toolbar android:id="@+id/main_toolbar" style="@style/ThemeOverlay.AppCompat.ActionBar" android:layout_width="match_parent" android:layout_height="?attr/actionBarSize" android:background="@android:color/white" app:contentInsetLeft="0dp" app:contentInsetStart="0dp" app:contentInsetStartWithNavigation="0dp"> <RelativeLayout android:layout_width="match_parent" android:layout_height="match_parent" android:gravity="center" android:layout_marginRight="@dimen/fifty_six_dp" android:layout_marginEnd="@dimen/fifty_six_dp" android:orientation="horizontal"> <com.midtrans.sdk.uikit.widgets.DefaultTextView android:layout_centerInParent="true" android:id="@+id/merchant_name" android:layout_width="wrap_content" android:layout_height="wrap_content" android:textColor="@color/dark_gray" android:textSize="@dimen/tool_bar_title_size" android:visibility="gone" tools:visibility="visible" tools:text="Name" /> <ImageView android:layout_centerInParent="true" android:id="@+id/merchant_logo" android:layout_width="@dimen/logo_width" android:layout_height="@dimen/logo_height" android:scaleType="centerInside" tools:src="@drawable/ic_veritrans" /> </RelativeLayout> </android.support.v7.widget.Toolbar> </android.support.design.widget.AppBarLayout> <RelativeLayout android:layout_width="match_parent" android:layout_height="wrap_content" app:layout_behavior="@string/appbar_scrolling_view_behavior"> <android.support.v7.widget.RecyclerView android:id="@+id/rv_item_list" android:layout_width="match_parent" android:layout_height="wrap_content" android:background="@color/gray.primary" app:layout_behavior="@string/appbar_scrolling_view_behavior" /> <android.support.v7.widget.RecyclerView android:id="@+id/rv_payment_methods" android:layout_width="match_parent" android:layout_height="match_parent" android:layout_above="@+id/secure_badge" android:layout_below="@+id/rv_item_list" app:layout_behavior="@string/appbar_scrolling_view_behavior" /> <ImageView android:id="@+id/secure_badge" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_alignParentBottom="true" android:background="@color/light_gray" android:padding="@dimen/eight_dp" android:scaleType="centerInside"/> </RelativeLayout> <LinearLayout android:id="@+id/progress_container" android:layout_width="match_parent" android:layout_height="match_parent" android:background="@color/white" android:gravity="center_vertical|center_horizontal" android:orientation="vertical" android:visibility="gone" tools:visibility="gone"> <include layout="@layout/layout_midtrans_progress" /> </LinearLayout> <LinearLayout android:id="@+id/maintenance_container" android:layout_width="match_parent" android:layout_height="match_parent" android:layout_marginTop="?attr/actionBarSize" android:background="@color/white" android:gravity="center_vertical|center_horizontal" android:orientation="vertical" android:visibility="gone" tools:visibility="gone"> <include layout="@layout/layout_maintenance" /> </LinearLayout> <include layout="@layout/layout_sandbox_badge" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="bottom|start" /> </android.support.design.widget.CoordinatorLayout>