Respect wrap_content and match_parent settings.

getLayoutParams().width() and getLayoutParams.height() return -1 and -2 for match_parent and wrap_content, which are constants.  Instead use getWidth() and getHeight().  onMeasure changes are to keep the progress wheel square.
Merge pull request #31 from golharam/master

Respect wrap_content and match_parent settings.