2013-03-07 52 views
0

我展示采用了android 9patch图像通知:的Android 9patch不透明角落

enter image description here

我试图用白色和透明的背景,但它仍然是不透明的。是的,文件的名称与.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图像(它不是我的,所以我平添几分水印):

enter image description here

我做错了什么?

+0

您是指纸/木质效果图像而不是浅蓝色圆形矩形?你可以附上你的9补丁吗? – nmw 2013-03-07 17:36:01

回答

0

拐角的背景是白色的,alpha值不是0.背景必须是完全透明的。