Skip to content
Snippets Groups Projects
Commit b05a2f15 authored by COUCHET Thibaud's avatar COUCHET Thibaud
Browse files

Scroll view and onClick

parent b71f060f
No related branches found
No related tags found
No related merge requests found
...@@ -8,7 +8,9 @@ ...@@ -8,7 +8,9 @@
android:layout_height="match_parent" android:layout_height="match_parent"
android:fitsSystemWindows="true" android:fitsSystemWindows="true"
tools:context=".MainActivity"> tools:context=".MainActivity">
<ScrollView
android:layout_width="match_parent"
android:layout_height="match_parent">
<androidx.constraintlayout.widget.ConstraintLayout <androidx.constraintlayout.widget.ConstraintLayout
android:id="@+id/mainContent" android:id="@+id/mainContent"
android:layout_width="match_parent" android:layout_width="match_parent"
...@@ -176,6 +178,7 @@ ...@@ -176,6 +178,7 @@
android:layout_marginStart="150dp" android:layout_marginStart="150dp"
android:background="@drawable/rounded_black_button" android:background="@drawable/rounded_black_button"
android:gravity="center" android:gravity="center"
android:onClick="addPhoneNumber"
android:padding="10dp" android:padding="10dp"
android:text="+" android:text="+"
android:textColor="#FFFFFF" android:textColor="#FFFFFF"
...@@ -204,4 +207,5 @@ ...@@ -204,4 +207,5 @@
app:layout_constraintTop_toBottomOf="@+id/phonesLayout" /> app:layout_constraintTop_toBottomOf="@+id/phonesLayout" />
</androidx.constraintlayout.widget.ConstraintLayout> </androidx.constraintlayout.widget.ConstraintLayout>
</ScrollView>
</androidx.coordinatorlayout.widget.CoordinatorLayout> </androidx.coordinatorlayout.widget.CoordinatorLayout>
\ No newline at end of file
...@@ -47,6 +47,7 @@ ...@@ -47,6 +47,7 @@
android:background="@drawable/rounded_red_button" android:background="@drawable/rounded_red_button"
android:drawableTop="@android:drawable/ic_menu_delete" android:drawableTop="@android:drawable/ic_menu_delete"
android:gravity="center" android:gravity="center"
android:onClick="removePhoneNumber"
android:padding="10dp" android:padding="10dp"
android:text="" android:text=""
android:textColor="#FFFFFF" android:textColor="#FFFFFF"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment