Hide keyboard when clicked outside of name input field.

This commit is contained in:
2020-08-30 20:39:38 +02:00
parent 587651d697
commit f5cd5775cf
3 changed files with 40 additions and 17 deletions

View File

@@ -17,13 +17,13 @@
app:layout_constraintTop_toTopOf="parent">
<LinearLayout
android:id="@+id/Names"
android:id="@+id/viewNames"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<EditText
android:id="@+id/NameTeamA"
android:id="@+id/nameTeamA"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
@@ -37,7 +37,7 @@
android:textAppearance="@style/TextAppearance.AppCompat.Large" />
<EditText
android:id="@+id/NameTeamB"
android:id="@+id/nameTeamB"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
@@ -53,7 +53,7 @@
</LinearLayout>
<LinearLayout
android:id="@+id/Score"
android:id="@+id/viewScore"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
@@ -86,7 +86,8 @@
android:id="@+id/scrollViewHistory"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginTop="16dp">
android:layout_marginTop="16dp"
android:clickable="true">
<LinearLayout
android:layout_width="match_parent"
@@ -123,7 +124,7 @@
app:layout_constraintStart_toEndOf="@+id/left">
<LinearLayout
android:id="@+id/Input"
android:id="@+id/viewInput"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">