Android layout Android 9patch不透明角
我使用android 9patch图像显示通知: 我尝试使用白色和透明的背景,但它仍然是不透明的。是的,文件名以Android layout Android 9patch不透明角,android-layout,android-notifications,nine-patch,Android Layout,Android Notifications,Nine Patch,我使用android 9patch图像显示通知: 我尝试使用白色和透明的背景,但它仍然是不透明的。是的,文件名以.9.png 以下是通知的布局: <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="wrap_content"
.9.png
以下是通知的布局:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="vertical"
android:layout_gravity="center_horizontal">
<TextView
android:id="@android:id/message"
android:layout_width="300dip"
android:layout_height="wrap_content"
android:layout_margin="@dimen/common_whitespace"
android:textColor="@color/screen_game_dialog_text_color"
android:textSize="14dip"
android:gravity="center"
android:background="@drawable/notification_popup_default"
android:contentDescription="@null"/>
</LinearLayout>
这是9patch图像(它不是我的,所以我添加了一种水印):
我做错了什么?角点的背景为白色,alpha值不是0。背景必须完全透明。您指的是纸/木效果图像,而不是浅蓝色圆形矩形吗?你能贴上你的9号补丁吗?