Answer the question
In order to leave comments, you need to log in
how to customize listview in android
There are two ArrayList with string data. I made a separate screen where I indicated 2 textView. You need to display one arraylist in one textView, and the second in another.
I just don’t understand how to write it in the adapter, my example for a single output:
ArrayAdapter<String> adapter = new ArrayAdapter<String>(this,
R.layout.books_test_list, title);
Answer the question
In order to leave comments, you need to log in
Obviously, the usual ArrayAdapter will no longer suit you.
There are at least two options here: write your own adapter, extending BaseAdapter, or cast data to List<? extends Map> and use SimpleAdapter.
The only and most effective way is to start doing something. That is, there will be no such thing that you started to do and did not learn anything at the same time. This method is the most reliable. Start writing a training CMS. Look in reference books as you come across questions.
And yes, if possible, go work as an intern, even for food.
Set the task, for example, to implement a news site with the addition of news from the admin panel + the implementation of the search for the desired article by tag and practice on your health.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question