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
- Getrows
- println
- readonly
- jquery 레이어
- 무선랜카드
- XMLHTTP
- ASP
- 크로스 컴파일
- RTL88x2BU
- disabled
- replace
- javascript
- lsusb
- FileSystemObject
- synology
- utf-8
- ajax
- include
- euc-kr
- SQL Injection
- jQuery
- submit
- DS718+
- PHP GCM
- Injection
- 시놀로지
- form
- 따라다니는 배너
- AC1300
- 커널
Archives
- Today
- Total
아는 것이 좋은 것이다.
[Android] 자동완성 예제 본문
레이아웃
<AutoCompleteTextView
android:id="@+id/textview1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:includeFontPadding="false"
android:inputType="text"
android:textSize="15sp"
android:textStyle="bold" />
자바 코드
String[] arrayData = {"aaa", "BBB", "CCC"};
ArrayAdapter<String> arrAdapter = new ArrayAdapter<String>(mContext,android.R.layout.simple_dropdown_item_1line, arrayData);
autoEdit = (AutoCompleteTextView) findViewById(R.id.textview1);
autoEdit.setAdapter(arrAdapter);
'Android' 카테고리의 다른 글
[Android] ProgressDialog 구현 (0) | 2014.11.05 |
---|---|
[Android] EditText 글자수, 한줄 제한 (0) | 2014.11.04 |
[Android] 로그캣 사용하기 (로그찍기) (0) | 2014.11.01 |
[Android] 간단한 다이얼로그 (0) | 2014.10.30 |
[Android] Activity 이동시 값 넘기기 (0) | 2014.10.27 |
Comments