建议对这个UI实现? [英] Advice on this UI implementation?

查看:127
本文介绍了建议对这个UI实现?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

下面是基本的UI我打算:

Here's the basic UI i intend:



有是中心圈:中心。作为视图旋转时,新的社交圈:NAME是在圆周上产生的。顶部的圆圈是新生成的圈子,也就是说,如果一个已经生成的循环传递给它取一个新的名字上。

There is central circle:CENTER. As the view is rotated, new circles:NAME are generated on the circumference. The circle at the top is a newly generated circle, i.e. if an already generated circle passes the top it fetches a new name.

我不知道Android的API不够好还,所以有人可以点我在正确的方向?我应该看什么课?如何创建那种寻路的?如何生成圆编程方式或在XML布局,但invis已经有意见?

I don't know the Android API well enough yet, so can someone point me in the right direction? What classes should I look at? How can I create that sort of pathing? Do I generate circle programmatically or have the views already in the xml layout but invis?

感谢。

编辑:目前,我的工作,这将是每个圆圈的自定义视图。

Currently I'm working on the custom views that will be each circle.

推荐答案

我想你可以通过扩展的适配器视图。我会通过查看源$ C ​​$ C为它和它的一些死者的,看看他们是如何实现它们的启动。

I think you could do it by extending AdapterView. I would start by looking at the source code for it and some of its decedents to see how they implemented them.

你后,我不认为是很远的一个ListView或其他一些简单的适配器准备查看小部件。

The functionality you are after I don't think is very far removed from a ListView or some of the other simple Adapter ready View widgets.

的主要区别将是你的onDraw()方法中,你需要覆盖画出的圆圈为您服务。无论你做编程的圈子或在XML中定义你自己的看法是要取决于您希望如何在视觉上出现。

The main difference is going to be your onDraw() method, you'll need to override that to draw the circles for you. Whether you make the circles programmatically or define your own views in xml is going to depend on how you want to appear visually.

我没有任何样本code的旋转效果你是后但肯定可以用帆布和一些几何形状来实现。

I don't have any sample code for the rotation effect you are after but surely it can be accomplished with a canvas and some geometry.

一旦你得到了适配器视图建还可能会想继承适配器来牵你的名字并覆盖其getView()方法来填充名称进入圈子适合你。

Once you've got the AdapterView built you'll also probably want to subclass an Adapter to hold your names and override its getView() method to populate the names into the circles for you.

如果您还没有实施过任何的ViewGroup部件,我建议你通过探索其中的一些启动。 ListView中,GridView控件等。了解如何使用适配器和一些数据使用它来创建动态布局。一旦你有一个如何使用已经建立的那些有很好的理解,然后开始尝试解决你想的那个。

If you have not ever implemented any of the ViewGroup widgets I suggest you start by exploring some of those. ListView, GridView, etc.. Learn how to use it with an adapter and some data to create the dynamic layout. Once you have a good understanding of how to use the ones that are already built then start trying to tackle the one you want to make.

这篇关于建议对这个UI实现?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆