marinat / tree-view-list-android

Automatically exported from code.google.com/p/tree-view-list-android
BSD 2-Clause "Simplified" License
0 stars 0 forks source link

what if expand icon is large #16

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
If I add an expand 48*48 icon, the text will be indented 48. As
    private void calculateIndentWidth() {
        if (expandedDrawable != null) {
            indentWidth = Math.max(getIndentWidth(),
                    expandedDrawable.getIntrinsicWidth());
        }
        if (collapsedDrawable != null) {
            indentWidth = Math.max(getIndentWidth(),
                    collapsedDrawable.getIntrinsicWidth());
        }
    }

If I set indentWitdh inside the function, then it works as I think. Otherwise, 
the interface setIndentWitdh seems not work either. 

Original issue reported on code.google.com by zhengda...@gmail.com on 3 Dec 2011 at 2:18

GoogleCodeExporter commented 9 years ago
Could you please explain ? I do not really understand what the issue is

Original comment by ja...@potiuk.com on 2 Feb 2012 at 7:13