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

Can i add my own text inside circle view? #73

Open
Kunal8337 opened this issue Mar 7, 2017 · 4 comments
Open

Can i add my own text inside circle view? #73

Kunal8337 opened this issue Mar 7, 2017 · 4 comments

Comments

@Kunal8337
Copy link

YOU ARE THE MAN!!! Thanks for great library. i just want to replace my own textview with UNIT value inside Circle view. can i do this? can i add my custom views in Circle View?

please reply ASAP.

Any help will be appreciated.

Thanks.

  • Kunal
@jakob-grabner
Copy link
Owner

You can show any text you want by setting:
circleView.setTextMode(TextMode.TEXT); // Set text mode to text to show text circleView.setText("Text"); //shows the given text in the circle view

This should work in combination with also showing the unit.

@Kunal8337
Copy link
Author

Kunal8337 commented Mar 8, 2017 via email

@jakob-grabner
Copy link
Owner

Of course you can, not directly with my lib, but just put the circleview in a viewgroup (like framelayout) and put a button on top of it.

@chnouman
Copy link

hy @jakob-grabner please help me i'm unable to resize the text of circleView
circleProgressView1.setTextMode(TextMode.TEXT);
// Set text mode to text to show text
circleProgressView1.setTextSize(18);
circleProgressView1.setText("30/40");
i also have tried to change the text size using xml please help me out.

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