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 |
Tags
- 클래스
- 기본
- Android
- layout
- 전화걸기
- Menu
- 메서드
- 에러페이지
- 국제화
- 배열
- JavaScript
- paint
- 이클립스
- JSP
- 안드로이드
- AWT
- 생성자
- Java
- mybatis
- 오버로딩
- Spring
- HTML
- 메소드
- OGNL
- 어노테이션
- oracle
- Eclips
- struts2
- Graphic
- 예외처리
Archives
- Today
- Total
note
Android 필드 박스 본문
package com.commonsware.android.basic2;
//입력필드
import android.app.Activity;
import android.os.Bundle;
import android.widget.EditText;
public class FieldDemo extends Activity {
@Override
public void onCreate(Bundle icicle) {
super.onCreate(icicle);
setContentView(R.layout.main);
EditText fld = (EditText) findViewById(R.id.field);
fld.setText("버튼, 레이블과 함께 입력 필드 역시"
+ "\"GUI 툴킷\"의 가장 핵심적인 기본 위젯 가운데 하나임");
}
}
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical" >
<EditText
android:id="@+id/field"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:singleLine="false"
/>
</LinearLayout>
'Android > 기본' 카테고리의 다른 글
| Android Radio Button (라디오 버튼) (0) | 2012.01.06 |
|---|---|
| Android 체크 박스 (0) | 2012.01.05 |
| Android 이미지 넣기 (0) | 2012.01.05 |
| Android 간단한 이벤트 3 (0) | 2012.01.05 |
| Android 간단한 이벤트2 (0) | 2012.01.05 |