Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android complex layout design advise

I'm suppose to implement a complex layout for Android dashboard activity as shown in the following image.

enter image description here

Here for some cells multiple text views should be added like this, Eg:

enter image description here

Here the texts of some text views will be loaded from a web service using Async tasks. Only one image view should be click able.
I want to know that what is the best way to implement this type of complex layout in Android. I have tried to use linearlayouts withing lianearlayouts to implement this but it is huge mess and lot of complex. Then I tried to use tablelayouts with lianearlayouts but it is also getting more complex. Then I thought of doing this using grid views with linearlayouts but I'm wonder how to do this exactly.
I'm still in learning stage, I just want an advice what is the best way to implement this layout what type of layouts should I use and where. I don't need complete implementation.

Thanks in advance.

like image 503
Grant Avatar asked Oct 22 '13 15:10

Grant


1 Answers

These kind of problems can be solved very easy using Android Percent Support Lib,

enter image description here

checkout gist: https://gist.github.com/shekarrex/5458f697c02e5619b0e2

like image 193
shekar Avatar answered Sep 19 '22 02:09

shekar