Show mysql query of multiple columns on android

0

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.

    
asked by JOLUT 30.06.2016 в 10:02
source

2 answers

1

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:)

    
answered by 01.07.2016 в 00:09
0

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

    
answered by 30.06.2016 в 22:23