Tuesday, March 25, 2014

GXT how to implement window with proper layout for content

Window is ContentPanel
setLayout( new FitLayout )
add( LayoutContainer )
        VBoxLayout layout = new VBoxLayout();
layout.setPadding(new Padding(5));
layout.setVBoxLayoutAlign(VBoxLayout.VBoxLayoutAlign.LEFT);
layout.setPack(BoxLayout.BoxLayoutPack.START);

(LayoutContainer).setLayout(layout);
        add( button )
        add( safeHtmlText )

window.layout();


Tuesday, March 4, 2014

How to hide action bar before activity is created (link)

I had to solve somehow the issue when default actionbar is shown right before I've to inflate the custom view for it. I've found this link with good explanation how to fix it.