У меня есть макет виджета следующим образом:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/widget"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="@drawable/widget_bg">
<TextView android:layout_height="fill_parent"
android:layout_width="fill_parent"
android:id="@+id/widgetText"
android:text="@string/sWaitingForLocation"
android:layout_marginLeft="4dip"
android:layout_marginRight="4dip"
android:layout_marginTop="4dip"
android:layout_marginBottom="4dip"
android:textStyle="bold"
android:gravity="center">
</TextView>
</LinearLayout>
Но текстовый дест появляется, как будто он скрыт за фоном.
Мой фон - 9patch png.
Это работает, если я использую Android: background = "Android: цвет / черный" ...
Это может быть мой PNG? (создано с помощью Android-инструмента draw9patch)