Develop
2013.04.23 16:32
[android] ArrayAdapter 테스트 파일 ㅎㅎ
조회 수 45360 댓글 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(); } }); } }
-
[android] ListView+ArrayAdapter 테스트
-
[android] ArrayAdapter를 이용하여 출력하기
-
[android] ArrayAdapter 테스트 파일 ㅎㅎ
-
[mac] OSX(맥) 단축키 설명 ㅎㅎ
-
[link] iOS(아이폰) 개발 관련 ㅋㅋ
-
[js] 파이어폭스(Firefox;F/F)에서 outerHTML 작동하도록 만든 메소드
-
[java] 스트러츠(Struts) 세팅 ㅋㅋ
-
[java] 날짜 계산 (Date, SimpleDateFormat)
-
[js] 인터넷 주소(URL) 인코딩 ㅋㅋ
-
[js] jQuery 관련 문서 ㅎㅎ
-
[php] 몽이가 준 ajax 채팅 소스 ㅋㅋ
-
[js] Text 중 URL 형식을 인식해 단축 URL로 변경