• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps Can these listviews work? with database content

vaironl

Lurker
Hello, forum:
I have a small question yet complicated (for me). This application is for my training since I recently started my job as an android developer, so please bear with me.
Pardon me for any wrong grammar or lack of explanation if the details aren
 
You should be able to put a table in each row so that they line up ok.

What you'll probably want to do use use a BaseAdapter or CursorAdapter

There are a fair number of tutorials on both. Here's one article about them:

An Analysis between BaseAdapters and CursorAdapters Think Android


When you make your own rows like that however, some things will get complicated about what View is getting the Touch event. The ListView will fight with any buttons inside it for control of the TouchEvents.

To make it easier, one thing you could also consider is making "edit" and "delete" available as a long-press context menu.

Menus | Android Developers


hope that helps
 
You should be able to put a table in each row so that they line up ok.

http://developer.android.com/reference/android/widget/TableLayout.html

What you'll probably want to do use use a BaseAdapter or CursorAdapter

There are a fair number of tutorials on both. Here's one article about them:

An Analysis between BaseAdapters and CursorAdapters Think Android


When you make your own rows like that however, some things will get complicated about what View is getting the Touch event. The ListView will fight with any buttons inside it for control of the TouchEvents.

To make it easier, one thing you could also consider is making "edit" and "delete" available as a long-press context menu.

Menus | Android Developers

menu-context.png

hope that helps
 
Back
Top Bottom