Blog Archive

How to remove a Android View from layout using Activity code

Android remove view from parent

View myView = findViewById(R.id.hiddenLayout);
ViewGroup parent = (ViewGroup) myView.getParent();
parent.removeView(myView);

Android remove all child views

LinearLayout formLayout = (LinearLayout)findViewById(R.id.formLayout);
formLayout.removeAllViews();

4 comments :

  1. http://nytransguide.org/extreme-fx-profit-review/


    http://innertradingcirclereviews.co/extreme-fx-profit-review/


    http://appmobilebotreview.com/extreme-fx-profit-review/


    Becoming an expert in forex trading is easier and faster than you think. If you follow these ideas you can also learn forex trading virtually for free. Getting a solid grounding in the basics first is vital if you're to avoid finding yourself out of your depth with your forex education, and is easy to achieve if you follow this simple guide to the who, what and where of forex training.0.

    ReplyDelete