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
174 stars 23 forks source link

Dont visualization #5

Open gohancrafting opened 1 year ago

gohancrafting commented 1 year ago

Hi, im trying to learn the use of the tree for personalize json. To iniciate in this world, the first thing im trying to do is a eassy tree, i follow all the steps but it didnt works. There is no error and nothing strange that i can see, but when i run the app, nothing appears in the screen. The main code: image the view holder(the log never show up) image and the xml(the item, and the main) : image image

AmrDeveloper commented 1 year ago

Hello @gohancrafting,

For testing can you replace ConstraintLayout in item and the main with for example LinearLayout and try to set different background color for main, recycler, item so we can see which view has the problem, also try to add logs with same tag to check if view holder see them so we can identify the main problem and solve it

finedayjun commented 1 year ago

Hello @gohancrafting

Try it with the code below

<androidx.recyclerview.widget.RecyclerView android:id="@+id/recycler_view" android:layout_width="match_parent" android:layout_height="wrap_content" app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"/>

exportdeveloper commented 1 year ago

app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager" problem sloved for me thanks @finedayjun