TreeView icon indicating copy to clipboard operation
TreeView copied to clipboard

Dont visualization

Open gohancrafting opened this issue 2 years ago • 4 comments

gohancrafting avatar Oct 29 '22 16:10 gohancrafting

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

gohancrafting avatar Oct 29 '22 16:10 gohancrafting

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

AmrDeveloper avatar Oct 29 '22 17:10 AmrDeveloper

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

finedayjun avatar Mar 06 '23 07:03 finedayjun

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

exportdeveloper avatar Mar 09 '23 11:03 exportdeveloper