【发布时间】:2017-12-23 10:55:39
【问题描述】:
我需要制作一个带有标题的 LinearLayout。有点像这样
https://imgur.com/Kwa7a47
有谁知道怎么做这样的吗?
编辑: 这是我设置为布局背景的边框可绘制对象
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<corners
android:topRightRadius="30dp"
android:bottomLeftRadius="30dp" />
<stroke
android:width="2dp"
android:color="#000000"/>
</shape>
【问题讨论】:
-
您的图片无法加载,但我在下面发布了答案。希望对你有用。
-
对此很抱歉,但基本上我正在制作一个带有 TextView 的 LinearLayout。 TextView 的位置在边框之上。这是一个新链接ibb.co/jCDC26
-
我更改了一些可能有用的东西。您必须创建一个可绘制的 xml 文件并设置为 Linearlayout 的背景。
标签: java android android-linearlayout