I'd like to build an activity that is mixing layouts with 2D graphics.
So for example, would like to introduce an edittext with an integer
value and based on that value the size of a circle is dynamically
adjusted and drawn. Any idea how to do this?
For plain graphics I am using this approach here - but how can it be
expanded to cover Android layouts (buttons, editboxes, textviews,
radiobuttons, etc.)?
public class DrawTest extends Activity {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(new GraphicsView(this));
}
static public class GraphicsView extends View {
public GraphicsView(Context context) {
super(context);
}
@Override
protected void onDraw(Canvas canvas) {
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---