【问题标题】:Invisible corners with shape - Android?形状的隐形角落 - Android?
【发布时间】:2017-07-20 15:33:32
【问题描述】:

我有下面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>

我有以下几点:

但我还看到了角落。我怎样才能使它们隐形?

【问题讨论】:

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


    【解决方案1】:

    试试这个:

    <?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>
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-06-23
      • 2015-06-12
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多