主要代码就是

<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"    android:layout_width="match_parent"    android:layout_height="wrap_content"    android:scrollbarTrackVertical="@drawable/scrollbar_vertical_track"    android:scrollbarThumbVertical="@drawable/scrollbar_vertical_thumb"    android:scrollbarSize="12dip"/>


scrollbar_vertical_track.xml文件
<?xml version="1.0" encoding="utf-8"?><shape xmlns:android="http://schemas.android.com/apk/res/android">    <gradient android:startColor="#505050" android:endColor="#C0C0C0"            android:angle="0"/>    <corners android:radius="0dp" /></shape>




scrollbar_vertical_thumb.xml 
<?xml version="1.0" encoding="utf-8"?><shape xmlns:android="http://schemas.android.com/apk/res/android">    <gradient android:startColor="#3333FF" android:endColor="#8080FF"            android:angle="0"/>    <corners android:radius="6dp" /></shape>



更多相关文章

  1. react native android环境配置
  2. 淘宝:模拟实现帮助提示页面
  3. Android为TV端助力 MediaPlayer 错误代码(error code)总结 转载
  4. Android布局文件.xml中的自定义属性(结合封装的自定义View)
  5. Android(安卓)监听锁屏、解锁、开屏 功能代码
  6. android 图片遮罩,水印
  7. Android在布局文件指定位置动态增加删除布局
  8. ---RIL层代码分析---RIL_startEventLoop()->eventLoop()->ril_ev
  9. Android(安卓)使用 HttpURLConnection 实例

随机推荐

  1. Jenkins持续集成安卓 Android
  2. Android(安卓)OkHttp异常
  3. Android(安卓)studio 导入github工程
  4. Android(安卓)拦截修改电话号码
  5. android html 读写文件
  6. android thread实例
  7. android 显示多选列表对话框
  8. Android(安卓)常用参考文档
  9. android 外部启动activity,…
  10. Could not get unknown property 'ANDROI