mardi 19 mai 2015

Android Listeners to programatically added views

I have the following scenario:

The main view is supposed to be scrollable up/down (currently solved with ScrollView).

Each row in this view is supposed to have a variable number(N) of clickable items and rows are scrollable left/right (solved with a horizontalscrollview that has a linear layout within it and N-linear layouts containing an ImageView and TextView inside.

What is the best way to make those inner linearlayouts clickable? I suspect I am not using the best practice for solving this problem already and that it is somewhat also not really in concordance with Googles guidelines for UI design, but this app requires it. What would you recomend?

Aucun commentaire:

Enregistrer un commentaire