本文整理了Java中android.widget.ScrollView.setScrollbarFadingEnabled()
方法的一些代码示例,展示了ScrollView.setScrollbarFadingEnabled()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ScrollView.setScrollbarFadingEnabled()
方法的具体详情如下:
包路径:android.widget.ScrollView
类名称:ScrollView
方法名:setScrollbarFadingEnabled
暂无
代码示例来源:origin: WiInputMethod/VE
public void create(int direction, Context context) {
super.create(context);
outerLayoutParams = new LinearLayout.LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT);
innerLayoutParams = new FrameLayout.LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT);
layoutforWrapButtons = new LinearLayout(context);
res = context.getResources();
this.direction = direction;
if (direction == horizontal) {
horizontalScrollView = new HorizontalScrollView(context);
horizontalScrollView.setSmoothScrollingEnabled(true);//很必须,勿删
horizontalScrollView.setHorizontalScrollBarEnabled(false);
layoutforWrapButtons.setOrientation(LinearLayout.HORIZONTAL);
horizontalScrollView.addView(layoutforWrapButtons, innerLayoutParams);
} else if (direction == vertical) {
scrollView = new ScrollView(context);
scrollView.setSmoothScrollingEnabled(true);
scrollView.setScrollbarFadingEnabled(false);
layoutforWrapButtons.setOrientation(LinearLayout.VERTICAL);
scrollView.addView(layoutforWrapButtons, innerLayoutParams);
}
}
代码示例来源:origin: stackoverflow.com
sv.setScrollbarFadingEnabled(false);
HorizontalScrollView scrolview = new HorizontalScrollView(this);
scrolview.setScrollbarFadingEnabled(false);
内容来源于网络,如有侵权,请联系作者删除!