0

上と下に異なる色で境界線を表示したい、上は #e6e6e6 と下は #f7f7f7 で、上の境界線を作成したものですが、下に境界線を表示しようとすると、下の境界線が表示され、上の境界線が欠落しています。これは私のxmlです:

    <?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
       <item> 
    <shape android:shape="rectangle">
      <solid android:color="#CECECE" /> 
      <corners
          android:topLeftRadius="5dp"
          android:topRightRadius="5dp"
          android:bottomLeftRadius="5dp"
          android:bottomRightRadius="5dp"
          />
    </shape>
  </item>  
         <item > 
    <shape android:shape="rectangle">
      <solid android:color="#C7C7C7" /> 
      <corners
          android:topLeftRadius="5dp"
          android:topRightRadius="5dp"
          android:bottomLeftRadius="5dp"
          android:bottomRightRadius="5dp"
          />
    </shape>
  </item> 

   <item android:top="1dp" android:bottom="1dp">  
    <shape android:shape="rectangle">
      <solid android:color="#e6e6e6" /> 
      <corners
          android:topLeftRadius="5dp"
          android:topRightRadius="5dp"
          android:bottomLeftRadius="5dp"
          android:bottomRightRadius="5dp"
          />
    </shape>
  </item>   


</layer-list>

私の問題を解決するのを手伝ってくれる人はいますか?どうもありがとうございます。

4

0 に答える 0