For anyone encountering similar problems Kostya was correct in both of
his suggestions.  Using the built-in progress bar works, or if you
need a custom animated icon you can modify the getView method as in my
sample as so:

@Override
public View getView(int position, View convertView, ViewGroup parent)
{
   View v = convertView;
      if (v == null) {
        LayoutInflater vi =
(LayoutInflater)c.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
        v = vi.inflate(R.layout.list_view_row, null);
      }
      TextView label = (TextView) v.findViewById(R.id.label);
      ImageView spinner = (ImageView) v.findViewById(R.id.spinner);
      MyContainer item = (MyContainer) items.get(position);
      Animation spinnerAnimation =
AnimationUtils.loadAnimation(getContext(), R.anim.rotate);
      label.setText(item.getText());
      spinner.clearAnimation();
      spinner.setVisibility(View.INVISIBLE);
      if (item.isLoading()) {
         label.setText("***"+item.getText()+"***");
         spinner.setVisibility(View.VISIBLE);
         spinner.startAnimation(spinnerAnimation);
      }
      return v;
}

Thanks again to everyone out there who gave me a hand with this.  The
community support around Android is awesome.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to