本文整理了Java中android.widget.ScrollView.setScrollBarStyle()
方法的一些代码示例,展示了ScrollView.setScrollBarStyle()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ScrollView.setScrollBarStyle()
方法的具体详情如下:
包路径:android.widget.ScrollView
类名称:ScrollView
方法名:setScrollBarStyle
暂无
代码示例来源:origin: stackoverflow.com
mTextViewPort = (LinearLayout) findViewById(R.id.view1);
// Create a ScrollView instance
ScrollView mScrollView = new Scrollview(mContext);
// here mContext would be Activity's context. You may also choose
// mScrollView as a global variable.
mScrollView.setScrollBarStyle(SCROLLBARS_OUTSIDE_INSET);
mTextViewPort.addView(mScrollView,
new LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.WRAP_CONTENT));
TextView mTextView = (TextView) findViewById(R.id.tv_service_ticketinfo_details);
mScrollView.addView(mTextView );
代码示例来源:origin: lexica/lexica
private ViewGroup initializeScrollView(int resId) {
ScrollView sv = (ScrollView) findViewById(resId);
sv.setScrollBarStyle(View.SCROLLBARS_OUTSIDE_INSET);
ViewGroup.LayoutParams llLp = new ViewGroup.LayoutParams(
ViewGroup.LayoutParams.FILL_PARENT,
ViewGroup.LayoutParams.WRAP_CONTENT);
LinearLayout ll = new LinearLayout(this);
ll.setLayoutParams(llLp);
ll.setOrientation(LinearLayout.VERTICAL);
sv.addView(ll);
return ll;
}
内容来源于网络,如有侵权,请联系作者删除!