ColorArcProgressBar icon indicating copy to clipboard operation
ColorArcProgressBar copied to clipboard

How to change width and height from XML

Open eshitaBhadoria opened this issue 9 years ago • 4 comments

I was trying to have layout like this. For this i need to change the width according to the parent Layout. Even if i m trying to give width and height explicitly then also it is not affecting the arc. Please Help.. Thanks ! speedometer

eshitaBhadoria avatar Oct 19 '16 06:10 eshitaBhadoria

The with and height is immobilization,you should change the code

qq199208 avatar Nov 04 '16 13:11 qq199208

To Change width and height by xml not working, try to change the diameter by code.

juanlabrador avatar Jan 04 '17 12:01 juanlabrador

@juanlabrador How do you change the diameter by code?

Edit 1: Figured it out. Edit 2: setDiameter is changing the size but only a quarter is seen. How exactly do you use setDiameter?

BuzzHari avatar Jul 06 '18 12:07 BuzzHari

In initView() change this line -> diameter = 3 * getScreenWidth() / 5; to -> diameter = "as per your need (ex. 50, 100, 150, 200)".

fiftyonemoon avatar May 07 '21 11:05 fiftyonemoon