搜尋此網誌

2012年7月6日 星期五

Set UI component width

private void modifyViewWidth(View src, View des){
        src.measure(0, 0);
        int width = src.getMeasuredWidth();
        des.setMinimumWidth(width);
        
    }