我想为浏览器创建自定义tabhost,如标签.我很困惑如何将它应用于像Chrome浏览器选项卡中的布局,就像在图像中一样.
这是我尝试过的.我想知道如何用图像中的斜率创建边缘.
tab_selected.xml
android:topLeftRadius="5dp"
android:topRightRadius="5dp" />
android:bottom="2dp"
android:left="1dp"
android:right="1dp"
android:top="1dp">
android:topLeftRadius="10dp"
android:topRightRadius="10dp" />
tab_unselected.xml
android:topLeftRadius="10dp"
android:topRightRadius="10dp" />
我希望可以使用XML中的Pathshape来完成.任何人都可以指出我的参考?无法在PathShape上找到引用