I am using Floating Action Button to show menu. Is it possible to fill the entire circumference including the area of the menu and fab combined with some background color. I want the entire section highlighted to be a some specific color when menu expands. I am able to achieve partial result. In the below photo, how can i i make that yellow portion to be an arc instead of a rectangle. I have tried using drawArc on a canvas to my Framelayout, but it is still giving me a rectangular shaped yellow.
@Override
protected void onDraw(Canvas canvas) {
super.onDraw(canvas);
if(getOpened()) {
canvas.drawColor(Color.YELLOW);
Paint p = new Paint();
// smooths
p.setAntiAlias(true);
p.setColor(Color.YELLOW);
p.setStyle(Paint.Style.FILL);
p.setStrokeWidth(5);
// opacity
//p.setAlpha(0x80); //
RectF rectF = new RectF(100, 100, 100, 100);
canvas.drawOval(rectF, p);
p.setColor(Color.YELLOW);
canvas.drawArc(rectF, 180, 270, false, p);
}
}