0
현재 그룹당 둘 이상의 자식과 함께 expandablelistview를 개발하려고합니다. 잘 작동하지만, 이제는 사용자가 부모를 클릭하면 슬라이드 애니메이션을 자식에게 애니메이션으로 적용하려고합니다.Android ExpandableList 하위 슬라이딩보기
이 라이브러리는 https://github.com/tjerkw/Android-SlideExpandableListView이며 실제로 그룹당 하나의 항목에 적합합니다. XML 레이아웃 파일을 확장하여 그룹당 하나 이상의 항목을 사용할 수있게했습니다. 그러나 그것은 작동하지 않습니다.
원본 파일입니다. 그룹당 하나의 행에 두 개의 버튼이 있습니다.
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:id="@+id/expandable"
android:background="#000000">
<Button
android:id="@+id/buttonA"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_weight="0.5"
android:text="Action A"
android:textSize="12dip"/>
<Button
android:id="@+id/buttonB"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_weight="0.5"
android:text="Action B"
android:textSize="12dip"/>
</LinearLayout>
하지만 이제이 같은 예를 들어,이 레이아웃을 확장하려고하면
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:id="@+id/expandable"
android:background="#000000">
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content">
<Button
android:id="@+id/buttonA"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="Action A"
android:textSize="12dip"/>
</LinearLayout>
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content">
<Button
android:id="@+id/buttonB"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="Action B"
android:textSize="12dip"/>
</LinearLayout>
</LinearLayout>
아래로 슬라이딩되는 것은 커지면,하지만 난 첫 번째를 볼 수있어 "공간" 단추. 두 번째 버튼이 표시되어야하는 곳은 비어 있습니다.
누구에게 아이디어가 있습니까?
어떻게 그렇게 어리 석고 그렇게 간단한 실수 일 수 있습니까? D 귀하의 도움에 감사드립니다. – jennymo