安卓:垂直滚动条 [英] Android: Vertical Scrollbar

查看:179
本文介绍了安卓:垂直滚动条的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要在列表视图和GridView来实现这一目标。
请指导我。
在向下箭头的长按,我要来的列表的末尾。

I want to achieve this in list view and gridview. Please Guide me. On the long click of down arrow, i want to come to the end of the of the list.

推荐答案

您可以使用 setSelection(指数),列表视图显示会跳转到你想要的指数

You can use setSelection(index), the listview display will jump to the index you want

downButton.setOnLongClickListener(new OnLongClickListener() { 
        @Override
        public boolean onLongClick(View v) {

   listView.setSelection(LastPositionIndex);

            return true;
        }
    });

请参阅此链接也可能与你

See this link also, may be related to you

滚动到在ListView 位置

EDITED

请参阅此链接,不正是你想要的,但类似的,我想你会需要自定义列表视图供您使用。

See this link, not exactly what you want but similar, I think you will require custom listview for your purpose.

HTTP://baziegar.word$p$pss .COM / 2012/07/28 / Android的列表视图/

这篇关于安卓:垂直滚动条的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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