Android的EPG布局 [英] Android EPG Layout

查看:1351
本文介绍了Android的EPG布局的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想开发一个EPG样的布局在android系统。我在这里看到了一些问题。但我无法理解如何使用自定义适配器视图根据时间的帮助下绘制EPG的方式行(不同大小的块)。请建议,或提供一些文档链接,以澄清自己。

I want to develop an epg kind of layout in android. I have seen some questions here. But I am not able to understand how to draw the row in "epg" manner (different size blocks) with the help of Custom AdapterView depending on time. Please suggest, or give some documentation links to clarify myself.

感谢您
拉金德拉

Thank You Rajendra

推荐答案

您需要根据他们的开始和结束时间延长的ViewGroup和覆盖其onLayout,你将不得不把在正确的位置的子视图(程序)。您将从适配器视图得到这些子视图。你还必须实现视图回收,因为它是在做的ListView,因为没有这种优化EPG组成部分将是太慢了。

You need to extend ViewGroup and override their onLayout where you will have to put in correct positions subviews(programs) based on their start and end time. You will get these subviews from AdapterView. Also you will have to implement view recycling as it is done in ListView, because without this optimization epg component will be too slow.

这篇关于Android的EPG布局的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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