리스트들을

 

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:orientation="vertical" >
   
    <LinearLayout
        android:layout_width="fill_parent"
      android:layout_height="wrap_content"
     android:orientation="horizontal"
     android:id="@+id/nextLayout">
    <TextView
     android:layout_width="wrap_content"
     android:layout_height="wrap_content"
     android:id ="@+id/ltrt_left_txt"
    />
    <TextView
     android:layout_width="wrap_content"
     android:layout_height="wrap_content"
     android:id ="@+id/ltrt_right_txt"
    />
  </LinearLayout>
 
  
 <LinearLayout
        android:layout_width="fill_parent"
      android:layout_height="wrap_content"
     android:id="@+id/bottom_layout"

       android:visiblity="INVISIBLE"
     
     >
    <TextView
        android:layout_width="fill_parent"
     android:layout_height="wrap_content"
     android:id ="@+id/ltrt_bottom_txt"
     android:textSize="0px"/>
   
    <TextView
        android:layout_width="fill_parent"
     android:layout_height="wrap_content"
     android:id ="@+id/ltrt_bottom2_txt"
     android:textSize="0px"/>
   
    </LinearLayout>
         
</LinearLayout>

 

다음과 같은형태를 지니도록 커스텀하여 뿌려주고 있습니다.

설명을 더하자면 두 리니어 레이아웃중 윗쪽의 레이아웃(텍스트뷰 2개)은 바로 출력을 해주고

아이템 클릭 이벤트에 따라서 밑의 레이아웃을 출력하는 형식입니다.

여기서, 밑의 레이아웃은 현재 클릭 이벤트가 발생하지 않으면 정보를 출력할 필요가 없는 부분입니다.

 

헌데 위의 레이아웃의 정보를 뿌려줄 때 해당아이템의 하단에도 밑쪽의 레이아웃도 공백으로 출력이 되버리는데

이 공백을 없애고 출력시켰다가 클릭 이벤트가 발생했을 때만 정보가 공간을 채우며 나타나는 식으로 하려면 어떻게 해야 하나요??

 

커스텀 어댑터 부분에서 이리 저리 고쳐보다가 해결이 안돼서 질문 해봅니다.

 

고수님들의 많은 도움 부탁드립니다. (_ _)