0

I made a listview ,when i scroll the listview the a loading circle is working at the footer before get the next list items. The loading circle is set and get from listview

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

public View getLoadingView() {
    return listFooter;
}

This is xml for circle

<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>

And then set this layout in listview. Now what i have to done is i need to replace a pen in loading circle where the pen is animated.Its animated like the pen is writing.(its like when someone write in skype, show a pen on the screen writing).I have 4 pics for this pen animation.Actually i don't understand what to do :(... I am new in android

assylias
  • 321,522
  • 82
  • 660
  • 783
MBMJ
  • 5,323
  • 8
  • 32
  • 51

1 Answers1

1

Check out Frame Animation. Seems, all You need is to create animation resource and provide it as background for ImageView. Checkout this question for some code snippets and details on how to start an animation.

Community
  • 1
  • 1
sandrstar
  • 12,503
  • 8
  • 58
  • 65