From eab8c50fa8a6be5f373ef7a484eb03b7f82c0861 Mon Sep 17 00:00:00 2001 From: Bananeweizen Date: Tue, 19 Aug 2014 18:03:26 +0200 Subject: avoid overlaying the system buttons This is actually quite a hack. If someone knows a better solution, we can and should revert this. --- .../java/com/github/amlcurran/showcaseview/ShowcaseView.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'showcaseview/java') diff --git a/showcaseview/java/com/github/amlcurran/showcaseview/ShowcaseView.java b/showcaseview/java/com/github/amlcurran/showcaseview/ShowcaseView.java index 6c32c8d..6d5f386 100644 --- a/showcaseview/java/com/github/amlcurran/showcaseview/ShowcaseView.java +++ b/showcaseview/java/com/github/amlcurran/showcaseview/ShowcaseView.java @@ -34,11 +34,10 @@ import android.view.ViewTreeObserver; import android.widget.Button; import android.widget.RelativeLayout; +import com.github.amlcurran.showcaseview.AnimationFactory.AnimationEndListener; +import com.github.amlcurran.showcaseview.AnimationFactory.AnimationStartListener; import com.github.amlcurran.showcaseview.targets.Target; -import static com.github.amlcurran.showcaseview.AnimationFactory.AnimationEndListener; -import static com.github.amlcurran.showcaseview.AnimationFactory.AnimationStartListener; - /** * A view which allows you to showcase areas of your app with an explanation. */ @@ -121,7 +120,7 @@ public class ShowcaseView extends RelativeLayout RelativeLayout.LayoutParams lps = (LayoutParams) generateDefaultLayoutParams(); lps.addRule(RelativeLayout.ALIGN_PARENT_BOTTOM); lps.addRule(RelativeLayout.ALIGN_PARENT_RIGHT); - lps.setMargins(margin, margin, margin, margin); + lps.setMargins(margin, margin, margin, margin * 4); mEndButton.setLayoutParams(lps); mEndButton.setText(android.R.string.ok); if (!hasCustomClickListener) { -- cgit v1.1