I am trying to start an animation which is contained within a custom layout. This layout is used for each row of a listview. The animation works fine if moved outside of this custom layout, so the problem does not seem to lie with images/xml files.
I believe the issue lies with how I am calling the animation. for example the standard code to start an animation works (so not using the custom layout):
ImageView mImageViewEmptying = (ImageView) findViewById(R.id.tetherPulseAnimationTest);
LayoutInflater inflater = this.getLayoutInflater();
View dialogView = inflater.inflate(R.layout.custom_listview_activetethers, null);
ImageView mImageViewFilling = (ImageView) dialogView.findViewById(R.id.tetherPulseAnimation);
The solution was to create a custom list adapter class and override getView to carry out the methods required. Then in the activity that contains the listview, create an ArrayAdapter of the custom list adapter. Finally, set the listview's adapter as the ArrayAdapter object.
All custom functionality can now be controlled via the custom list adapter class, and it will show within the activity's listview.