Develop
2013.04.23 16:32
[android] ArrayAdapter 테스트 파일 ㅎㅎ
조회 수 45245 댓글 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(); } }); } }
-
[ios] 최신 UI 모음.. (나중에 정리할 것)
-
[ios] UI컨트롤러 샘플코드
-
[ios] libxml/tree.h file not found
-
[ios] 소소한 팁 (Rect,Point,Path,URL 등)
-
[ios] Background 에서 네트워크 사용
-
[ios] App States
-
영어의 12 시제 (The twelve tenses of English)
-
[mac] 컨텍스트(Context) 메뉴 "다음으로 열기" 내용 정리
-
git 브런치 배우기 (링크)
-
GCM 사용하기 3 (JSP로 GCM 푸시 서버 만들기)
-
GCM 사용하기 2 (단말에 GCM 구현하기)
-
[android] GCM 사용하기 1 (GCM 서비스 신청하기)