Develop
2013.04.23 16:32
[android] ArrayAdapter 테스트 파일 ㅎㅎ
조회 수 45239 댓글 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] 아이폰용 앱 오픈 소스들
-
[ios] 언어, 지역, 국가 설정 가져오기
-
자주 쓰는 Docker 명령어 alias
-
[ios] Start developing your navigation app for CarPlay without enrollment
-
[android] 만화 어플 소스코드
-
레고 마인드스톰 NXT 수도쿠, 큐브 소스코드..
-
[c#] Hashtable <-> Json (dll 포함)
-
[C#] MD5, SHA1 해시 & 인코딩
-
[android] 점심 해결 앱 소스 코드 ㅋㅋ
-
[json] 종결자 (설명과 웹, C/C++/C# 프로그램 샘플 코드)
-
[android] keytool을 사용하여 키스토어 생성
-
[ios] Random Thoughts: Rand() vs. arc4random()