博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
仿照利用android系统源码资源文件,修改SeekBar颜色 前景与背景
阅读量:2390 次
发布时间:2019-05-10

本文共 458 字,大约阅读时间需要 1 分钟。

先看结果:

1.拖一个SeekBar控件, ProgressDrawable默认值@android:drawable/scrubber_progress_horizontal_holo_light

2.在anroid SDK里搜索scrubber_progress_horizontal_holo_light.xml,打开源码为

3.直接使用会提示其中的 android:drawable="@android:drawable/scrubber_track_holo_light"不是public,可以

用android:drawable="@android:color/black"替换就行。

以下是我改的:

android:progressDrawable="@drawable/progressbar_blue"

progressbar_blue.xml

 

 

转载地址:http://jcaab.baihongyu.com/

你可能感兴趣的文章
Linux下的内网反弹实例
查看>>
Command execution with a MySQL UDF
查看>>
OTPs: Using s/Key with SSH via OPIE
查看>>
使用arpwatch和arping来排查ARP攻击
查看>>
Linux硬件监控方法
查看>>
RSA SecurID Authentication linux sshd PAM deploy
查看>>
转: pam 禁止某些用户使用ssh 远程登录
查看>>
小包优先+web优先+游戏爆发+单IP限速+连接数限制 脚本V2.0
查看>>
Rhel5 配置NTP服务
查看>>
定制rhel的stage2.img/minstg2.img文件
查看>>
ZZ Quick-Tip: Linux NAT in Four Steps using iptables
查看>>
北京的住房公积金是否可用于还外地的房贷
查看>>
mysqlhotcopy 热备工具体验与总结
查看>>
MooseFS安装笔记
查看>>
GlusterFS分布式集群文件系统安装、配置及性能测试
查看>>
Sakai
查看>>
Adobe ColdFusion Unspecified Directory Traversal Vulnerability
查看>>
Share:A File Checksum Integrity Verifier utility
查看>>
LDAP User Authentication On CentOS 5.x
查看>>
Cpanel PHP Restriction Bypass Vulnerability 0day
查看>>