2013-03-07 2 views
0

나는 안드로이드 9patch 이미지를 사용하여 통지 보여 나는 흰색과 투명한 배경을 사용하려고안드로이드 9patch 불투명 코너

enter image description here

을,하지만 여전히 불투명합니다.

다음
<?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 이미지 (그것이 내 아니에요, 그래서 워터 마크의 종류를 추가했습니다)입니다 :

그리고 네, 파일의 이름은 여기 .9.png

로 통지의 레이아웃되어 종료

enter image description here

내가 뭘 잘못하고 있니?

+0

옅은 파란색의 둥근 직사각형이 아닌 종이/목재 효과 이미지를 말하고 있습니까? 9 패치를 첨부 할 수 있습니까? – nmw

답변

0

모서리의 배경이 흰색이고 알파 값이 0이 아닙니다. 배경이 완전히 투명해야합니다.