我已經看到了它在iOS應用:如何塑造這個textview左邊的邊框?
,我想實現我的Android應用這樣一個TextView。所以我做了這個繪製:
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<solid android:color="#fff"/>
<stroke android:width="1dp"
android:color="@color/colorPrimary" />
<padding android:left="5dp"
android:top="5dp"
android:right="5dp"
android:bottom="5dp"/>
<corners android:bottomRightRadius="7dp"
android:bottomLeftRadius="7dp"
android:topLeftRadius="7dp"
android:topRightRadius="7dp"/>
</shape>
,但我不知道如何使左邊的藍色。 任何人都可以幫助我?
感謝
圖像是不可見的。 –
@SuryaPrakashKushawah現在試試,我會加註它 – ste9206