aboutsummaryrefslogtreecommitdiffstats
path: root/showcaseview
diff options
context:
space:
mode:
authorBananeweizen <bananeweizen@gmx.de>2014-08-19 18:03:26 +0200
committerBananeweizen <bananeweizen@gmx.de>2014-08-19 18:03:26 +0200
commiteab8c50fa8a6be5f373ef7a484eb03b7f82c0861 (patch)
tree0aa5150b421867ca2cbc96326e359c3a663bd784 /showcaseview
parentd004925e17db474bf58c3fe8e403b739d537c9d7 (diff)
downloadcgeo-eab8c50fa8a6be5f373ef7a484eb03b7f82c0861.zip
cgeo-eab8c50fa8a6be5f373ef7a484eb03b7f82c0861.tar.gz
cgeo-eab8c50fa8a6be5f373ef7a484eb03b7f82c0861.tar.bz2
avoid overlaying the system buttons
This is actually quite a hack. If someone knows a better solution, we can and should revert this.
Diffstat (limited to 'showcaseview')
-rw-r--r--showcaseview/java/com/github/amlcurran/showcaseview/ShowcaseView.java7
1 files changed, 3 insertions, 4 deletions
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) {