I have to create A GUI like below. I have used LinearLayout and created the border around it.I have to insert the header text between the border. Any idea how to do this.
<RelativeLayout>)
<LinearLayout with border>
<TextView with white background>
</RelativeLayout>
The TextView should appear above the linearlayout covering the border with his white background. You could position it using margins.
use relative layout as parent and put all your linearlayout code under relative layout. Then add textview in relative layout and mention that textview is on top and give marign.
<RelativeLayout>
<TextView android:layout_alignParentTop="true"
android:layout_margin="20dip/>
<LinearLayout>
// here is your linear layout
</LinearLayout>
</RelativeLayout>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With