Code example for GridView

Methods: setColumnWidth

0
        return false; 
    } 
 
    @Override 
    public void onResume() { 
        gridView.setColumnWidth(LinksHolder.getInstance().getThumbSize());
        super.onResume(); 
    } 
 
    public MainFragment setCatalog(final int icatalog2) {
        icatalog = icatalog2;
        if (null == ima) {
            ima = new ImageAdapter(icatalog);
        } else { 
            ima.setCatalog(icatalog);
            // notify adapter to change content 
            ima.not();
        } 
        if (null != gridView) {
            if (null == gridView.getAdapter()) {
                gridView.setAdapter(ima);