Created accounts fragment in animation

This commit is contained in:
Severiano Jaramillo 2017-12-22 21:30:20 -06:00
parent 57a95e8fd2
commit 5ee1782454
3 changed files with 20 additions and 10 deletions

View file

@ -42,16 +42,6 @@ public class AccountsFragment extends DialogFragment {
super.onCreate(savedInstanceState); super.onCreate(savedInstanceState);
} }
/*@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
// Inflate the layout for this fragment
View view = inflater.inflate(R.layout.fragment_accounts, container, false);
ButterKnife.bind(this, view);
return view;
}*/
@NonNull @NonNull
@Override @Override
public Dialog onCreateDialog(Bundle savedInstanceState) { public Dialog onCreateDialog(Bundle savedInstanceState) {

View file

@ -0,0 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android"
android:shareInterpolator="false">
<scale
android:interpolator="@android:anim/bounce_interpolator"
android:fromXScale="1.0"
android:toXScale="1.0"
android:fromYScale="0.0"
android:toYScale="1.0"
android:fillAfter="true"
android:duration="400"
android:pivotX = "0%"
android:pivotY = "0%"
/>
</set>

View file

@ -77,5 +77,10 @@
<style name="AccountsTheme" parent="Theme.AppCompat.DayNight.Dialog"> <style name="AccountsTheme" parent="Theme.AppCompat.DayNight.Dialog">
<item name="android:windowBackground">@color/transparent</item> <item name="android:windowBackground">@color/transparent</item>
<item name="android:windowAnimationStyle">@style/AccountsAnimation.Window</item>
</style>
<style name="AccountsAnimation.Window" parent="@android:style/Animation.Activity">
<item name="android:windowEnterAnimation">@anim/accounts_in</item>
</style> </style>
</resources> </resources>