隐形角落与形状 - Android?

时间:2017-03-01 10:40:12

标签: android-drawable android-shape android-shapedrawable android-graphics

我吼叫shape

<?xml version="1.0" encoding="utf-8"?><!--  res/drawable/rounded_edittext.xml -->
<shape xmlns:android="http://schemas.android.com/apk/res/android"
    android:padding="10dp"
    android:shape="rectangle">
    <solid android:color="#434A54" />

    <corners
        android:bottomLeftRadius="15dp"
        android:bottomRightRadius="15dp" />
</shape>

我吼道:

enter image description here

但是我看到了角落。我怎么能隐形呢?

1 个答案:

答案 0 :(得分:0)

试试这个:

<?xml version="1.0" encoding="utf-8"?><!--  res/drawable/rounded_edittext.xml -->
<shape xmlns:android="http://schemas.android.com/apk/res/android"
    android:padding="10dp"
    android:shape="rectangle">
    <solid android:color="#434A54" />
    <stroke android:color="#00000000" android:width="1dp" />
    <corners
        android:bottomLeftRadius="15dp"
        android:bottomRightRadius="15dp" />
</shape>