如何将标题添加到线性布局

Nis*_*ant 5 android border

我必须创建如下的GUI.我使用了LinearLayout并在其周围创建了边框.我必须在边框之间插入标题文本.知道如何做到这一点.在此输入图像描述

ePe*_*ace 3

<RelativeLayout>)
    <LinearLayout with border>
    <TextView with white background>
</RelativeLayout>
Run Code Online (Sandbox Code Playgroud)

TextView 应出现在线性布局之上,覆盖其白色背景的边框。您可以使用边距来定位它。