摘要: 1.固定到顶部scroll_view.requestFocusFromTouch();scroll_view.setScrollX(0);2.固定到指定位置 int[] location = new int[2]; titleTwo.getLocationOnScreen(location); in 阅读全文
posted @ 2018-05-23 17:52 dub 阅读(160) 评论(0) 推荐(0) 编辑
摘要: 在界面布局文件中使用<fragment>元素添加Fragment时,可以为<fragment>元素指定android:id或android:tag属性,这两个属性都可用于标识该Fragment,接下来可以通过findFragmentById(int id)或者findFragmentByTag(St 阅读全文
posted @ 2018-05-23 17:06 dub 阅读(11286) 评论(0) 推荐(0) 编辑