Skip to content

AndroidTreeView with not showing padding for first level of hierarchy. Works for second level #174

@ndubbaka

Description

@ndubbaka

I am using AndroidTreeView to show a hierarchy of items. First level of treeview is not being displayed with padding. the tree view like hierarchy is showing up from second level to all other levels. Bug explained in this video at https://www.youtube.com/watch?v=_9XjgVCqIOg&t=146

If I remove the arrow icon, it shows good as expected with the correct padding for all the levels. I need arrow icon to indicate that the user can expand & collapse. https://github.com/onedrupal/One-Drupal-Android/blob/master/app/src/main/res/layout/layout_node.xml

<com.github.johnkil.print.PrintView
        android:layout_alignParentLeft="true"
        android:id="@+id/arrow_icon"

https://github.com/onedrupal/One-Drupal-Android/blob/master/app/src/main/java/treeutil/ArrowExpandSelectableHeaderHolder.java#L55

arrowView = (PrintView) view.findViewById(R.id.arrow_icon);
        arrowView.setPadding(20,10,10,10);
        if (node.isLeaf()) {
            arrowView.setVisibility(View.INVISIBLE);
        }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions