Example usage for android.view ViewGroup removeView

List of usage examples for android.view ViewGroup removeView

Introduction

In this page you can find the example usage for android.view ViewGroup removeView.

Prototype

@Override
public void removeView(View view) 

Source Link

Document

Note: do not invoke this method from #draw(android.graphics.Canvas) , #onDraw(android.graphics.Canvas) , #dispatchDraw(android.graphics.Canvas) or any related method.

Usage

From source file:com.mediatek.galleryfeature.stereo.segment.background.MainPanel.java

@Override
public void onDestroyView() {
    super.onDestroyView();
    if ((mMainView != null) && (mMainView.getParent() != null)) {
        ViewGroup parent = (ViewGroup) mMainView.getParent();
        parent.removeView(mMainView);
    }//from   w  w  w . j  a va 2  s .  c  o m
}

From source file:nu.yona.app.ui.tour.YonaCarrouselAdapter.java

@Override
public void destroyItem(ViewGroup container, int position, Object object) {
    container.removeView((RelativeLayout) object);
}

From source file:org.catrobat.paintroid.intro.IntroPageViewAdapter.java

@Override
public void destroyItem(ViewGroup container, int position, Object object) {
    View view = (View) object;
    container.removeView(view);
}

From source file:com.agateau.utils.ui.ViewPagerAdapter.java

@Override
public void destroyItem(ViewGroup container, int position, Object object) {
    View view = mViews.get(position);
    container.removeView(view);
}

From source file:com.ipassistat.ipa.adapter.BannerPagerAdapter.java

@Override
public void destroyItem(ViewGroup container, int position, Object object) {
    container.removeView(imageIdList.get(position));
}

From source file:com.so2.running.GraphAdapter.java

@Override
public void destroyItem(ViewGroup container, int position, Object object) {
    container.removeView(views.get(position));
}

From source file:com.coinblesk.client.SimpleFragment.java

@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
    int layout = getArguments().getInt("");
    if (view != null) {
        ViewGroup parent = (ViewGroup) view.getParent();
        if (parent != null)
            parent.removeView(view);
    }//from   w ww .j a  va 2  s  .c  o m
    try {
        view = inflater.inflate(layout, container, false);
    } catch (InflateException e) {
        // map is already there, just return view as it is
    }
    return view;
}

From source file:com.example.mego.adas.main.adapter.HelpPageViewerAdapter.java

@Override
public void destroyItem(ViewGroup container, int position, Object object) {
    container.removeView((LinearLayout) object);
}

From source file:com.ipassistat.ipa.adapter.GoodsBannerAdapter.java

@Override
public void destroyItem(ViewGroup container, int position, Object object) {
    // container.removeView((View)object);
    container.removeView(imageIdList.get(position));
    //      super.destroyItem(container, position, object);
}

From source file:org.zywx.wbpalmstar.engine.MultiPopAdapter.java

@Override
public void destroyItem(ViewGroup container, int position, Object object) {
    // TODO Auto-generated method stub
    container.removeView(viewList.get(position));

}