Index: trunk/11.ListTest/default.properties =================================================================== --- trunk/11.ListTest/default.properties (revision 28) +++ trunk/11.ListTest/default.properties (revision 28) @@ -0,0 +1,13 @@ +# This file is automatically generated by Android Tools. +# Do not modify this file -- YOUR CHANGES WILL BE ERASED! +# +# This file must be checked in Version Control Systems. +# +# To customize properties used by the Ant build system use, +# "build.properties", and override values to adapt the script to your +# project structure. + +# Indicates whether an apk should be generated for each density. +split.density=false +# Project target. +target=android-7 Index: trunk/11.ListTest/.classpath =================================================================== --- trunk/11.ListTest/.classpath (revision 28) +++ trunk/11.ListTest/.classpath (revision 28) @@ -0,0 +1,7 @@ + + + + + + + Index: trunk/11.ListTest/.project =================================================================== --- trunk/11.ListTest/.project (revision 28) +++ trunk/11.ListTest/.project (revision 28) @@ -0,0 +1,33 @@ + + + 11.ListTest + + + + + + com.android.ide.eclipse.adt.ResourceManagerBuilder + + + + + com.android.ide.eclipse.adt.PreCompilerBuilder + + + + + org.eclipse.jdt.core.javabuilder + + + + + com.android.ide.eclipse.adt.ApkBuilder + + + + + + com.android.ide.eclipse.adt.AndroidNature + org.eclipse.jdt.core.javanature + + Index: trunk/11.ListTest/AndroidManifest.xml =================================================================== --- trunk/11.ListTest/AndroidManifest.xml (revision 28) +++ trunk/11.ListTest/AndroidManifest.xml (revision 28) @@ -0,0 +1,18 @@ + + + + + + + + + + + + + + Index: trunk/11.ListTest/src/soo/ui/array/ListTest.java =================================================================== --- trunk/11.ListTest/src/soo/ui/array/ListTest.java (revision 28) +++ trunk/11.ListTest/src/soo/ui/array/ListTest.java (revision 28) @@ -0,0 +1,41 @@ +package soo.ui.array; + +import android.app.ListActivity; +import android.os.Bundle; +import android.view.View; +import android.widget.ArrayAdapter; +import android.widget.EditText; +import android.widget.ListView; + +public class ListTest extends ListActivity { + /** Called when the activity is first created. */ + + //String strs[] = {"�고�寃�,"諛����,"�λ���,"源����,"�댁���,"怨����,"�댁���,"�����}; + + EditText et; + @Override + public void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.main); + + et = (EditText)findViewById(R.id.editTest01); + +// android瑜��ъ���㈃ �댁���� ��� ������ +// �곕���layout��� list view ���대���留�떠以�� ���. android:id="@android:id/list" + +// 1. 諛곗����댁��댁� ��린 +// setListAdapter(new ArrayAdapter(this, android.R.layout.simple_list_item_1,strs)); + +// 2. xml ���댁��댁� ��린 + ArrayAdapter aa2 = ArrayAdapter.createFromResource(this, R.array.singer, android.R.layout.simple_list_item_1); + setListAdapter(aa2); + + + } + + public void onListItemClick(ListView parent,View v,int pos,long id){ + et.setText(R.array.singer); + } +} + +//xml�������string �곗��곕� ������ 蹂댁�... Index: trunk/11.ListTest/res/values/arrays.xml =================================================================== --- trunk/11.ListTest/res/values/arrays.xml (revision 28) +++ trunk/11.ListTest/res/values/arrays.xml (revision 28) @@ -0,0 +1,12 @@ + + + + �고�寃� + �λ��� + 源���� + �댁��� + �댁��� + ����� + 怨���� + + Index: trunk/11.ListTest/res/values/strings.xml =================================================================== --- trunk/11.ListTest/res/values/strings.xml (revision 28) +++ trunk/11.ListTest/res/values/strings.xml (revision 28) @@ -0,0 +1,5 @@ + + + Hello World, ListTest! + ListTest + Index: trunk/11.ListTest/res/layout/main.xml =================================================================== --- trunk/11.ListTest/res/layout/main.xml (revision 28) +++ trunk/11.ListTest/res/layout/main.xml (revision 28) @@ -0,0 +1,17 @@ + + + + + +