Possible Duplicate:
add and remove views in android dynamically?
In Iphone, the view is added or remove by using addsubview or removefromsuperview.
What about in Android, how do you add or remove a view?
fundamental questions, I am trying to clear up my concepts.
thanks
You seem to understand programmatically adding and removing views in iOS
In android, you cannot necessarily add a view to a view. You will need a subview of the Class
ViewGroup(RelativeLayout,FrameLayout…) that you can add views into.You can use
There are more ways to add and removeView, but the important part is that you look up the reference for ViewGroup. Android layout is a whole different cup of tea compared to iOS layout.