
1.
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/linear_write_frame"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<include
layout="@layout/header_with_menu"
android:id="@+id/header_with_menu"
android:layout_width="fill_parent"
android:layout_height="wrap_content" />
<RelativeLayout
android:layout_width="fill_parent"
android:layout_height="120dp"
android:background="@drawable/box"
android:paddingTop="10dp" >
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/profile"
android:id="@+id/iv_profile_img"
/>
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_toRightOf="@id/iv_profile_img"
android:text="이름......."
android:id="@+id/et_profile_nm"
/>
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_toRightOf="@id/iv_profile_img"
android:layout_below="@id/et_profile_nm"
android:textSize="5pt"
android:textColor="#FFFFFF"
android:text="자기소개......"
/>
</RelativeLayout>
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textSize="7pt"
android:textColor="#FFFFFF"
/>
<ListView
android:id="@+id/lv_write_list"
android:layout_height="wrap_content"
android:layout_width="fill_parent"></ListView>
</LinearLayout>
2.
<?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"
>
<Button
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:paddingTop="10dp"
android:background="@drawable/btn_normal_long"
/>
</LinearLayout>
커스텀레이아웃을 하려고, 위와 같이 2개의 레이아웃을 두고...
1번은 setContentView에서 설정합니다.
2번은 getView에서 설정을하고요.
헌데, 궁금한게... ArrayList의 갯수만큼 버튼이 출력되도록 하려는건데요.
2번째에서 XML레이아웃상에서 버튼은 하나뿐인데, 리스트뷰에서 여러건을 출력하려면 어찌해야하는지 감이 안잡혀서요...