Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I need this example #813

Open
ManoloLopera opened this issue Aug 11, 2022 · 2 comments
Open

I need this example #813

ManoloLopera opened this issue Aug 11, 2022 · 2 comments

Comments

@ManoloLopera
Copy link

ManoloLopera commented Aug 11, 2022

Hello,

I try design this example in Android but I dont find that.

https://github.com/huanghaibin-dev/CalendarView/blob/master/app/src/main/assets/simple.jpg

Anyone can help me?

@huanghaibin-dev
Copy link
Owner

add this code in onDrawText func
`
float baselineY = mTextBaseLine + y;
int cx = x + mItemWidth / 2;
int cy = y + mItemHeight / 2;
int size = (int) (Math.min(mItemWidth, mItemHeight) / 10 * 8.5 / 2);
canvas.drawRoundRect(cx - size, cy - size, cx + size, cy + size, mRadius, mRadius, isSelected ? mSelectedPaint : mCalendarPaint);

`

@geeklx
Copy link

geeklx commented Nov 3, 2023

不行啊 还是圆形 怎么设置圆角 求助

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants