본문 바로가기

# 02/Android

[Android] ConstraintLayout 1- default

반응형
<?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">

<TextView
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" />

</androidx.constraintlayout.widget.ConstraintLayout>













반응형

'# 02 > Android' 카테고리의 다른 글

[Android] ConstraintLayout 3 - 가로 3개 배치  (0) 2019.08.14
[Android] ConstraintLayout 2 - 가로 2개 배치  (0) 2019.08.14
[Android] Dynamic feature module  (0) 2019.08.05
[Android] RecyclerView  (0) 2019.07.15
[Android] ListView  (0) 2019.07.15