Some improvements with show account activity

This commit is contained in:
tom79 2017-10-15 15:39:43 +02:00
parent f43a7ac0ac
commit 2cba689990
1 changed files with 3 additions and 3 deletions

View File

@ -456,15 +456,15 @@ public class ShowAccountActivity extends AppCompatActivity implements OnPostActi
int percentage = (Math.abs(verticalOffset)) * 100 / maxScrollSize;
if (percentage >= 20 && avatarShown) {
if (percentage >= 40 && avatarShown) {
avatarShown = false;
account_pp.animate()
.scaleY(0).scaleX(0)
.setDuration(200)
.setDuration(400)
.start();
}
if (percentage <= 20 && !avatarShown) {
if (percentage <= 40 && !avatarShown) {
avatarShown = true;
account_pp.animate()
.scaleY(1).scaleX(1)