2012-12-29 8 views
0

내 응용 프로그램에 작은 애니메이션이 있습니다. 그 끝에는 ListView의 위치 매개 변수가 변경됩니다. 즉, 시작될 때보 다 약간 더 낮습니다 (전체 화면으로 시작한 후 버튼 누름, 화면 아래쪽에 뭔가를 드러내 기 위해 조금 아래로 내려감). 목록을 누르면 해당 매개 변수가 실제로 변경되고 그 위치가 실제로 변경된 것을 볼 수 있습니다. SlidingDrawer가 그 지점에서 열리면 레이아웃이 다시 정렬되고 목록이 전체 화면으로 돌아옵니다. 왜 그런가요?SlidingDrawer가 열릴 때 기본 레이아웃을 다시 배열합니다.

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" 
xmlns:app="http://schemas.android.com/apk/res/com.softtechnics.mobuynet" 
android:id="@+id/coupon_list_layout" 
style="@style/FillParent" 
android:orientation="vertical" > 

<include 
    android:id="@+id/filter_tab" 
    android:layout_width="match_parent" 
    android:layout_height="34dp" 
    android:layout_below="@+id/action_bar" 
    layout="@layout/filter" /> 

<com.softtechnics.mobuynet.gui.components.ListArr 
    android:id="@+id/list" 
    android:layout_width="match_parent" 
    android:layout_height="match_parent" 
    android:layout_above="@id/footer" 
    android:layout_below="@+id/action_bar"> 

</com.softtechnics.mobuynet.gui.components.ListArr> 

<com.softtechnics.mobuynet.gui.components.ActionBar 
    android:id="@+id/action_bar" 
    android:layout_width="match_parent" 
    android:layout_height="wrap_content" 
    android:layout_alignParentTop="true" /> 

<ProgressBar 
    android:id="@+id/progress" 
    style="@style/WrapContent" 
    android:layout_centerInParent="true" 
    android:visibility="gone" /> 

<com.softtechnics.mobuynet.gui.components.Footer 
    android:id="@+id/drawer" 
    android:layout_width="match_parent" 
    android:layout_height="wrap_content" 
    android:layout_alignParentBottom="true" 
    android:layout_alignTop="@+id/textView1" /> 

<TextView 
    android:id="@+id/textView1" 
    android:layout_width="wrap_content" 
    android:layout_height="113dp" 
    android:layout_alignParentBottom="true" 
    android:visibility="invisible" /> 

Footer 내 SlidingDrawer입니다. 감사합니다.

답변

-1

애니메이션이 끝날 때 listview 속성을 변경해야합니다. 또한이 뷰의 실제 상태를 기억하고 onResume 메소드에서 업데이트해야합니다.

+0

목록보기의 애니메이션이 올 바르다. 속성을 변경합니다. 그러나 그 후에 사용자가 서랍을 열면 listView가 다시 팝업됩니다. 내가 서랍을 열지 않으면 모두 괜찮아. – roiberg

+0

더 많은 코드를 붙여 주실 수 있습니까? 그러면 아마도 버그를 찾을 수있을 것입니다. – RobertM

관련 문제