Code example for ActionBar.Tab

Methods: getTag

0
            this.activity = activity;
        } 
 
        @Override 
        public void onTabSelected(Tab tab, FragmentTransaction fragmentTransaction) {
            GLSurfaceView glSurfaceView = (GLSurfaceView) tab.getTag();
            activity.setSurfaceView(glSurfaceView);
        } 
 
        @Override 
        public void onTabUnselected(Tab tab, FragmentTransaction ft) {
        } 
 
        @Override 
        public void onTabReselected(Tab tab, FragmentTransaction ft) {
        } 
    } 
 
    public void setSurfaceView(GLSurfaceView glSurfaceView) {
        this.glSurfaceView = glSurfaceView;
Experience pair programming with AI  Get Codota for Java