UNPKG

react-native-braintree-dropin-ui

Version:

> React Native integration of Braintree Drop-in IOS V4 ANDROID V2 (Apple Pay &Android Pay Enabled)

94 lines (76 loc) 3.74 kB
<?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" android:layout_margin="0dp" android:onClick="onBackgroundClicked" android:background="@android:color/transparent" tools:context=".DropInActivity"> <LinearLayout android:id="@+id/bt_dropin_bottom_sheet" android:elevation="5dp" android:layout_width="@dimen/bt_full_width" android:layout_height="wrap_content" android:orientation="vertical" android:layout_alignParentBottom="true" android:layout_centerHorizontal="true" android:animateLayoutChanges="true" android:background="@color/bt_base_background" tools:targetApi="lollipop"> <ViewSwitcher android:id="@+id/bt_loading_view_switcher" android:layout_width="match_parent" android:layout_height="wrap_content" android:animateLayoutChanges="true" android:measureAllChildren="false"> <LinearLayout android:layout_width="match_parent" android:layout_height="120dp" android:orientation="vertical" android:gravity="center"> <ProgressBar android:layout_width="@dimen/bt_progress_bar_diameter" android:layout_height="@dimen/bt_progress_bar_diameter" android:layout_gravity="center" android:indeterminate="true"/> </LinearLayout> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="vertical" android:animateLayoutChanges="true"> <LinearLayout android:id="@+id/bt_vaulted_payment_methods_wrapper" android:orientation="vertical" android:layout_width="wrap_content" android:layout_height="wrap_content" android:animateLayoutChanges="true" android:visibility="gone"> <TextView style="@style/bt_choose_payment_label" android:paddingTop="@dimen/bt_choose_existing_payment_label_padding_top" android:text="@string/bt_recent"/> <android.support.v7.widget.RecyclerView android:id="@+id/bt_vaulted_payment_methods" android:layout_width="match_parent" android:layout_height="wrap_content" android:paddingLeft="4dp" android:paddingRight="4dp"/> <include layout="@layout/bt_section_divider" /> </LinearLayout> <TextView style="@style/bt_choose_payment_label" android:id="@+id/bt_supported_payment_methods_header" android:text="@string/bt_select_payment_method" android:paddingTop="@dimen/bt_choose_new_payment_label_padding_top"/> <ListView android:id="@+id/bt_supported_payment_methods" android:layout_width="match_parent" android:layout_height="wrap_content" android:divider="@drawable/bt_list_view_divider" android:dividerHeight="1dp"/> </LinearLayout> </ViewSwitcher> </LinearLayout> </RelativeLayout>