AmrDeveloper / TreeView

Multi roots TreeView :palm_tree: implementation for Android Platform with a lot of options and customization
https://amrdeveloper.github.io/TreeView/
MIT License
177 stars 24 forks source link

How to set Custom magin to every child layout? #1

Closed Premjit-Developer closed 12 months ago

Premjit-Developer commented 2 years ago

First of all congratulations to the dev for making this great easy to use TreeView library 👏. Describe the solution you'd like My feature request is about to get a set margin option in TreeNode by default for each child layout. As you did in example projects extended custom class with TreeNode, i also tried the same to set my custom margin method but it didn't work for me. So if you make a default margin option in TreeNode it will be easy for noob devs like me.

AmrDeveloper commented 2 years ago

Hello @Premjit-Chowdhury,

Very happy that you loved it, I think it will be better to keep the default TreeNode object small and simple and anyone can extend it easily, if we add a default attribute that handles the margin, we should also add some other attributes, so I will try to extend the examples with margin and other examples

Thanks Amr Hesham

Premjit-Developer commented 2 years ago

Yeah, it would be very helpful.