Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
Tags
- array
- 스프링부트
- 저장소
- 객체
- StringBuilder
- class
- 클래스
- 배열
- AssertJ
- 자바스크립트
- event
- join()
- SSL
- c#
- Swing
- JS
- 프로그래머스스쿨
- GIT
- synchronized
- JavaScript
- thread
- Python
- Java
- SpringBoot
- 메소드
- 자바
- Dict
- 파이썬
- Docker Desktop
- docker
Archives
- Today
- Total
정리노트
[안드로이드 스튜디오/Android_Studio] res \ layout 간단 기본 개념 본문
<?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">
<!--xmlns:android => XML 파일에서 항상 최외곽 태그는 이 속성을 정의 /
안드로이드 이름공간에 정의된 속성들을 참조함 암시-->
<TextView
android:id="@+id/textView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Hello World!"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<!--android:id => TextView 요소에 유일한 아이디 할당. 해당 id로 텍스트 뷰 참조할 수 있음
android:layout_width => 폭의 범위 정의 / match_parent 는 부모 화면의 폭을 전부 차지
android:layout_height => 높이의 범위 정의 / wrap_parent 는 콘텐츠 표시할 정도만 차지
android:text => 화면에 표시하는 텍스트 설정 -->
</androidx.constraintlayout.widget.ConstraintLayout>
728x90
'app > Android_Studio' 카테고리의 다른 글
[안드로이드 스튜디오/Android_Studio] 버튼 - click [단순기초] (0) | 2023.02.21 |
---|---|
[안드로이드 스튜디오/Android_Studio] 아이콘 리소스, 문자열 리소스 간단 기본 개념 (0) | 2023.02.21 |