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

Incremental padding left for sub folders #137

Closed
pyriceti opened this issue Nov 19, 2017 · 1 comment
Closed

Incremental padding left for sub folders #137

pyriceti opened this issue Nov 19, 2017 · 1 comment

Comments

@pyriceti
Copy link

Hi, I'm trying to find in your example app how you manage to indent more and more
to the right the children of folders. Even for the two first levels, I can't do it.
I don't want to use different fixed layouts, because the hierarchy hasn't upper bound/limitation.

Thanks for your help

@pyriceti
Copy link
Author

Ok, I've figured out myself:
the style in styles.xml does the job:

    <style name="TreeNodeStyleCustom">
        <item name="android:paddingLeft">20dp</item>
        <!--<item name="android:showDividers">middle</item>-->
        <!--<item name="android:divider">@android:drawable/divider_horizontal_bright</item>-->
    </style>

And in the activity/fragment class:

tView.setDefaultContainerStyle(R.style.TreeNodeStyleCustom);

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

1 participant