Skip to content

Commit

Permalink
Add method GuideView.setButtonBackground
Browse files Browse the repository at this point in the history
  • Loading branch information
Ade Fruandta committed Feb 22, 2019
1 parent 1987cc5 commit b98ee1c
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions showcase/src/main/java/com/happyfresh/showcase/GuideView.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,12 @@
import android.content.res.Configuration;
import android.content.res.Resources;
import android.graphics.*;
import android.graphics.drawable.Drawable;
import android.os.Build;
import android.support.annotation.ColorInt;
import android.support.annotation.ColorRes;
import android.support.annotation.DrawableRes;
import android.support.v4.content.ContextCompat;
import android.text.Spannable;
import android.util.Log;
import android.view.MotionEvent;
Expand Down Expand Up @@ -399,6 +404,14 @@ public void setButtonText(String buttonText){
mMessageView.okButton.setText(buttonText);
}

public void setButtonBackground(Drawable drawable){
mMessageView.okButton.setBackground(drawable);
}

public void setButtonBackground(@ColorInt int color){
mMessageView.okButton.setBackgroundColor(color);
}

public void setTitlePadding(int paddingLeft, int paddingTop, int paddingRight, int paddingBottom){

paddingLeft = mMessageView.padding + paddingLeft;
Expand Down

0 comments on commit b98ee1c

Please sign in to comment.