本文整理了Java中android.widget.HorizontalScrollView.postDelayed()
方法的一些代码示例,展示了HorizontalScrollView.postDelayed()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。HorizontalScrollView.postDelayed()
方法的具体详情如下:
包路径:android.widget.HorizontalScrollView
类名称:HorizontalScrollView
方法名:postDelayed
暂无
代码示例来源:origin: stackoverflow.com
public void autoSmoothScroll() {
final HorizontalScrollView hsv = (HorizontalScrollView) view.findViewById(R.id.horiscroll);
hsv.postDelayed(new Runnable() {
@Override
public void run() {
//hsv.fullScroll(HorizontalScrollView.FOCUS_RIGHT);
hsv.smoothScrollBy(500, 0);
}
},100);
}
代码示例来源:origin: weexteam/weex-hackernews
@Override
public boolean postDelayed(Runnable action, long delayMillis) {
return super.postDelayed(WXThread.secure(action), delayMillis);
}
代码示例来源:origin: zfman/hputimetable
/**
* 将周次的滚动条切换到索引处
*
* @param index 0:第一个位置
*/
public void scrollToIndex(final int index){
int c=container.getChildCount();
if(index<0||index>=c) return;
final LinearLayout layout=layouts.get(index);
if(layout!=null){
scrollView.postDelayed(new Runnable() {
@Override
public void run() {
Log.d("ScrollView", "run: ");
scrollView.scrollTo(index* ScreenUtils.dip2px(getContext(),65),0);
}
},200);
}
}
}
代码示例来源:origin: luhaoaimama1/zone-sdk
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.a_hero_scroller);
ButterKnife.bind(this);
sv.postDelayed(new Runnable() {
@Override
public void run() {
sv.scrollTo(1000, 0);
Log.e("ScrollerViewActivity",sv.getScrollX()+"");
}
},2000);
}
}
代码示例来源:origin: DF1E/SimpleExplorer
scrolltext.postDelayed(new Runnable() {
@Override
public void run() {
代码示例来源:origin: adolfAn/FBReader_AS
mViewLocationsContainer.postDelayed(new Runnable() {
代码示例来源:origin: oswaldo89/EasyImagePicker-library
public void AddNewImage(Intent imageReturnedIntent) {
if (im2.getVisibility() != View.VISIBLE) {
ChangeVisible(im2, imageReturnedIntent, 2);
} else if (im3.getVisibility() != View.VISIBLE) {
ChangeVisible(im3, imageReturnedIntent, 3);
} else if (im4.getVisibility() != View.VISIBLE) {
ChangeVisible(im4, imageReturnedIntent, 4);
} else if (im5.getVisibility() != View.VISIBLE) {
ChangeVisible(im5, imageReturnedIntent, 5);
} else if (im6.getVisibility() != View.VISIBLE) {
ChangeVisible(im6, imageReturnedIntent, 6);
} else if (im7.getVisibility() != View.VISIBLE) {
ChangeVisible(im7, imageReturnedIntent, 7);
} else if (im8.getVisibility() != View.VISIBLE) {
ChangeVisible(im8, imageReturnedIntent, 8);
} else if (im9.getVisibility() != View.VISIBLE) {
ChangeVisible(im9, imageReturnedIntent, 9);
} else if (im10.getVisibility() != View.VISIBLE) {
ChangeVisible(im10, imageReturnedIntent, 10);
} else if (im11.getVisibility() != View.VISIBLE) {
ChangeVisible(im11, imageReturnedIntent, 11);
}
final HorizontalScrollView horizontalScroll = (HorizontalScrollView) findViewById(R.id.horizontalScroll);
horizontalScroll.postDelayed(new Runnable() {
public void run() {
horizontalScroll.fullScroll(HorizontalScrollView.FOCUS_LEFT);
}
}, 100L);
}
内容来源于网络,如有侵权,请联系作者删除!