android.widget.ScrollView.setScrollBarStyle()方法的使用及代码示例

x33g5p2x  于2022-01-29 转载在 其他  
字(1.3k)|赞(0)|评价(0)|浏览(200)

本文整理了Java中android.widget.ScrollView.setScrollBarStyle()方法的一些代码示例,展示了ScrollView.setScrollBarStyle()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ScrollView.setScrollBarStyle()方法的具体详情如下:
包路径:android.widget.ScrollView
类名称:ScrollView
方法名:setScrollBarStyle

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;
}

相关文章

ScrollView类方法