I
I
iMahach2015-02-08 12:08:48
Android
iMahach, 2015-02-08 12:08:48

Dynamically adding elements to the screen?

Hello, I am dynamically populating a LinearLayout with views. I take the data from the collection, go through it with a foreach loop and add a view with data, but some Views are not added to the layout. What could be the problem? I add the View on the UI thread.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vitaly Pukhov, 2015-02-09
@Neuroware

I advise you to look towards adapter's example

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question