ScrollView.fullScroll(int direction):

Handles scrolling in response to a "home/end" shortcut press. This method will scroll the view to the top or bottom and give the focus to the topmost/bottommost component in the new visible area. If no component is a good candidate for focus, this scrollview reclaims the focus.

方向: View.Focus_Up,Focus_Down,Focus_Left,Focus_Right,水平滚动的将使用Focus_Left,Focus_Right,垂直的使用View.Focus_Up,Focus_Down.


对ScrollView.fullScroll()的调用,应该这样

postDelayed(new Runnable() {            @Override            public void run() {                view.fullScroll(ScrollView.FOCUS_RIGHT);            }        },100L);

如果直接调用可能会无效,所以让其延迟下。android中经常使用消息队列来同步.


更多相关文章

  1. Android(安卓)ApiDemos示例解析(101):Views->Auto Complete->3.
  2. OkHttpClient加载图片给DisposableObserver,CompositeDisposable
  3. Android程序开始的等待动画或LOGO
  4. Android异步通信机制(一)
  5. Android(安卓)获取View中的组件
  6. 【Android】 PopupWindow使用小结
  7. 是否应该开启WebView硬件加速?
  8. android启动activity的详细过程
  9. Android(安卓)MP4视频录制(思路篇,无DEMO)

随机推荐

  1. Android开发环境配置简介
  2. Android(安卓)AdapterView 源码分析以及
  3. Android(安卓)数字签名学习笔记
  4. Android中View和ViewGroup介绍
  5. 十大最佳外国Android游戏下载平台
  6. Google请人为Android挑刺
  7. Android客户端连接Struts2服务器,连接不上
  8. 【笔记】Android上ROS开发介绍与安装简介
  9. android:xmlns的作用以及自定义
  10. Android编程实现连接Wifi(运用Wifi 相关