Found a quirk and wondering if I'm missing something. I have a View inside
of a RelativeLayout which has its background color set at runtime. I'm
finding in this case I need to set an explicit height otherwise the view
will not show. i.e. if I set the layout_height="fill_parent", it's not
visible.

<RelativeLayout
   android:id="@+id/detail_header"
   android:layout_width="fill_parent"
   android:layout_height="fill_parent"
   android:orientation="vertical"
   android:background="@color/detail_task_header_bg">

      <View
         android:id="@+id/detail_account_color"
         android:layout_width="5dip"
         android:layout_height="135dip"
         android:layout_alignTop="@id/detail_header"
         android:layout_alignLeft="@id/detail_header" />

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to