Last active
November 6, 2018 16:14
-
-
Save IslamBesto/907cd53605b1c4b25957ea6532c2facb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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