I saw a number of examples that seemed a bit overkill for what I needed, so I just wanted to do something simple like:
In my activity I would do this:
ProgressBar bar = bar=(ProgressBar)findViewById(R.id.progress);
and then in my layout I would do this:
<ProgressBar android:id="@+id/progress"
style="?android:attr/progressBarStyleHorizontal"
android:src="@drawable/ajax-loader"
android:layout_width="fill_parent"
android:layout_height="wrap_content" />
and I had put this image http://problemio.com/img/ajax-loader.gif into my images directories.
But I got a compile error that .gif files are not supposed to be in those directories. Here is the error:
res\drawable-hdpi\ajax-loader.gif: Invalid file name: must contain only [a-z0-9_.]
I am also not sure whether I am creating the Progress bar layout correctly. What would be the right way to go for me here? Or am I totally off track? :)
Thanks!