您的位置:首页 > 其它

自定义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>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: