Android Kotlin 기초
본문 바로가기

- Kotlin

Android Kotlin 기초

728x90
반응형

Android Kotlin 기초

1.0 Android 스튜디오 설치
1.1 시작하기

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
    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_centerInParent="true"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="Hello Kotlin!"
        android:textSize="50dp"
        app:layout_constraintBottom_toBottomOf="parent"
        app:layout_constraintLeft_toLeftOf="parent"
        app:layout_constraintRight_toRightOf="parent"
        app:layout_constraintTop_toTopOf="parent" />

</RelativeLayout>

Kotlin 01 화면

 

728x90
반응형

'- Kotlin' 카테고리의 다른 글

Android Kotlin 기초 gradent 화면  (0) 2022.09.23
Android Kotlin 기초 lifecycle  (0) 2022.09.23