当前位置:网站首页>Button how to dynamically set drawablebottom (setcomposunddrawables is invalid)
Button how to dynamically set drawablebottom (setcomposunddrawables is invalid)
2022-06-26 18:57:00 【xiyangyang8110】
Get Drawable After resources ,setBounds,setCompoundDrawables
Drawable drawable = getResources().getDrawable(R.drawable.quick_login);
drawable.setBounds(0 ,0,drawable.getMinimumWidth(),drawable.getMinimumHeight());
normalLoginBt.setCompoundDrawables(null,null,null,drawable);
边栏推荐
猜你喜欢
Boot的单元测试
Pinda general permission system (day 3~day 4)
Current limiting design and Implementation
MySQL recharge
Redis single sign on system + voting system
Logstash安装及使用
Installation and use of filebeat
Kubernetes 资源拓扑感知调度优化
【推荐收藏】这8个常用缺失值填充技巧一定要掌握
Preliminary analysis of serial port printing and stack for arm bare board debugging
随机推荐
vuex中利用缓存解决刷新state数据丢失问题
预编译处理指令中的条件编译
Project practice 4: user login and token access verification (reids+jwt)
Wechat applet uniapp left slide delete with Delete Icon
ROS查询话题具体内容常用指令
Image binarization
To: Apple CEO Cook: great ideas come from constantly rejecting the status quo
Yujun product methodology
ROS query topic specific content common instructions
(几何) 凸包问题
ISO documents
Logstash安装及使用
find_ path、find_ Library memo
Pinda general permission system (day 1~day 2)
Do you know how to compare two objects
Redis Basics
成功解决之微服务@Value获取配置文件乱码问题
Redis single sign on system + voting system
Soft test preparation multimedia system
数据库范式和主码的选择