Best code examples for Android HorizontalScrollView class (android.widget.HorizontalScrollView)

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Android HorizontalScrollView class.
You can now enable Codota on your own code to easily search and navigate your Java codebase.

Android HorizontalScrollView examples from Open Source projects
This code example shows how to use the following methods: scrollBy
163:	me.scrollBy(scrollToViewPos, 0); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: setHorizontalFadingEdgeEnabled, setHorizontalScrollBarEnabled, setLayoutParams, setVerticalFadingEdgeEnabled, setVerticalScrollBarEnabled
99:	scroll.setLayoutParams(new ViewGroup.LayoutParams(MP, MP)); 
100:	scroll.setVerticalScrollBarEnabled(false); 
101:	scroll.setHorizontalScrollBarEnabled(false); 
102:	scroll.setHorizontalFadingEdgeEnabled(false); 
103:	scroll.setVerticalFadingEdgeEnabled(false); 
-
122:	scroll.addView(linear); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods:
60:	scroll = new HorizontalScrollView(this.getContext()); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods:
56:	scrollView = new HorizontalScrollView(context, attrs); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getWidth, postDelayed, setFillViewport, smoothScrollTo
191:	scrollView.setFillViewport(true); 
-
193:	final int scrollPos = tabView.getLeft() - (scrollView.getWidth() - tabView.getWidth()) / 2; 
194:	scrollView.smoothScrollTo(scrollPos, 0); 
195:	scrollView.postDelayed(new Runnable() { 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getScrollX, getWidth, smoothScrollBy
115:	final int childLeft = mRadioGroup.getChildAt(index).getLeft() - mHorizontalScrollView.getScrollX(); 
116:	final int centerLine = mHorizontalScrollView.getWidth() / 2; 
-
118:	mHorizontalScrollView.smoothScrollBy(childWidth, 0); 
-
121:	mHorizontalScrollView.smoothScrollBy(-childWidth, 0); 
-
124:	System.out.println("x:" + mHorizontalScrollView.getScrollX()); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: setLayoutParams, addView
34:	horizontalScrollView = new HorizontalScrollView(context); 
-
36:	horizontalScrollView.setLayoutParams(params); 
-
38:	horizontalScrollView.addView(container); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getScrollX, getScrollY, getWidth
79:	int scrollerX = scrollView.getScrollX(); 
80:	int scrollerY = scrollView.getScrollY(); 
-
82:	int scrollViewWidth = scrollView.getWidth(); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getMeasuredWidth, smoothScrollTo
166:	int featureWidth = mHorizontalScrollView.getMeasuredWidth(); 
-
168:	mHorizontalScrollView.smoothScrollTo(mActiveFeature*featureWidth, 0); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getViewTreeObserver, getChildAt
64:	mScrollView.getViewTreeObserver().removeGlobalOnLayoutListener(this); 
65:	mScrollWidth = mScrollView.getChildAt(0).getMeasuredWidth() 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: smoothScrollTo
319:	scrollView.smoothScrollTo(left, 0); 
Full Snippet Info
3
CodeRank
This code example shows how to use the following methods: smoothScrollTo
119:	scroller.smoothScrollTo(xPos, 0); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: smoothScrollTo
97:	scrollView.smoothScrollTo(left, 0); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: invalidate
173:	scrollView.invalidate(); // Redraw the layout 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: addView
104:	HorizontalScrollView hRootComp = new HorizontalScrollView(this); 
105:	hRootComp.addView(vRootComp); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: addView
33:	HorizontalScrollView horizontalScrollView = new HorizontalScrollView( 
-
35:	horizontalScrollView.addView(layout); 
Full Snippet Info
8
CodeRank
This code example shows how to use the following methods: fullScroll
51:	h.fullScroll(HorizontalScrollView.FOCUS_LEFT); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: smoothScrollTo
131:	scrollView.smoothScrollTo(left, 0); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: addView
20:	HorizontalScrollView scrollView = new HorizontalScrollView(this); 
-
23:	scrollView.addView(verticalScroller); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: postDelayed, getMaxScrollAmount
60:	maxBannerPos = banner.getMaxScrollAmount(); 
-
62:	banner.postDelayed(new Runnable() { 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: fling
60:	categoryScrollView.fling(800); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: smoothScrollTo
125:	scrollView.smoothScrollTo(left, 0); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: addView
48:	HorizontalScrollView hScroll = new HorizontalScrollView(this); 
-
50:	hScroll.addView(layout); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: scrollBy
48:	mSView.scrollBy(-40, 0); 
-
51:	mSView.scrollBy(40, 0); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: scrollBy
42:	hScroll.scrollBy((int) (mx - curX), (int) (my - curY)); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: smoothScrollTo
118:	scrollView.smoothScrollTo(left, 0); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: addView
32:	HorizontalScrollView hScroll = new HorizontalScrollView(getActivity()); 
-
36:	hScroll.addView(mText); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: fullScroll
37:	s.fullScroll(HorizontalScrollView.FOCUS_RIGHT); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: smoothScrollTo
59:	scrollView.smoothScrollTo(left, 0); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: scrollTo
96:	scroll.scrollTo(mShowingMenu ? 0 : r, 0); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: smoothScrollTo
62:	scrollView.smoothScrollTo(left, 0); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: scrollTo
35:	scoreStepsScrollView.scrollTo(l, t); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: getScrollX, smoothScrollBy
411:	scrollWidth = newLeftMostVisibleTab.getLeft() - mTabsScrollWrapper.getScrollX(); 
-
415:	mTabsScrollWrapper.smoothScrollBy(scrollWidth, 0); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: smoothScrollTo
36:	scrollView.smoothScrollTo(left, 0); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: scrollBy
164:	me.scrollBy(scrollToViewPos, 0); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods:
56:	scrollView = new HorizontalScrollView(context, attrs); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: smoothScrollTo
34:	scrollView.smoothScrollTo(left, 0); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: scrollBy
164:	me.scrollBy(scrollToViewPos, 0); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods:
58:	scrollView = new HorizontalScrollView(context, attrs); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: smoothScrollTo
30:	scrollView.smoothScrollTo(left, 0); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: scrollBy
160:	me.scrollBy(scrollToViewPos, 0); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: smoothScrollTo
217:	scrollView.smoothScrollTo(left, 0); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: smoothScrollTo
97:	scrollView.smoothScrollTo(left, 0); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods:
58:	scrollView = new HorizontalScrollView(context, attrs); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: scrollBy
143:	me.scrollBy(scrollToViewPos, 0); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: getWidth
259:	return mShortcutScroll.getWidth(); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: scrollBy
142:	me.scrollBy(scrollToViewPos, 0); 
Full Snippet Info
4
CodeRank
Related Android HorizontalScrollView Questions & Answers:
See Code Examples for Android HorizontalScrollView Methods: