@@ -156,13 +156,11 @@ private void setBottomLineAttrs() {
156
156
}
157
157
158
158
private void setSelectorAttrs () {
159
- View selectorView = selectorContainer ;
160
-
161
- FrameLayout .LayoutParams selectorParams = (FrameLayout .LayoutParams ) selectorView .getLayoutParams ();
159
+ FrameLayout .LayoutParams selectorParams = (FrameLayout .LayoutParams ) selectorContainer .getLayoutParams ();
162
160
FrameLayout .LayoutParams bottomLineParams = (FrameLayout .LayoutParams ) v_bottomLine .getLayoutParams ();
163
161
164
162
if (selectorBringToFront )
165
- selectorView .bringToFront ();
163
+ selectorContainer .bringToFront ();
166
164
167
165
selectorParams .height = selectorSize ;
168
166
@@ -237,9 +235,9 @@ private void setBorderAttrs() {
237
235
238
236
private float radius , animateImagesScale , animateTextsScale ;
239
237
240
- private boolean bottomLineBringToFront , selectorBringToFront , selectorAboveOfBottomLine , selectorTop , selectorBottom ,
241
- hasPadding , hasPaddingLeft , hasPaddingRight , hasPaddingTop , hasPaddingBottom , hasDividerBackgroundColor , clickable ,
242
- enabled , enableDeselection , hasEnabled , hasClickable , hasBorder , hasAnimateImages , hasAnimateTexts , hasAnimation ;
238
+ private boolean bottomLineBringToFront , selectorBringToFront , selectorAboveOfBottomLine , selectorTop , selectorBottom , hasPadding ,
239
+ hasPaddingLeft , hasPaddingRight , hasPaddingTop , hasPaddingBottom , hasDividerBackgroundColor , clickable , enabled ,
240
+ enableDeselection , hasEnabled , hasClickable , hasBorder , hasAnimateImages , hasAnimateTexts , hasAnimation ;
243
241
244
242
private void getAttributes (AttributeSet attrs ) {
245
243
TypedArray ta = getContext ().obtainStyledAttributes (attrs , R .styleable .RadioRealButtonGroup );
@@ -359,8 +357,11 @@ else if (checkedButtonId == NO_ID && button.isChecked())
359
357
360
358
if (lastPosition == position ) {
361
359
button .setChecked (true );
362
- button .bounceDrawable (animateImagesScale + 1 );
363
- button .bounceText (animateTextsScale + 1 );
360
+
361
+ if (hasAnimateImages )
362
+ button .bounceDrawable (animateImagesScale + 1 );
363
+ if (hasAnimateTexts )
364
+ button .bounceText (animateTextsScale + 1 );
364
365
} else
365
366
button .setChecked (false );
366
367
0 commit comments