xml 에서 ListView를 생성하고 아래 노란부분을 설정 해 주면 됩니다.
<?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">
<ListView
android:id="@id/android:list"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_weight="1"
android:fastScrollEnabled="true" />
<LinearLayout
android:orientation="horizontal"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
style="@android:style/ButtonBar">
<Button
android:id="@+id/browse_button_home"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/browse_home"
android:textAppearance="?android:attr/textAppearanceMedium"
android:layout_weight="1"
android:drawableLeft="@drawable/ic_menu_home" />
<Button
android:id="@+id/browse_button_close"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/browse_close"
android:textAppearance="?android:attr/textAppearanceMedium"
android:layout_weight="1"
android:drawableLeft="@drawable/ic_menu_close_clear_cancel" />
</LinearLayout>
</LinearLayout>
'IT > Android' 카테고리의 다른 글
안드로이드 Frame Animation 실행하기(onCreate에서는 호출할 수 없을때) (0) | 2012.02.20 |
---|---|
안드로이드 pageCurlSample 코드 (0) | 2012.02.16 |
안드로이드 버튼에 텍스트와 이미지 같이 출력하기 (0) | 2012.02.16 |
안드로이드 SharedPreferences 변화 감지하기 (0) | 2012.02.16 |
안드로이드 Notification Manager (0) | 2012.02.16 |