Skip to content

Instantly share code, notes, and snippets.

@codeforfun-jp
Created November 11, 2023 00:25
Show Gist options
  • Save codeforfun-jp/bdc70054472e3903e493323d77a170ec to your computer and use it in GitHub Desktop.
Save codeforfun-jp/bdc70054472e3903e493323d77a170ec to your computer and use it in GitHub Desktop.
How to create dialog series 1 basic - kotlin 2
<?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"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".MainActivity">
<Button
android:id="@+id/btn"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="ダイアログを表示"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
</androidx.constraintlayout.widget.ConstraintLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment