Skip to content

Commit e6eb666

Browse files
author
csnowstack
committed
bgContent下半部分的文字不缩放
1 parent aeb8705 commit e6eb666

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

.idea/misc.xml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/vcs.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/src/main/java/cq/behaviordemo/BGContentBehavior.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,10 @@ public boolean onDependentViewChanged(CoordinatorLayout parent, View child, View
7777
float fraction = Math.abs(dependency.getTranslationY())/ mTabMaxTranslation;
7878
child.setScaleX(1 + (fraction*mFraction));
7979

80-
child.setTranslationY(-fraction*mDistance);
80+
//下面的文字不缩放..
81+
mStatistics.setScaleX(1/(1 + (fraction*mFraction)));
8182

83+
child.setTranslationY(-fraction*mDistance);
8284
if(fraction<0.7f){
8385
mStatistics.setAlpha(1-fraction/0.7f);
8486
}else {

0 commit comments

Comments
 (0)