Android empty Linear layout contents
You can use this:
LinearLayout ll = (LinearLayout) findViewById(R.id.myid);
ll.removeAllViews();
You can use this:
LinearLayout ll = (LinearLayout) findViewById(R.id.myid);
ll.removeAllViews();