react-native-number-picker-library
Version:
A Native number picker for both Android & iOS
50 lines (43 loc) • 1.8 kB
text/xml
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="200dp"
android:layout_alignParentBottom="true"
android:background="#FFFFFF" >
<NumberPicker
android:id="@+id/np_quantity"
android:layout_width="match_parent"
android:layout_height="100dp"
android:layout_alignParentBottom="true"
android:layout_marginBottom="40dp"/>
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:orientation="horizontal"
android:layout_marginTop="10dp">
<TextView
android:id="@+id/bt_cancel"
android:layout_marginStart="10dp"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textStyle="bold"
android:gravity="start"
android:textSize="18sp"
android:layout_alignParentStart="true"/>
<TextView
android:id="@+id/bt_apply"
android:gravity="end"
android:textStyle="bold"
android:layout_marginEnd="10dp"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="18sp"
android:layout_alignParentEnd="true"/>
</RelativeLayout>
</RelativeLayout>
</RelativeLayout>