当我为按钮设置背景时文本消失了

Text gone when I set background for button

<Button
                        android:layout_width="0px"
                        android:layout_height="fill_parent"
                        android:layout_weight="2"
                        android:background="@drawable/banner_btn_bg"
                        android:text="ABCXYZDEF"
                        android:gravity="center"
                        android:textColor="@android:color/white"
                        android:textSize="20sp" />

我想为我的按钮设置背景,但设置后文字会消失。我想知道为什么当我将背景设置为任何颜色时我的文字会出现,但当我设置图像时它会消失?顺便说一句,图像是灰色的而不是白色的 text.How 我可以解决这个问题吗?

因为文字是画在图片上的,所以你看不到..

尝试将文本颜色更改为 REDBLUE 原色 ,因为您的背景是灰色的