General view of a multilevel list using an array adapter in the box layout and passing JSON data
I am creating a general view of a multi-level list box in a navigation drawer layout.
The idea is to pass an array to represent a list, which generates a new array or adds a list of arrays and passes it every time the user taps a list item.
problems and possible solutions in this idea:
-
Each text view looks the same because there is only one text view in the list view. Solution: tweak the style of the text view each time by overriding the getter method of the array adapter.
-
Collecting data in multilevel dimensional form from a JSON object solution: an iterative search or data structure to serve a purpose.
-
There is a main activity and an asynchronous task that retrieves a JSON object. The problem is that I am calling the select item method from my main activity, I cannot access the data as the connection class does not complete even after the post method does.
source to share
No one has answered this question yet
Check out similar questions: