垂直库实现使用列表视图 [英] Vertical Gallery implementation using ListViews

查看:159
本文介绍了垂直库实现使用列表视图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们必须实现对象的垂直画廊(说静态文本)定焦在屏幕的中央。焦点将停留在一个点和项目将上下滚动。列表将从屏幕中心开始。
问题:


  1. 可以这样使用的ListView来完成?怎么样?

  2. ,否则我将不得不延长库对象和方向?工作


解决方案

图库不会允许垂直滚动,只有水平。出于这个原因,我不认为你的第二个问题,有一个工作的答案。最近,我需要完成这些方针的东西,发现这是有帮助的:的http:/ /$c$c.google.com/p/android-wheel/

We have to implement a vertical Gallery of objects (say static text) with fixed focus at the center of screen. Focus will stay at one point and the items will scroll up and down. The list will start from the center of screen. Questions:

  1. Can this be done using ListView? How?
  2. Or will I have to extend Gallery object and work on orientation?

解决方案

Gallery will not allow vertical scrolling, only horizontal. For that reason, I don't think your second question has a working answer. I recently needed to accomplish something along these lines and found this to be helpful: http://code.google.com/p/android-wheel/

这篇关于垂直库实现使用列表视图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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