1
ドットを丸くして作成したいImageView
私はペイントを使うべきだと思うが、それはうまくいかない。あなたのImageViewのにこのような背景のリソースを設定することができ丸い点状のImageViewを作成するには?
private Paint dashPaint = new Paint(Paint.ANTI_ALIAS_FLAG);
{
dashPaint.setStyle(Paint.Style.STROKE);
dashPaint.setColor(Color.WHITE);
dashPaint.setAlpha(120);
dashPaint.setPathEffect(new DashPathEffect(new float[]{
5, 5
}, 0.0f));
dashPaint.setStrokeWidth(Easify.dp(1.2f));
}
を拡張し、あなたがサンプルを表示することができますか? – fightingCoder