Sliding transition between listing panoramio locations and enlarged

dialog.
master
Tomasz Półgrabia 2016-08-28 14:42:36 +02:00
parent ca17290ec2
commit e59fc41b8e
6 changed files with 37 additions and 1 deletions

View File

@ -66,6 +66,10 @@ public class MainActivity extends ActionBarActivity {
arguments.putSerializable(PanoramioShowerFragment.PANORAMIO_PHOTO_ARG_KEY, photoInfo); arguments.putSerializable(PanoramioShowerFragment.PANORAMIO_PHOTO_ARG_KEY, photoInfo);
panoramioShower.setArguments(arguments); panoramioShower.setArguments(arguments);
ctx.setCustomAnimations(R.anim.slide_in_down,
R.anim.slide_out_down,
R.anim.slide_in_up,
R.anim.slide_out_up);
ctx.replace(R.id.fragments, panoramioShower); ctx.replace(R.id.fragments, panoramioShower);
ctx.addToBackStack(PHOTO_BACKSTACK); ctx.addToBackStack(PHOTO_BACKSTACK);

View File

@ -50,7 +50,7 @@ public class HomeFragment extends Fragment implements LocationListener {
private String locationProvider; private String locationProvider;
private boolean locationServicesActivated = false; private boolean locationServicesActivated = false;
private AQuery aq; private AQuery aq;
private View inflatedView; private View inflatedView;
private TextView pageSizeWidget; private TextView pageSizeWidget;
private TextView pageIdWidget; private TextView pageIdWidget;

View File

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android">
<translate
android:fromYDelta="-100%"
android:toYDelta="0%"
android:interpolator="@android:anim/decelerate_interpolator"
android:duration="1000" />
</set>

View File

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android">
<translate
android:fromYDelta="100%"
android:toYDelta="0%"
android:interpolator="@android:anim/decelerate_interpolator"
android:duration="1000" />
</set>

View File

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android">
<translate
android:fromYDelta="0%"
android:toYDelta="100%"
android:interpolator="@android:anim/decelerate_interpolator"
android:duration="1000" />
</set>

View File

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android">
<translate
android:fromYDelta="0%"
android:toYDelta="-100%"
android:interpolator="@android:anim/decelerate_interpolator"
android:duration="1000" />
</set>