I am reviewing the ProgressBar.java sourcecode from Android’s SDK. On line 191 of android.widget.ProgressBar it states:
mMinHeight = a.getDimensionPixelSize(R.styleable.ProgressBar_minHeight, mMinHeight));
Why is it using mMinHeight in the parameter list at the same time as it is initializing it?? Can someone shed light on this? The full sourcecode can be located here at grepcode.
See on line 171 where it calls
initProgressBar? That method initializes mMinHeight to the value of 24. Then the call togetDimensionPixelSizeuses that as the default value.