public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
requestWindowFeature(Window.FEATURE_NO_TITLE);
setContentView(R.layout.main);
RelativeLayout mainView =
(RelativeLayout)findViewById(R.id.mainWindow);
AbsoluteLayout analogArea =
(AbsoluteLayout)findViewById(R.id.analogArea);
mainView.addView(analogArea, analogArea.getLayoutParams());
}
the error occurs at addView. Why can't I add a child view to the main
RelativeLayout view? Should I be doing this in a different manner?
also a general question. Should I add all my views to the mainWindow
view and mark them as visible=false, or add them in the manner above
as needed? at some point I would like to cleanly animate the subViews
changing locations as they toggle their visibility.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---