Something like DataTable in Android - android

I am looking for a way to create a DataTable in Android, a library preferably.
I would need create a table with: Fix headers, row, column, and cell listeners, allow scrolling, sort columns.
If somebody known something like this, I would be grateful.

Do you try table layout in your xml ?
You can find examples here:
http://www.mkyong.com/android/android-tablelayout-example/
http://androidexample.com/Table_Layout_-_Android_Example/index.php?view=article_discription&aid=74&aaid=98

Related

TableView with fix first column and rest columns scrollable Android

I have a problem. in my situation I have tables with 10+ columns, I really need to have a horizontal scroll for it and also making more width for each column. And fix the first column like excel. is there anyway to do that?
Please let me know any simple and smooth library in android for the same.
There is a TableView Library for Android. It's also open source and located in github.
There is a sample app that show how you can use tableView on your application.

table alternative in android

I have an existing website for which I have to make an Android application. I have something a table with multiple columns(20) on the dashboard of website.
What will be an appropriate option to implement this? The screenshot of the table : https://drive.google.com/file/d/0B6SgMBRKkQ60WHB3bFc4Z2Y2cWM/view?usp=sharing
I had a look at TableLayout, but that might make the app look a little clumsy. Also, I learnt about horizontal ListView. Will that be a better option?
I think you should go with GridLayout.
http://androidexample.com/Grid_Layout_-_Android_Example/index.php?view=article_discription&aid=75&aaid=99
above is reference for GridLayout.
and this is official android blog spot link for GridLayout.
http://android-developers.blogspot.in/2011/11/new-layout-widgets-space-and-gridlayout.html
You can use a custom list view Or a GridView
Good examples to begin are below:
http://androidexample.com/How_To_Create_A_Custom_Listview_-_Android_Example/index.php?view=article_discription&aid=67&aaid=92
http://androidexample.com/Custom_Grid_Layout_-_Android_Example/index.php?view=article_discription&aid=76&aaid=100

Is it possible to make a TableLayout like this in Android?

Is it possible to make this in Android..If it is, can you give me an example?
Thanks!
you can simply achieve this by using linear layout also . Please read this answer .
How can I implement this UI in Android
Yes this is possible.You can create row with different height.And you have to style your table layout so that it looks like as you want
Instad of table layout ,this can be achieved by List view as it appears to be more like a list

Two column table on android

Hey everyone. I'm not big into UI programming so this may be an easy thing I overlooked. I am trying have a screen that shows 8 TextView in a 2 column x 4 row table. And, of course, I want the TextViews, that might have different lengths, to be centered. I tried this in a table layout, for obvious reasons but I feel like this is not the way to do it because it doesn't have much control where I put everything once it is in a row. Should I be using a different combinations of layouts or is there something I overlooked.
I can post my xml file if you really need but this is really more of a concept question than a specific one.
Thanks,
Jake
Can you explain why a table layout didn't work in more detail? If you're just trying to center the contents of the cells, you can set the android:gravity attribute in the table layout to "center"
EDIT: You can set the spacing between items using the android:padding attribute (Documentation). There are a number of other attributes in that link you can use to modify the way your table is laid out, as well as table-specific attributes at this link.
Check out apps-for-android's GridLayout. You may have to modify it a bit to get it to do exactly what you want, however, it's probably a good starting point.

TableView with section & Index on Android

How to achieve Tableview with section and Index on Section, similar to how it's done on the iPhone?
I don't have examples in mind but I think it can be done quite easily by creating the headers in your xml and then adding dynamically the rows with an incremental variable int giving you the index.
The other option would be to do that with list in android. The final look would be pretty much the same as on the Iphone...
You can have a look at this, it's pretty easy actually.

Categories

Resources