Skip to content

Commit

Permalink
Change start animation
Browse files Browse the repository at this point in the history
  • Loading branch information
zprodev committed Feb 25, 2019
1 parent 3944385 commit b0ba980
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
1 change: 1 addition & 0 deletions QR/app/src/main/java/app/zpro/qr/MainActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ protected CustomTabsIntent getCustomTabsIntent(CustomTabsSession session) {
int primaryDarkColor = res.getColor(R.color.colorPrimaryDark);
CustomTabsIntent.Builder builder = new CustomTabsIntent.Builder(session);
builder.setToolbarColor(primaryDarkColor);
builder.setStartAnimations(this, R.anim.twa_enter, R.anim.twa_wait );
return builder.build();
}
}
8 changes: 8 additions & 0 deletions QR/app/src/main/res/anim/twa_enter.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android"
android:interpolator="@android:anim/decelerate_interpolator" >
<alpha
android:fromAlpha="0.0"
android:toAlpha="1.0"
android:duration="1000" />
</set>
8 changes: 8 additions & 0 deletions QR/app/src/main/res/anim/twa_wait.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android"
android:interpolator="@android:anim/decelerate_interpolator" >
<alpha
android:fromAlpha="1.0"
android:toAlpha="1.0"
android:duration="1000" />
</set>

0 comments on commit b0ba980

Please sign in to comment.