Android的复杂的布局设计指教 [英] Android complex layout design advise
问题描述
我想实现Android的仪表盘活动复杂的布局图如下图所示。
I'm suppose to implement a complex layout for Android dashboard activity as shown in the following image.
下面对一些小区中的多个文本视图应该像这样加,
例如:
Here for some cells multiple text views should be added like this, Eg:
下面的一些文本视图文本将使用异步任务的Web服务被加载。只有一个图像视图,应点击干练。结果
我想知道,什么是实现这种类型的Android中复杂的布局的最好方式。
我曾尝试使用linearlayouts withing lianearlayouts来实现这一点,但它是巨大的烂摊子,很多复杂的。然后我试图与lianearlayouts使用tablelayouts但它也变得越来越复杂。后来我想这样做,使用电网与linearlayouts意见,但我不知道如何准确做到这一点。结果
我仍然在学习阶段,我只是想一个忠告是什么来实现这个布局我应该使用什么类型的布局,并在最好的方式。我不需要完整的实现。
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.
在此先感谢。
推荐答案
这样的问题都可以使用Android%的支持库解决很容易,
These kind of problems can be solved very easy using Android Percent Support Lib,
结帐要点:
https://gist.github.com/shekarrex/5458f697c02e5619b0e2
这篇关于Android的复杂的布局设计指教的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!