[안드로이드] 화면 구현 기초

2020. 8. 28. 17:19·공부/Kotlin

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout 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:orientation="vertical"
    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="안녕하세요? 반갑습니다."
        android:textSize="25sp" />

    <TextView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="잘 부탁드립니다"
        android:textColor="#FF0000"/>

    <TextView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="제 이름은 홍길동 입니다."
        android:textStyle="italic"/>

</LinearLayout>

 

화면에 나타낼 때 Layout안에 작성을 한다.

TextView는 글자를 보여준다.

2020/08/28 - [프로그래밍언어/Kotlin] - [안드로이드] 텍스트 뷰(TextView)

 

[안드로이드] 텍스트 뷰(TextView)

개요 사용자에게 문구를 "보여주기만 할 때" 사용 사용자는 이 문구를 수정할 수 없다 View: 직접 내 자신이 화면에 등장해서, 사용자에게 컨텐츠를 표현하는 용도 LinearLayout 등의 그릇에 담기는 ��

90052.tistory.com

 

'공부 > Kotlin' 카테고리의 다른 글

[안드로이드] 에디트 텍스트(EditText)  (0) 2020.08.28
[안드로이드] 버튼 태그(Button)  (0) 2020.08.28
[안드로이드] 회원가입 화면 그리기 연습  (0) 2020.08.28
[안드로이드] 텍스트 뷰(TextView)  (0) 2020.08.28
[안드로이드 스튜디오] 프로젝트의 구조  (0) 2020.08.27
'공부/Kotlin' 카테고리의 다른 글
  • [안드로이드] 버튼 태그(Button)
  • [안드로이드] 회원가입 화면 그리기 연습
  • [안드로이드] 텍스트 뷰(TextView)
  • [안드로이드 스튜디오] 프로젝트의 구조
ompeom
ompeom
  • ompeom
    괴발개발 공부하는 블로그
    ompeom
  • 전체
    오늘
    어제
    • 분류 전체보기 (34)
      • 공부 (18)
        • Python (2)
        • Java (0)
        • Kotlin (14)
        • Spring batch (2)
        • Spring (0)
      • 기타 (8)
      • 프로젝트 (8)
  • 블로그 메뉴

    • 홈
    • 태그
    • 방명록
  • 링크

  • 공지사항

  • 인기 글

  • 태그

    넥스트스탭
    리스트
    딕셔너리
    자료형
    파이썬
    내장함수
    Python
    튜플
    NextSTEP
    TDD강의
    세트
  • 최근 댓글

  • 최근 글

  • hELLO· Designed By정상우.v4.10.3
ompeom
[안드로이드] 화면 구현 기초
상단으로

티스토리툴바

단축키

내 블로그

내 블로그 - 관리자 홈 전환
Q
Q
새 글 쓰기
W
W

블로그 게시글

글 수정 (권한 있는 경우)
E
E
댓글 영역으로 이동
C
C

모든 영역

이 페이지의 URL 복사
S
S
맨 위로 이동
T
T
티스토리 홈 이동
H
H
단축키 안내
Shift + /
⇧ + /

* 단축키는 한글/영문 대소문자로 이용 가능하며, 티스토리 기본 도메인에서만 동작합니다.