アンドロイドでは、フォルダ内のshape
ファイルを定義したい:以下のように:drawable
myShape.xml
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<solid android:color="@color/white"/>
<corners android:radius="@dimen/corner"/>
<stroke
android:width="5dp"
android:color="@color/boder_endcall_color"/>
</shape>
でグラデーションの境界線を作成したいのです<stroke />
が、実際には方法がわかりません。だから誰もが色で作成shape
する例を与えることができますか?ありがとう!gradient
stroke
編集:(赤)から(赤みがかった)gradient
の色が欲しいです。#F85C5C
#F68282