Code example for HorizontalScrollView

Methods: addView

0
 
    public ViewGroup initScreen(CStyxFile screen) {
		FrameLayout rootComp = new FrameLayout(this);
        ScrollView vRootComp = new ScrollView(this);
        vRootComp.addView(rootComp); 
        HorizontalScrollView hRootComp = new HorizontalScrollView(this);
        hRootComp.addView(vRootComp);
 
		if (ooLive != null) {
			OOlive.panelRegistry.clear(); 
			ooLive.interrupt();
		} 
		ooLive = new OOlive(root.getFile("olive"), ooHandler, screen.getPath());
		try {  
			JOPanel jp = new JOPanel(screen, rootComp);
			jp.createUITree(screen, rootComp);
		} catch (StyxException e) {
			// TODO Auto-generated catch block 
			e.printStackTrace();
		}