本文整理了Java中android.widget.HorizontalScrollView.setPadding()
方法的一些代码示例,展示了HorizontalScrollView.setPadding()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。HorizontalScrollView.setPadding()
方法的具体详情如下:
包路径:android.widget.HorizontalScrollView
类名称:HorizontalScrollView
方法名:setPadding
暂无
代码示例来源:origin: stven0king/JsonHandleView
private void initView(Context context) {
this.mContext = context;
contentView = new LinearLayout(mContext);
FrameLayout.LayoutParams layoutParams = new FrameLayout.LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT);
contentView.setLayoutParams(layoutParams);
contentView.setOrientation(LinearLayout.VERTICAL);
horizontalScrollView = new HorizontalScrollView(mContext);
horizontalScrollView.setLayoutParams(layoutParams);
horizontalScrollView.setPadding(12, 12, 12, 0);
horizontalScrollView.addView(contentView);
this.addView(horizontalScrollView);
}
代码示例来源:origin: firelotus/Meteorite
mainLayout.addView(spinnertable);
mainLayout.addView(help);
hsv.setPadding(0,10,0,10);
hsv.setScrollbarFadingEnabled(false);
hsv.setScrollBarStyle(View.SCROLLBARS_OUTSIDE_INSET);
内容来源于网络,如有侵权,请联系作者删除!