on
액티비티를 Dialog로 띄우기
액티비티를 Dialog로 띄우기
< ?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 = ".DialogActivity" >
< androidx.constraintlayout.widget.ConstraintLayout
android:layout_width = "300dp"
android:layout_height = "300dp"
android:orientation = "vertical"
app:layout_constraintBottom_toBottomOf = "parent"
app:layout_constraintEnd_toEndOf = "parent"
app:layout_constraintStart_toStartOf = "parent"
app:layout_constraintTop_toTopOf = "parent" >
< TextView
android:id = "@+id/textView"
android:layout_width = "wrap_content"
android:layout_height = "wrap_content"
android:text = "Dialog Activity"
android:textSize = "30sp"
app:layout_constraintBottom_toBottomOf = "parent"
app:layout_constraintEnd_toEndOf = "parent"
app:layout_constraintStart_toStartOf = "parent"
app:layout_constraintTop_toTopOf = "parent" / >
< / androidx.constraintlayout.widget.ConstraintLayout >
from http://tmdfyd0807.tistory.com/28 by ccl(A) rewrite - 2021-09-15 18:01:32