Closed golharam closed 10 years ago
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.
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.