我需要创建一个文本视图,只有 TopLeft和TopRight圆锥体,没有其他人, 我已经为4个圆角写了一个XML,但它不支持两个圆角。 这里是XML如何在android中只创建两个边缘圆角的textView?
<?xml version="1.0" encoding="utf-8"?>
<!-- res/drawable/rounded_edittext.xml -->
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle" android:padding="10dp">
<solid android:color="#FFFFFF"/>
<corners
android:bottomRightRadius="5dp"
android:bottomLeftRadius="5dp"
android:topLeftRadius="5dp"
android:topRightRadius="5dp"/>
</shape>
任何建议或帮助..?
这可能有助于http://www.gadgetsaint.com/tips/rounded-corners-views-layouts-android/#.WPz2QVN97BI – ASP