Android; is a ListView the best approach to displaying multiple, independant progress bars?
-
14-10-2019 - |
Pergunta
I have a requirement to display multiple linear progress bars on my UI. These will display wifi signal strengths.
If you're in a built up area, chances are you'll detect more than one wifi network, therefore I need to have a progress bar for each one which displays the signal strength.
My initial idea was to display these in a ListView, with the wifi name and the progress bar underneath.
Is this a reasonable approach, or is there a better method I should be looking at for this?
Solução
ListView
anyway is a good choice, but it has some drawbacks, since ListView is intented to be used with selectable items. In your case I suggest you don't need selections of items.
I would suggest to use another approach: TableLayout
wrapped in ScrollView
with dynamically added TableRow
s. In this case you don't need of unnecessary ListView
's overhead