有時我們需要只有底部有邊框或是只有某邊沒有邊框

這是就可以用類似下列程式碼,此範例是只要底部有邊框,其他三邊不要:

 

<?xml version="1.0" encoding="utf-8"?><layer-listxmlns:android="http://schemas.android.com/apk/res/android"><!-- This is the line --><itemandroid:top="-1dp"android:right="-1dp"android:left="-1dp"><shape><solidandroid:color="@android:color/transparent"/><strokeandroid:width="1dp"android:color="#ffffff"/></shape></item></layer-list>
arrow
arrow
    全站熱搜

    pcwiki 發表在 痞客邦 留言(0) 人氣()