<?xml version="1.0" encoding="utf-8"?>
<layout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
tools:context=".MainActivity">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#FFFFFF">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:orientation="vertical">
<com.google.android.material.textfield.TextInputLayout
android:layout_width="match_parent"
android:layout_marginBottom="8dp"
android:layout_marginTop="8dp"
android:layout_height="wrap_content">
<com.google.android.material.textfield.TextInputEditText
android:id="@+id/amount_et"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="Amount "
android:digits="0123456789."
android:inputType="numberDecimal"
/>
</com.google.android.material.textfield.TextInputLayout>
<androidx.cardview.widget.CardView
android:id="@+id/keyboard_layout"
android:layout_width="match_parent"
android:layout_gravity="bottom"
android:layout_margin="30dp"
android:padding="20dp"
android:elevation="10dp"
android:layout_height="wrap_content">
<GridView
android:id="@+id/keyboard_view"
android:layout_width="fill_parent"
android:layout_height="match_parent"
android:horizontalSpacing="10dp"
android:verticalSpacing="10dp"
tools:listitem="@layout/keyboard_item"
android:numColumns="3"/>
</androidx.cardview.widget.CardView>
</LinearLayout>
</RelativeLayout>
</layout>
Be the first to comment.