自定义ToggleButton背景图片拉伸的现象
2016-05-12 16:52
127 查看
开发中遇到需要自定义一个ToggleButton,但是写好后发现始终有拉伸现象,最终发现在androidmainfest.xml中 application 属性是"@style/AppTheme",将其修改为@android:style/Theme.Light.NoTitleBar 问题解决。
<style name="AppTheme" parent="AppBaseTheme">
<!-- All customizations that are NOT specific to a particular API-level can go here. -->
</style>
<style name="AppTheme" parent="AppBaseTheme">
<!-- All customizations that are NOT specific to a particular API-level can go here. -->
</style>
相关文章推荐
- nyoj 239 月老的难题 (最大二分图匹配匈牙利算法)
- 对NSString进行URL编码转换
- Java基础之编码详解(1)
- iOS之美:如何优化UITableView的性能
- malloc/free与new/delete的区别
- 随机十个数的排序,选择法排序
- Spring Application Event Example
- CentOS VMware 下SSH配置方法详解
- 使用PDO持久化连接
- springmvc快速浏览入门
- 使用jQuery制作遮罩层弹出效果的极简实例分享
- MyBatis 3 自动生成 主键 针对不同的数据库(oracle/sqlserver/mysql)
- 从IRQ到IRQL(APIC版)
- Swift的类型推断会不会造成类型不确定的困扰?
- qt条件编译debug和release版本--qmake之CONFIG(debug, debug|release)
- 【Lua】将数据插入table,并设置Key值
- ASCII 码表
- Storm学习一: Storm简介
- 比较数的大小(比较法)
- Ant+TestNG+Webdriver环境搭建