views:

21

answers:

0

While my live wallpaper app is pulling data from the server, I want to draw a ProgressBar on top of my canvas. So far I got:

ProgressBar pbar;

@Override
public void onCreate()
{
    super.onCreate();

    pbar = new ProgressBar(this);
    LayoutParams lp = new LayoutParams(LayoutParams.WRAP_CONTENT,LayoutParams.WRAP_CONTENT);
    pbar.setLayoutParams(lp);
    pbar.setEnabled(true);  
}

And in my drawFrame function, I call pbar.draw(c); And yet... no progress bar is being drawn. The code above is just a complete guess... anybody know how to actually do this?