From 33ee1704ecf24facd8e277217aa075165ca0b2ab Mon Sep 17 00:00:00 2001 From: Billy Brawner Date: Sat, 4 Mar 2017 23:17:07 -0600 Subject: [PATCH] Set max length on number input to prevent breaking the app --- app/src/main/res/layout/fragment_game.xml | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/main/res/layout/fragment_game.xml b/app/src/main/res/layout/fragment_game.xml index 9eed18c..dc0c99a 100644 --- a/app/src/main/res/layout/fragment_game.xml +++ b/app/src/main/res/layout/fragment_game.xml @@ -37,6 +37,7 @@ android:layout_height="wrap_content" android:layout_width="wrap_content" android:inputType="number" + android:maxLength="3" android:id="@+id/guessInput" android:layout_centerHorizontal="true" android:layout_centerVertical="true"