|
68 | 68 | * Created by GIGAMOLE on 24.03.2016. |
69 | 69 | */ |
70 | 70 | @SuppressWarnings({"unused", "DefaultFileTemplate"}) |
71 | | -public class NavigationTabBar extends View implements |
72 | | - ViewPager.OnPageChangeListener { |
| 71 | +public class NavigationTabBar extends View implements ViewPager.OnPageChangeListener { |
73 | 72 |
|
74 | 73 | // NTB constants |
75 | 74 | private final static int FLAGS = |
@@ -1308,9 +1307,16 @@ else if (i == mIndex) |
1308 | 1307 |
|
1309 | 1308 | // Method to transform current fraction of NTB and position |
1310 | 1309 | private void updateCurrentModel( |
1311 | | - final Model model, final float leftOffset, final float topOffset, final float titleTranslate, |
1312 | | - final float interpolation, final float matrixCenterX, final float matrixCenterY, |
1313 | | - final float matrixScale, final float textScale, final int textAlpha |
| 1310 | + final Model model, |
| 1311 | + final float leftOffset, |
| 1312 | + final float topOffset, |
| 1313 | + final float titleTranslate, |
| 1314 | + final float interpolation, |
| 1315 | + final float matrixCenterX, |
| 1316 | + final float matrixCenterY, |
| 1317 | + final float matrixScale, |
| 1318 | + final float textScale, |
| 1319 | + final int textAlpha |
1314 | 1320 | ) { |
1315 | 1321 | if (mIsTitled && mTitleMode == TitleMode.ACTIVE) |
1316 | 1322 | model.mIconMatrix.setTranslate( |
@@ -1355,9 +1361,16 @@ private void updateCurrentModel( |
1355 | 1361 |
|
1356 | 1362 | // Method to transform last fraction of NTB and position |
1357 | 1363 | private void updateLastModel( |
1358 | | - final Model model, final float leftOffset, final float topOffset, final float titleTranslate, |
1359 | | - final float lastInterpolation, final float matrixCenterX, final float matrixCenterY, |
1360 | | - final float matrixLastScale, final float textLastScale, final int textLastAlpha |
| 1364 | + final Model model, |
| 1365 | + final float leftOffset, |
| 1366 | + final float topOffset, |
| 1367 | + final float titleTranslate, |
| 1368 | + final float lastInterpolation, |
| 1369 | + final float matrixCenterX, |
| 1370 | + final float matrixCenterY, |
| 1371 | + final float matrixLastScale, |
| 1372 | + final float textLastScale, |
| 1373 | + final int textLastAlpha |
1361 | 1374 | ) { |
1362 | 1375 | if (mIsTitled && mTitleMode == TitleMode.ACTIVE) |
1363 | 1376 | model.mIconMatrix.setTranslate( |
@@ -1402,8 +1415,13 @@ private void updateLastModel( |
1402 | 1415 |
|
1403 | 1416 | // Method to transform others fraction of NTB and position |
1404 | 1417 | private void updateInactiveModel( |
1405 | | - final Model model, final float leftOffset, final float topOffset, final float textScale, |
1406 | | - final float matrixScale, final float matrixCenterX, final float matrixCenterY |
| 1418 | + final Model model, |
| 1419 | + final float leftOffset, |
| 1420 | + final float topOffset, |
| 1421 | + final float textScale, |
| 1422 | + final float matrixScale, |
| 1423 | + final float matrixCenterX, |
| 1424 | + final float matrixCenterY |
1407 | 1425 | ) { |
1408 | 1426 | if (mIsTitled && mTitleMode == TitleMode.ACTIVE) |
1409 | 1427 | model.mIconMatrix.setTranslate(leftOffset, topOffset); |
|
0 commit comments