I want to draw the android widgets like edittext, progressbar or a textview in onDraw() method.
My Test activity sets a view by setContentView(xxx). The xxx class extends View class and it has a onDraw(Canvas canvas) method. So basically when i set, setContentView(xxx) this xxx-->onDraw() method should be invoked. Which is rightly happened and all i did in the onDraw() method is shown below.
What i expect to see is this above progress.draw(canvas) should invoke the ProgressBar.onDraw(canvas) method which they will be using to draw the progressbar. But it does not work as expected.
Can anyone help me to resolve this issue?
public class TestView extends View
private TextView tv;
public void onDraw(Canvas canvas)
Users browsing this forum: No registered users and 5 guests