Skip to content

Commit

Permalink
Add a button
Browse files Browse the repository at this point in the history
  • Loading branch information
erikrios committed Feb 9, 2021
1 parent bf3e755 commit ff7be64
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions app/src/main/res/layout/activity_main.xml
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".MainActivity">

<TextView
<Button
android:id="@+id/button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Hello World!"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toTopOf="parent" />
android:layout_centerInParent="true"
android:gravity="center"
android:onClick="sendNotification"
android:text="@string/send_notif"
android:textColor="@android:color/white" />

</androidx.constraintlayout.widget.ConstraintLayout>
</RelativeLayout>

0 comments on commit ff7be64

Please sign in to comment.