Android Question Any suggestion for grid-like design (details inside)

Said

Member
Licensed User
Longtime User
I am thinking about method for my application. Because of no simple grid, i have to decide best method.

Here is problem. I need 2, 3 or 4 columns depending of user parameters. Rows are 5 to 30, depends on parameters. Data is simple, only numbers (may be short text sometimes). No graphics, no any view/control needed inside matrix. Only special thing, colors. Sometimes, rows and colums will be colored for easy use.

Restrictions are same;

1. Easy programming
2. Optimal memory use

Normally, i was planning to build labels in scrolview but i need some lines(grids).

What should i do, any suggestions ? Any easy way ?

-regards
 

klaus

Expert
Licensed User
Longtime User
As your row number is small I would suggest you a scrollview with labels, you have all freedom to do what you want.
You could have a look at this example : ScrollView example with multiselection and SQL
It's not exactly what you are looking for but it may show the principle.

With the Flexible Table suggested by NJDude you would be limited in colors.
 
Upvote 0

Said

Member
Licensed User
Longtime User
Thanks njdude. And thanks you too klaus.

I am checking links and threads, especially your library. It looks good. Much better than i expected. I will use it in my other project, because of capabilities.

In this project, i am not sure. Its too early to use complicated solutions for me i think. Still searching for simpler solutions. But reading whole thread feels me better. I am learning, its enough for me

-regards
 
Upvote 0

Said

Member
Licensed User
Longtime User
Thanks Klaus.

Btw sorry about terminology. When i start programming, there is no 'class' or any other concept. Only libraries (i am talking about GW basic, quickbasic years). So, all usable objects are 'libraries' in my mind. But i'll fix terminology soon. 10+ years delayed old programmer need some more time to control concepts

Btw one question about table classes both standard and your's; will statemanager works with them or i have to full tables again? I can check it, if no one tried yet.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…