开发者

Need Help on the scrolling Bar in Android? [closed]

开发者_Go百科 It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 10 years ago.

I have created a simple application which has a scroll bar. The scroll bar has 5 textviews such as Movies, Top10 Movies and so on, also the scroll bar has 2 arrow images, when I click the arrow image the textviews has to be scrolled. Can any one help me regarding on this, I am struggling on this.


san_startimg.setOnClickListener(new OnClickListener() { 
            @Override
            public void onClick(View arg0) {
                        hv.arrowScroll(View.FOCUS_LEFT);

            }
            });

            san_endimg.setOnClickListener(new OnClickListener() { 
                @Override
                public void onClick(View arg0) {

                    hv.arrowScroll(View.FOCUS_RIGHT);

                }
                });


Have you tried HorizontalScrollView#requestChildRectangleOnScreen to scroll to the next or previous item?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜