2012-07-19 3 views
0

listview를 만들었는데 listview를 스크롤하면 다음 목록 항목을 얻기 전에 로딩 원이 바닥 글에서 작동합니다. 로딩 원이 설정되고 목록보기애니메이션로드 중 listview

public void setLoadingView(View listFooter) { 
    this.listFooter = listFooter; 
} 

public View getLoadingView() { 
    return listFooter; 
} 

에서 얻을이 원

<LinearLayout 
    android:layout_width="fill_parent" 
    android:layout_height="wrap_content" 
    android:layout_marginLeft="10dip" 
    android:layout_marginRight="10dip" 
    android:layout_marginTop="5dip" 
    android:layout_marginBottom="5dip" 

    android:baselineAligned="true" 
    android:gravity="center" 
    android:orientation="horizontal" > 

    <TextView 
     android:layout_width="wrap_content" 
     android:layout_height="wrap_content" 
     android:background="@drawable/pencil" 
     android:textColor="#B36000" /> 
</LinearLayout> 

에 대한 XML입니다 그리고 목록보기에서이 레이아웃을 설정합니다. 이제 내가해야 할 일은 펜이 움직이는 원을 로딩 할 때 펜을 교체해야한다는 것입니다. 펜처럼 움직이는 것은 글쓰기입니다. (누군가가 스카 이프로 글쓰기 할 때 펜을 화면에 쓰는 것과 같습니다.) 새로운 안드로이드 이미지입니다.

답변

1

체크 아웃 Frame Animation. 애니메이션 리소스를 생성하고 다음과 같이 제공해야합니다. ImageView에 대한 배경 코드 일부 코드 조각 및 애니메이션 시작 방법에 대한 자세한 내용은 this question을 참조하십시오.

관련 문제