android - TextViews overlapping using a RelativeLayout -


I know I can use LinearLayout to do this, but I RelativeLayout because I need as a "status" bar for a RelativeLayout I, anchored to the bottom of the overall layout, and I want the title and text The top position bar, the only way to combine a relative layout at the top was that I could work the status bar. The only problem is that title and text TextViews overlap with each other and I need a headline immediately:

  ; TextView Android: id = "@ + id / title" Android: layout_width = "fill_parent" & Lt; TextView Android: Android: Layout_width = "Fill_parent" Android: Layout_height = "Wrap_content" Android: layout_below = "@ id / title" Android: Leaut_alginpecrtop = "true" / & gt; & Lt; / RelativeLayout & gt; & Lt; / FrameLayout & gt;    

You can use LinearLayout as children of RelativeLayout.

  & lt; LinearLayout Android: Layout_width = "Fill_parent" Android: Layout_height = "Wrap_content" android: orientation = "vertical" android: layout_alignParentTop = "true" & gt; & Lt; TextView Android: id = "@ + id / title" Android: layout_width = "fill_parent" android: layout_height = "wrap_content" /> & Lt; TextView Android: id = "@ + id / text" Android: layout_width = "fill_parent" android: layout_height = "wrap_content" /> & Lt; / LinearLayout & gt;    

Comments