Java Code Examples for android.widget.ScrollView#getMeasuredHeight()
The following examples show how to use
android.widget.ScrollView#getMeasuredHeight() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ScrollingUtil.java From AgentWebX5 with Apache License 2.0 | 5 votes |
public static boolean isScrollViewToBottom(ScrollView scrollView) { if (scrollView != null) { int scrollContentHeight = scrollView.getScrollY() + scrollView.getMeasuredHeight() - scrollView.getPaddingTop() - scrollView.getPaddingBottom(); int realContentHeight = scrollView.getChildAt(0).getMeasuredHeight(); if (scrollContentHeight == realContentHeight) { return true; } } return false; }
Example 2
Source File: ScrollingUtil.java From TwinklingRefreshLayout with Apache License 2.0 | 5 votes |
public static boolean isScrollViewToBottom(ScrollView scrollView) { if (scrollView != null) { int scrollContentHeight = scrollView.getScrollY() + scrollView.getMeasuredHeight() - scrollView.getPaddingTop() - scrollView.getPaddingBottom(); int realContentHeight = scrollView.getChildAt(0).getMeasuredHeight(); if (scrollContentHeight == realContentHeight) { return true; } } return false; }
Example 3
Source File: BGAScrollingUtil.java From AndroidStudyDemo with GNU General Public License v2.0 | 5 votes |
public static boolean isScrollViewToBottom(ScrollView scrollView) { if (scrollView != null) { int scrollContentHeight = scrollView.getScrollY() + scrollView.getMeasuredHeight() - scrollView.getPaddingTop() - scrollView.getPaddingBottom(); int realContentHeight = scrollView.getChildAt(0).getMeasuredHeight(); if (scrollContentHeight == realContentHeight) { return true; } } return false; }
Example 4
Source File: ScrollingUtil.java From Pas with Apache License 2.0 | 5 votes |
public static boolean isScrollViewToBottom(ScrollView scrollView) { if (scrollView != null) { int scrollContentHeight = scrollView.getScrollY() + scrollView.getMeasuredHeight() - scrollView.getPaddingTop() - scrollView.getPaddingBottom(); int realContentHeight = scrollView.getChildAt(0).getMeasuredHeight(); if (scrollContentHeight == realContentHeight) { return true; } } return false; }
Example 5
Source File: MDRootLayout.java From talk-android with MIT License | 4 votes |
private static boolean canScrollViewScroll(ScrollView sv) { if (sv.getChildCount() == 0) return false; final int childHeight = sv.getChildAt(0).getMeasuredHeight(); return sv.getMeasuredHeight() - sv.getPaddingTop() - sv.getPaddingBottom() < childHeight; }
Example 6
Source File: ReleaseNotesActivity.java From evercam-android with GNU Affero General Public License v3.0 | 4 votes |
@Override public void onWindowFocusChanged(boolean hasfocus) { ScrollView svreleasenotes = (ScrollView) findViewById(R.id.svreleasenotes); svreleasenotes.getLayoutParams().height = svreleasenotes.getMeasuredHeight() - btnReleaseNotes.getMeasuredHeight(); }