use the relative layout as the parent and put all your linearlayout code under the relative layout. Then add a textview to the relative layout and note that the 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>
source
share