안드로이드 ListActivity 링크소스
SelectCurrency.java
package com.sh; import android.app.Activity; import java.util.Currency; import android.app.ListActivity; public class SelectCurrency extends ListActivity { String[] countries ={"aaa","bbb","ccc","ddd","eee","fff"}; @Override ll = Locale.getAvailableLocales(); setListAdapter(new ArrayAdapter<String>(this, @Override }
|
package com.sh; import android.app.Activity; public class PokerWinnings extends Activity { |
<?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent" > <TextView android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/hello" /> </LinearLayout> |
<?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent" > <TextView android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/hello" /> </LinearLayout> |
AndroidManifest.xml
<?xml version="1.0" encoding="utf-8"?> </manifest> |
strings.xml
<?xml version="1.0" encoding="utf-8"?> <resources> <string name="hello">Hello World, SelectCurrency!</string> <string name="app_name">리스트클릭테스트</string> </resources> |
화면
크릭후..