I would like to create the same border of this linearlayout as example :

In this example, we can see that the border is not the same all around the linearLayout. How can i create this using an xml drawable file ?
For now, i have only able to create a simple border all around the linearlayout like this :
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle">
<corners
android:radius="1dp"
android:topRightRadius="0dp"
android:bottomRightRadius="0dp"
android:bottomLeftRadius="0dp" />
<stroke
android:width="1dp"
android:color="#E3E3E1" />
<solid android:color="@color/blanc" />
</shape>
本文介绍如何使用XML创建带有特定边框样式的Linearlayout。包括使用shape元素、layer-list及9-patch图形来实现不同边框效果的方法。




3711

被折叠的 条评论
为什么被折叠?



