Develop
2013.04.23 16:32
[android] ArrayAdapter 테스트 파일 ㅎㅎ
조회 수 45286 댓글 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(); } }); } }
-
[iphone] PerfectlyClear 보정솔루션 최신..
-
이어서 작업할 내용~
-
아이 훌레시 작업중 ㅋㅋ
-
[ios] 스터디 자료 (from 종길M)
-
[ios] 패스(path) 앱 메뉴 스타일
-
[ios] 최신 UI 모음.. (나중에 정리할 것)
-
[ios] APNS 샘플 코드..
-
[js] 2048 예쁘게 만들고 있는거.. ㅋㄷ
-
[ios] IB 없이 개발하기 (html)
-
사이버보안실무 수업 메모
-
DDay Memo 1.9.4 소스코드
-
[c#] 전자금융보안론 발표/설치 자료(툴바 소스코드)