Java Code Examples for android.view.ViewGroup#removeAllViewsInLayout()

The following examples show how to use android.view.ViewGroup#removeAllViewsInLayout() . These examples are extracted from open source projects. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source Project: open-rmbt   File: RMBTMainMenuFragment.java    License: Apache License 2.0 6 votes vote down vote up
/**
    * 
    * @param inflater
    * @param view
    */
private void populateViewForOrientation(LayoutInflater inflater, ViewGroup view) {
	int antennaResId = Integer.MIN_VALUE;
	if (antennaView != null && antennaView.getTag() != null) {
		antennaResId = (Integer) antennaView.getTag();
	}
	
	view.removeAllViewsInLayout();
       View v = inflater.inflate(R.layout.title_screen, view);
       
       createView(v, inflater, null);
       
       if (antennaResId != Integer.MIN_VALUE) {
       	antennaView.setImageResource(antennaResId);
       	antennaView.setVisibility(View.VISIBLE);
       }
       
       //restore all information now:
       infoCollector.refresh();
       infoCollector.dispatchInfoChangedEvent(InfoCollectorType.DL_TRAFFIC, null, TrafficClassificationEnum.classify(interfaceTrafficGatherer.getRxRate()));
       infoCollector.dispatchInfoChangedEvent(InfoCollectorType.UL_TRAFFIC, null, TrafficClassificationEnum.classify(interfaceTrafficGatherer.getTxRate()));
       
   	if (startButtonText != null) {
       	startButtonText.setText(ConfigHelper.isLoopMode(getActivity()) ? R.string.menu_button_loop : R.string.menu_button_start);
       }
}
 
Example 2
@Override
public void onConfigurationChanged(final Configuration newConfig) {
    super.onConfigurationChanged(newConfig);
    ViewGroup viewGroup = (ViewGroup) getView();
    if (viewGroup != null) {
        viewGroup.removeAllViewsInLayout();
        View view = onCreateView(requireActivity().getLayoutInflater(), viewGroup, null);
        viewGroup.addView(view);
    }
}
 
Example 3
@Override
public void onConfigurationChanged(final Configuration newConfig) {
    super.onConfigurationChanged(newConfig);
    ViewGroup viewGroup = (ViewGroup) getView();
    if (viewGroup != null) {
        viewGroup.removeAllViewsInLayout();
        View view = onCreateView(getActivity().getLayoutInflater(), viewGroup, null);
        viewGroup.addView(view);
    }
}
 
Example 4
@Override
public void onConfigurationChanged(final Configuration newConfig) {
    super.onConfigurationChanged(newConfig);
    ViewGroup viewGroup = (ViewGroup) getView();
    if (viewGroup != null) {
        viewGroup.removeAllViewsInLayout();
        View view = onCreateView(getActivity().getLayoutInflater(), viewGroup, null);
        viewGroup.addView(view);
    }
}
 
Example 5
Source Project: AssistantBySDK   File: DatePickerDialog.java    License: Apache License 2.0 5 votes vote down vote up
@Override
public void onConfigurationChanged(final Configuration newConfig) {
    super.onConfigurationChanged(newConfig);
    ViewGroup viewGroup = (ViewGroup) getView();
    if (viewGroup != null) {
        viewGroup.removeAllViewsInLayout();
        View view = onCreateView(getActivity().getLayoutInflater(), viewGroup, null);
        viewGroup.addView(view);
    }
}
 
Example 6
@Override
public void onConfigurationChanged(final Configuration newConfig) {
    super.onConfigurationChanged(newConfig);
    ViewGroup viewGroup = (ViewGroup) getView();
    if (viewGroup != null) {
        viewGroup.removeAllViewsInLayout();
        View view = onCreateView(getActivity().getLayoutInflater(), viewGroup, null);
        viewGroup.addView(view);
    }
}
 
Example 7
/**
    * 
    * @param inflater
    * @param view
    */
private void populateViewForOrientation(LayoutInflater inflater, ViewGroup view) {
	int page = getViewPager().getCurrentItem();
	view.removeAllViewsInLayout();
       View v = inflater.inflate(R.layout.result_tabhost_pager, view);
       createView(v, inflater, page);
}
 
Example 8
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
                         Bundle savedInstanceState) {
    // TODO Auto-generated method stub
    ViewGroup p = (ViewGroup) mRootView.getParent();
    if (p != null) {
        p.removeAllViewsInLayout();
    }
    return mRootView;
}
 
Example 9
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
                         Bundle savedInstanceState) {
    // TODO Auto-generated method stub
    ViewGroup p = (ViewGroup) mRootView.getParent();
    if (p != null) {
        p.removeAllViewsInLayout();
    }
    return mRootView;
}
 
Example 10
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
                         Bundle savedInstanceState) {
    ViewGroup p = (ViewGroup) mRootView.getParent();
    if (p != null) {
        p.removeAllViewsInLayout();
    }
    return mRootView;
}
 
Example 11
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
                         Bundle savedInstanceState) {
    // TODO Auto-generated method stub
    ViewGroup p = (ViewGroup) mRootView.getParent();
    if (p != null) {
        p.removeAllViewsInLayout();
    }
    return mRootView;
}
 
Example 12
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
                         Bundle savedInstanceState) {
    // TODO Auto-generated method stub
    ViewGroup p = (ViewGroup) mRootView.getParent();
    if (p != null) {
        p.removeAllViewsInLayout();
    }
    return mRootView;
}
 
Example 13
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
                         Bundle savedInstanceState) {
    ViewGroup p = (ViewGroup) mRootView.getParent();
    if (p != null) {
        p.removeAllViewsInLayout();
    }
    return mRootView;
}
 
Example 14
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
                         Bundle savedInstanceState) {
    // TODO Auto-generated method stub
    ViewGroup p = (ViewGroup) mRootView.getParent();
    if (p != null) {
        p.removeAllViewsInLayout();
    }
    return mRootView;
}
 
Example 15
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
                         Bundle savedInstanceState) {
    ViewGroup p = (ViewGroup) mRootView.getParent();
    if (p != null) {
        p.removeAllViewsInLayout();
    }
    return mRootView;
}
 
Example 16
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
                         Bundle savedInstanceState) {
    ViewGroup p = (ViewGroup) mRootView.getParent();
    if (p != null) {
        p.removeAllViewsInLayout();
    }
    return mRootView;
}
 
Example 17
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
                         Bundle savedInstanceState) {
    ViewGroup p = (ViewGroup) mRootView.getParent();
    if (p != null) {
        p.removeAllViewsInLayout();
    }
    return mRootView;
}
 
Example 18
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
                         Bundle savedInstanceState) {
    ViewGroup p = (ViewGroup) mRootView.getParent();
    if (p != null) {
        p.removeAllViewsInLayout();
    }
    return mRootView;
}
 
Example 19
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
                         Bundle savedInstanceState) {
    ViewGroup p = (ViewGroup) mRootView.getParent();
    if (p != null) {
        p.removeAllViewsInLayout();
    }
    return mRootView;
}
 
Example 20
Source Project: open-rmbt   File: RMBTAboutFragment.java    License: Apache License 2.0 4 votes vote down vote up
/**
    * 
    * @param inflater
    * @param view
    */
private void populateViewForOrientation(LayoutInflater inflater, ViewGroup view) {
	view.removeAllViewsInLayout();
       View v = inflater.inflate(R.layout.about, view);
       createView(v, inflater);
}