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

Dont visualization #5

Open
gohancrafting opened this issue Oct 29, 2022 · 4 comments
Open

Dont visualization #5

gohancrafting opened this issue Oct 29, 2022 · 4 comments

Comments

@gohancrafting
Copy link

gohancrafting commented Oct 29, 2022

No description provided.

@gohancrafting
Copy link
Author

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
Copy link
Owner

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
Copy link

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
Copy link

exportdeveloper commented Mar 9, 2023

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

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

4 participants