Skip to content

Commit

Permalink
Add button to display error toast
Browse files Browse the repository at this point in the history
  • Loading branch information
5AbhishekSaxena committed Aug 17, 2020
1 parent c41fcb5 commit 718e38a
Showing 1 changed file with 24 additions and 1 deletion.
25 changes: 24 additions & 1 deletion app/src/main/res/layout/activity_main.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,33 @@
android:id="@+id/button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="@dimen/margin_default"
android:text="Show toast"
app:layout_constraintBottom_toTopOf="@id/builder_button"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_chainStyle="packed" />

<Button
android:id="@+id/builder_button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="@dimen/margin_default"
android:text="Show toast using Builder"
app:layout_constraintBottom_toTopOf="@id/error_button"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/button" />

<Button
android:id="@+id/error_button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Show Error toast"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
app:layout_constraintTop_toBottomOf="@id/builder_button" />

</androidx.constraintlayout.widget.ConstraintLayout>

0 comments on commit 718e38a

Please sign in to comment.