本文整理了Java中android.widget.HorizontalScrollView.getMeasuredWidth()
方法的一些代码示例,展示了HorizontalScrollView.getMeasuredWidth()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。HorizontalScrollView.getMeasuredWidth()
方法的具体详情如下:
包路径:android.widget.HorizontalScrollView
类名称:HorizontalScrollView
方法名:getMeasuredWidth
暂无
代码示例来源:origin: stackoverflow.com
HorizontalScrollView scroller;
int scrollerWidth = scroller.getMeasuredWidth();
int scrollX = scroller.getScrollX();
int activeViewCount = 0;
activeViewCount = (activeViewCount > 0) ? activeViewCount - 1 : 0;
scroller.smoothScrollTo(activeViewCount * scrollerWidth, 0);
if (scrollX >= scrollerWidth) {
scroller.scrollTo(0, 0);
}
代码示例来源:origin: jjhesk/KickAssSlidingMenu
final int w = me.getMeasuredWidth();
final int h = me.getMeasuredHeight();
代码示例来源:origin: stackoverflow.com
final int w = me.getMeasuredWidth();
final int h = me.getMeasuredHeight();
内容来源于网络,如有侵权,请联系作者删除!