[학습] 안드로이드 스튜디오 2. 화면 그리기, 레이아웃
자음2021. 4. 10. 23:00
728x90
320x100
palette 란에서 layout, image button 쪽을 살펴보자.
linear layout, relative layout 구성요소를 통해 기본적인 화면 구성에 대해서 학습할 수 있다.
linear layout은 가로로 배치 된다.
<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:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".MainActivity">
1
2
3
4
5
6
을 쳐보고 design 란으로 넘어가서 확인하면 바로 이해할 수 있다.
relativelayout은 각 컨텐츠 간의 위치관계를 정립해주어야한다.
[꿀팁] - layout을 치고 엔터를 누르면 원하는 기능을 찾을 수 있다.
layout 안의 layout
weight sum
id 부여
위치관계 정립
등등을 알아야한다.
320x100
'자음' 카테고리의 다른 글
[학습] 자바 - 1. 오리엔테이션 (0) | 2021.04.03 |
---|---|
1인 기업, 창업, 무자본 스타트업 (0) | 2021.03.28 |
[팁] 의자 교체, 의자 가스, 의자 높낮이 조절 고장, 눌러도 안 올라올 때. (0) | 2021.03.27 |
인터넷 부업- 쿠팡 파트너스- 현재 역대급 커미션 10% 이벤트 중! (0) | 2021.03.27 |