Develop
2013.04.23 16:32
[android] ArrayAdapter 테스트 파일 ㅎㅎ
조회 수 45246 댓글 0
ArrayAdapter 샘플 코드
public class ArrayAdapterTest2 extends ListActivity { ArrayList<String> aList = new ArrayList<String>(); public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); for(int i=0; i<100; i++){ aList.add("haha"+i); } ArrayAdapter<String> aA = new ArrayAdapter<String>(this, R.layout.list_item, aList); setListAdapter(aA); ListView lv = getListView(); lv.setTextFilterEnabled(true); lv.setOnItemClickListener(new OnItemClickListener() { public void onItemClick(AdapterView<?> parent, View view, int position, long id) { // When clicked, show a toast with the TextView text Toast.makeText(getApplicationContext(), ((TextView) view).getText(), Toast.LENGTH_SHORT).show(); } }); } }
번호 | 분류 | 제목 | 글쓴이 | 날짜 | 조회 수 |
---|---|---|---|---|---|
37 | Develop | [ios] Crashlytics, Fabfic 설치/설정 | hooni | 2016.07.21 | 739 |
36 | Develop |
[Javascript][Ajax] 자바스크립트 강의 산출물
![]() |
hooni | 2019.10.05 | 714 |
35 | Develop | [android] Android N requires the IDE to be running with Java 1.8 or later 오류 | hooni | 2016.08.30 | 704 |
34 | Develop |
[ios] 비디오,네트워크,소셜로그인 테스트
![]() |
hooni | 2017.04.04 | 700 |
33 | Develop |
[matlab] 정보은닉 스테가노그래피(Steganography) 수업
![]() |
hooni | 2016.10.03 | 694 |
32 | Develop | [swift] 실행시간 측정하기 | hooni | 2021.09.14 | 692 |
31 | Develop |
정리할 자료.
![]() |
hooni | 2015.07.02 | 689 |
30 | Develop | [js] Text 값을 클립보드에 복사하기 | hooni | 2020.10.10 | 689 |
29 | Develop | Aspect Oriented Programming in Objective-C | hooni | 2015.05.18 | 686 |
28 | Develop | [ios] WWDC 2015 샘플 소스 코드 통합파일 | hooni | 2015.07.20 | 685 |
27 | Develop | [ios] 여러 버전의 Xcode 사용하기 | hooni | 2022.05.28 | 683 |
26 | Develop |
[ios] Touch ID 적용 샘플 코드 (예제)
![]() |
hooni | 2015.02.23 | 676 |