Skip to content

Instantly share code, notes, and snippets.

@IslamBesto
Last active November 6, 2018 16:14
Show Gist options
  • Save IslamBesto/907cd53605b1c4b25957ea6532c2facb to your computer and use it in GitHub Desktop.
Save IslamBesto/907cd53605b1c4b25957ea6532c2facb to your computer and use it in GitHub Desktop.
public class CurvedBottomNavigationView extends BottomNavigationView {
public CurvedBottomNavigationView(Context context) {
super(context);
init();
}
public CurvedBottomNavigationView(Context context, AttributeSet attrs) {
super(context, attrs);
init();
}
public CurvedBottomNavigationView(Context context, AttributeSet attrs, int defStyleAttr) {
super(context, attrs, defStyleAttr);
init();
}
private void init() {
mPath = new Path();
mPaint = new Paint();
mPaint.setStyle(Paint.Style.FILL_AND_STROKE);
mPaint.setColor(Color.WHITE);
setBackgroundColor(Color.TRANSPARENT);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment