Todd-Davies / ProgressWheel

A progress wheel for android, intended for use instead of the standard progress bar.
MIT License
2.64k stars 710 forks source link

Setting bounds with this.getLayoutParams().width error #22

Closed kubaspatny closed 9 years ago

kubaspatny commented 10 years ago

When setting bounds this.getLayoutParams().width/height is used, however when user specifies the width/height as WRAP_CONTENT or MATCH_PARENT it will return a constant -1 for MATCH_PARENT or -2 for WRAP_CONTENT, which just kills it. Using getWidth() seems to work, but I haven't fully tested it yet!