Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
この関数を見つけました。Drawableにストロークを追加するにはどうすればよいですか? setStroke(...)のようなものはありません
目的の色/ストローク幅/(スタイル=ストロークも設定)でペイント変数を作成してから、onDrawメソッドで使用してみてください。
onDraw(Shape shape, Canvas canvas, Paint paint)
このように、描画時にストロークが追加されます。Drawableには添付されません。