Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ndubbaka opened this issue May 2, 2019 · 2 comments

Comments

@ndubbaka
Copy link

ndubbaka commented May 2, 2019

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);
        }
@MonikaJethani
Copy link

@ndubbaka Is this still open? Can I work on this?

@ndubbaka
Copy link
Author

@MonikaJethani Yes. The bug still exists in my code. I don't know what's wrong there and how to fix it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants