首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 移动开发 > 移动开发 >

ListView的右侧滚动滑块

2012-09-29 
ListView的右边滚动滑块ListView的右边滚动滑块:?private void slipPic() {try {Field f AbsListView.cl

ListView的右边滚动滑块

ListView的右边滚动滑块:

?

private void slipPic() {try {Field f = AbsListView.class.getDeclaredField("mFastScroller");f.setAccessible(true);Object o = f.get(listView);  //listview 控件f = f.getType().getDeclaredField("mThumbDrawable");f.setAccessible(true);Drawable drawable = (Drawable) f.get(o);drawable = getResources().getDrawable(R.drawable.icon);f.set(o, drawable);Toast.makeText(this, f.getType().getName(), 1000).show();} catch (Exception e) {throw new RuntimeException(e);}}

?

热点排行