I have a simple LinearLayout. When I add the android:background to the LinearLayout, the TextView is no longer visible.
What am I not understanding?
<LinearLayout
android:id="@+id/LinearLayout01"
android:layout_width="fill_parent"
android:layout_height="53px"
android:background="@drawable/glossy_black_top_bar"
>
<TextView android:text="This is the Title"
android:id="@+id/TextView01"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="center_vertical"
android:textColor="#FFFFFF">
</TextView>
</LinearLayout>
It seems that LinearLayouts with backgrounds expand wierdly. I just used a Framelayout to create a header. Here’s the XML if anyone wants I. It takes an ImageView that points to a NinePatched background and stretches it.