Skip to content
This repository has been archived by the owner on Mar 27, 2022. It is now read-only.

Commit

Permalink
Gradle update and scaling but no animation issue fixed.
Browse files Browse the repository at this point in the history
  • Loading branch information
ceryle committed Mar 3, 2017
1 parent ada2482 commit 9d4f654
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 12 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ buildscript {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.2.3'
classpath 'com.android.tools.build:gradle:2.3.0'
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.5'

// NOTE: Do not place your application dependencies here; they belong
Expand Down
4 changes: 2 additions & 2 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Fri Aug 19 17:41:56 EEST 2016
#Fri Mar 03 09:20:49 EET 2017
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-2.14.1-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-3.3-all.zip
Original file line number Diff line number Diff line change
Expand Up @@ -156,13 +156,11 @@ private void setBottomLineAttrs() {
}

private void setSelectorAttrs() {
View selectorView = selectorContainer;

FrameLayout.LayoutParams selectorParams = (FrameLayout.LayoutParams) selectorView.getLayoutParams();
FrameLayout.LayoutParams selectorParams = (FrameLayout.LayoutParams) selectorContainer.getLayoutParams();
FrameLayout.LayoutParams bottomLineParams = (FrameLayout.LayoutParams) v_bottomLine.getLayoutParams();

if (selectorBringToFront)
selectorView.bringToFront();
selectorContainer.bringToFront();

selectorParams.height = selectorSize;

Expand Down Expand Up @@ -237,9 +235,9 @@ private void setBorderAttrs() {

private float radius, animateImagesScale, animateTextsScale;

private boolean bottomLineBringToFront, selectorBringToFront, selectorAboveOfBottomLine, selectorTop, selectorBottom,
hasPadding, hasPaddingLeft, hasPaddingRight, hasPaddingTop, hasPaddingBottom, hasDividerBackgroundColor, clickable,
enabled, enableDeselection, hasEnabled, hasClickable, hasBorder, hasAnimateImages, hasAnimateTexts, hasAnimation;
private boolean bottomLineBringToFront, selectorBringToFront, selectorAboveOfBottomLine, selectorTop, selectorBottom, hasPadding,
hasPaddingLeft, hasPaddingRight, hasPaddingTop, hasPaddingBottom, hasDividerBackgroundColor, clickable, enabled,
enableDeselection, hasEnabled, hasClickable, hasBorder, hasAnimateImages, hasAnimateTexts, hasAnimation;

private void getAttributes(AttributeSet attrs) {
TypedArray ta = getContext().obtainStyledAttributes(attrs, R.styleable.RadioRealButtonGroup);
Expand Down Expand Up @@ -359,8 +357,11 @@ else if (checkedButtonId == NO_ID && button.isChecked())

if (lastPosition == position) {
button.setChecked(true);
button.bounceDrawable(animateImagesScale + 1);
button.bounceText(animateTextsScale + 1);

if (hasAnimateImages)
button.bounceDrawable(animateImagesScale + 1);
if (hasAnimateTexts)
button.bounceText(animateTextsScale + 1);
} else
button.setChecked(false);

Expand Down

0 comments on commit 9d4f654

Please sign in to comment.