diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/activities/ActivitySummaryDetail.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/activities/ActivitySummaryDetail.java
index 4244ce089..8b1af477b 100644
--- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/activities/ActivitySummaryDetail.java
+++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/activities/ActivitySummaryDetail.java
@@ -75,14 +75,23 @@ public class ActivitySummaryDetail extends AbstractGBActivity {
final ActivitySummaryItems items = new ActivitySummaryItems(this, mGBDevice, filter);
final RelativeLayout layout = findViewById(R.id.activity_summary_detail_relative_layout);
- final Animation animFadein;
- final Animation animFadeout;
- animFadein = AnimationUtils.loadAnimation(
+ final Animation animFadeRight;
+ final Animation animFadeLeft;
+ final Animation animBounceLeft;
+ final Animation animBounceRight;
+
+ animFadeRight = AnimationUtils.loadAnimation(
this,
R.anim.flyright);
- animFadeout = AnimationUtils.loadAnimation(
+ animFadeLeft = AnimationUtils.loadAnimation(
this,
R.anim.flyleft);
+ animBounceLeft = AnimationUtils.loadAnimation(
+ this,
+ R.anim.bounceleft);
+ animBounceRight = AnimationUtils.loadAnimation(
+ this,
+ R.anim.bounceright);
layout.setOnTouchListener(new SwipeEvents(this) {
@Override
@@ -91,10 +100,10 @@ public class ActivitySummaryDetail extends AbstractGBActivity {
if (currentItem != null) {
makeSummaryHeader(currentItem);
makeSummaryContent(currentItem);
- layout.startAnimation(animFadein);
+ layout.startAnimation(animFadeRight);
}else{
- GB.toast("No more items", Toast.LENGTH_SHORT,0);
+ layout.startAnimation(animBounceRight);
}
}
@Override
@@ -103,9 +112,9 @@ public class ActivitySummaryDetail extends AbstractGBActivity {
if (currentItem != null) {
makeSummaryHeader(currentItem);
makeSummaryContent(currentItem);
- layout.startAnimation(animFadeout);
+ layout.startAnimation(animFadeLeft);
}else{
- GB.toast("No more items", Toast.LENGTH_SHORT,0);
+ layout.startAnimation(animBounceLeft);
}
}
});
diff --git a/app/src/main/res/anim/bounceleft.xml b/app/src/main/res/anim/bounceleft.xml
new file mode 100644
index 000000000..ecf953c2a
--- /dev/null
+++ b/app/src/main/res/anim/bounceleft.xml
@@ -0,0 +1,11 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/anim/bounceright.xml b/app/src/main/res/anim/bounceright.xml
new file mode 100644
index 000000000..412aef291
--- /dev/null
+++ b/app/src/main/res/anim/bounceright.xml
@@ -0,0 +1,10 @@
+
+
+
+
+
\ No newline at end of file