我正在測試我的Nexus 5上的Android L Preview。我的應用程序出現問題。Android L忽略了可繪製背景的形狀
我有一些TextViews背景設定:
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 Developer Preview後臺被忽略。我所有的TextView都是透明的。 任何想法我做錯了什麼?
此bug已報道了Android的開發者預覽版的bug跟蹤系統,並希望能在最終發佈前固定Android L: https://code.google.com/p/android-developer-preview/issues/detail?id=177 – BladeCoder