AmrDeveloper/TreeView

Dont visualization

Opened this issue · 4 comments

Dont visualization

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

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

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"/>

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