Circle-Progress-View icon indicating copy to clipboard operation
Circle-Progress-View copied to clipboard

Can i add my own text inside circle view?

Open Kunal8337 opened this issue 8 years ago • 4 comments

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

Kunal8337 avatar Mar 07 '17 09:03 Kunal8337

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.

jakob-grabner avatar Mar 08 '17 12:03 jakob-grabner

OK thanks for the information. But can I add button or any other view inside circle view?

As per requirement, I want to add start/stop button inside the circle view to start and stop the progress. Can I do something like this?

Thanks in advance.

On 08-Mar-2017 6:09 PM, "Jakob Grabner" [email protected] wrote:

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.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/jakob-grabner/Circle-Progress-View/issues/73#issuecomment-285030247, or mute the thread https://github.com/notifications/unsubscribe-auth/AYv9ZKC93AHL-q1tXAxBh1m4GXJB6plKks5rjqF6gaJpZM4MVN2G .

Kunal8337 avatar Mar 08 '17 12:03 Kunal8337

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.

jakob-grabner avatar Mar 09 '17 07:03 jakob-grabner

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.

chnouman avatar Jul 31 '17 11:07 chnouman