mercredi 25 mars 2015

Android can i add TextView in a target Row:Column into TableLayout?

I have a DataBase that contain data for generate TextViews. I need to put this TextView inside a TableView (a table) respecting the Row:Column coordinates.


For Example if i have this table (Sqlite):



Object | Row | Column
-----------------------
math | 2 | 2
math | 3 | 2
fisi | 1 | 1


i need to generate the Activity like this:



Lun Mar
--------------------
1| fisi |
2| | math
3| | math


How can i do this? It's correct the TableLayout or it's better create e multiple LinearLayout with android:orientation="horizontal"


Aucun commentaire:

Enregistrer un commentaire