Skip to content
This repository has been archived by the owner on Sep 19, 2024. It is now read-only.

fix: editTexts for amount only takes numbers #82

Merged
merged 2 commits into from
Jul 12, 2019
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions app/src/main/res/layout/insert_data.xml
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,8 @@
android:layout_width="match_parent"
android:layout_height="@dimen/height_50"
android:layout_margin="@dimen/margin_45"
android:hint="@string/enter_money_donated" />
android:hint="@string/enter_money_donated"
android:inputType="number"/>

<Spinner
android:id="@+id/spinner1"
Expand Down Expand Up @@ -112,7 +113,8 @@
android:layout_width="match_parent"
android:layout_height="50dp"
android:layout_margin="45dp"
android:hint="amount" />
android:hint="amount"
android:inputType="number"/>

<android.support.v7.widget.AppCompatCheckBox
android:id="@+id/paid_check"
Expand Down
6 changes: 4 additions & 2 deletions app/src/main/res/layout/update_data.xml
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,8 @@
android:layout_width="match_parent"
android:layout_height="@dimen/height_50"
android:layout_margin="@dimen/margin_45"
android:hint="@string/enter_money_donated" />
android:hint="@string/enter_money_donated"
android:inputType="number"/>


<Spinner
Expand All @@ -106,7 +107,8 @@
android:layout_width="match_parent"
android:layout_height="50dp"
android:layout_margin="45dp"
android:hint="amount" />
android:hint="amount"
android:inputType="number"/>

<EditText
android:id="@+id/name"
Expand Down