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
- layout
- 클래스
- JavaScript
- Android
- HTML
- Menu
- 기본
- Eclips
- 배열
- 에러페이지
- 국제화
- 전화걸기
- JSP
- 생성자
- 메서드
- OGNL
- Spring
- AWT
- mybatis
- paint
- 메소드
- 예외처리
- struts2
- 안드로이드
- 어노테이션
- Java
- Graphic
- oracle
- 이클립스
- 오버로딩
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 |