我正在我的Nexus 5上测试Android L预览版,我的应用程序遇到了问题。
我有一些设置有背景的TextView:
android:background="@drawable/rounded_textview"
而“rounded_textview”只是一个形状,它在API19及以下的版本中运行良好。
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle" android:padding="3dp">
<solid android:color="#999999"/>
<corners
android:bottomRightRadius="2dp"
android:bottomLeftRadius="2dp"
android:topLeftRadius="2dp"
android:topRightRadius="2dp"/>
</shape>
在Android L开发者预览版中,背景被忽略了。我所有的TextView都是透明的。有什么办法可以解决吗?
在Android L开发者预览版中,背景被忽略了。我所有的TextView都是透明的。有什么办法可以解决吗?