我想要得到类似于您可以在下面看到的形状。我缺少的是标题颜色(匿名文本背后的颜色)。我已经转载了什么,我想通过简单的移动在第二TextView的鼠标这是现在突出,使这种效果:)如何让这样的形状?
当前代码:
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<stroke android:width="2dp" android:color="#000000" />
<gradient android:startColor="#898989" android:endColor="#B5B5B5" android:angle="270"/>
<corners android:bottomRightRadius="7dp" android:bottomLeftRadius="7dp"
android:topLeftRadius="7dp" android:topRightRadius="7dp"/>
</shape>
谢谢,这看起来甚至更好的解决方案。 –
......但这并不完全正常 - 现在我也在整个标题中敲击!是否可以将描边仅设置为左边界,顶部边界和右边界? –
没问题,我做了一个编辑。 (从第二个形状中删除笔画,并在笔画的大小中添加项目偏移量) – eladr