I need to show in Android the data I get from a query with mysql but it will result in several columns, since in android there is no such thing as JTable I was wondering how the information obtained by this query could be displayed.
I need to show in Android the data I get from a query with mysql but it will result in several columns, since in android there is no such thing as JTable I was wondering how the information obtained by this query could be displayed.
A very basic example using GridView
with 2 columns:
<GridView xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/grid"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:numColumns="2"
android:verticalSpacing="10dp"
android:horizontalSpacing="10dp"
android:scrollbarStyle="outsideOverlay"
android:verticalScrollbarPosition="right"
android:scrollbars="vertical">
</GridView>
Head over to this and this another tutorial (in the latter they use TableLayout ...)
Courage:)
Googling a bit I found that you can use GridView, it could be useful for what you want to do. Here a reference link. GridView