* 결과
'프로그래밍 > Android' 카테고리의 다른 글
Output출력 - 토스트 (0) | 2012.07.19 |
---|---|
Nested class (0) | 2012.07.17 |
리니어레이아웃 (0) | 2012.07.16 |
레이아웃 파일 및 파일 구성(XML의 장점) (0) | 2012.07.16 |
Android기본구조와 리소스 접근법과 AndroidManifest.xml 설명 (0) | 2012.07.13 |
<?xml version="1.0" encoding="utf-8"?>
<!--android : layout_width -> 내가 만들고 있는 View의 가로(너비) 길이
android : layout_height ->세로 길이 (높이) 지정
: match_parent == fill_parent : 부모의 크기를 다 차지 한다.
: wrap_content : 자식 노드들을 보여줄 크기 까지만 차지 한다.
: android:orientation="vertical" : 방향을 수직(위에서 아래로)으로 주겠다.
: EditText : HTML에서 input과 같은 역할
: hint 는 새로운 글이 들어오면 기존의 글이 사라짐, text는 기존꺼를 남겨두고 글을 쓴다.
-->
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/tv_label"
android:textSize="@dimen/tv_size"
android:background="@color/tv_bg"/>
<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="자기소개"
/>
<Button
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/btn_label"
android:textSize="@dimen/btn_size"
android:textColor="@color/tv_bg"/>
</LinearLayout>
<resources>
<dimen name="padding_small">8dp</dimen>
<dimen name="padding_medium">8dp</dimen>
<dimen name="padding_large">16dp</dimen>
<dimen name="tv_size">25dp</dimen>
<dimen name="btn_size">30dp</dimen>
<color name="tv_bg">#11FFFF</color>
</resources>
<resources>
<string name="app_name">LinearLayoutTest</string>
<string name="hello_world">Hello world!</string>
<string name="menu_settings">Settings</string>
<string name="title_activity_main">MainActivity</string>
<string name="tv_label">글을 입력하세요</string>
<string name="btn_label">클릭 하세요</string>
</resources>
* 결과
Output출력 - 토스트 (0) | 2012.07.19 |
---|---|
Nested class (0) | 2012.07.17 |
리니어레이아웃 (0) | 2012.07.16 |
레이아웃 파일 및 파일 구성(XML의 장점) (0) | 2012.07.16 |
Android기본구조와 리소스 접근법과 AndroidManifest.xml 설명 (0) | 2012.07.13 |
by 조은성 |
||
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
내 블로그 - 관리자 홈 전환 |
Q
Q
|
---|---|
새 글 쓰기 |
W
W
|
글 수정 (권한 있는 경우) |
E
E
|
---|---|
댓글 영역으로 이동 |
C
C
|
이 페이지의 URL 복사 |
S
S
|
---|---|
맨 위로 이동 |
T
T
|
티스토리 홈 이동 |
H
H
|
단축키 안내 |
Shift + /
⇧ + /
|
* 단축키는 한글/영문 대소문자로 이용 가능하며, 티스토리 기본 도메인에서만 동작합니다.