Click here

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