Skip to content

Commit 69d7d8e

Browse files
committed
Merge pull request #5 from deftelf/master
Allow CharSequence as body text
2 parents 945c7b7 + 8687324 commit 69d7d8e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

library/src/main/java/io/github/douglasjunior/androidSimpleTooltip/SimpleTooltip.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ public class SimpleTooltip implements PopupWindow.OnDismissListener {
8989
private View mContentLayout;
9090
@IdRes
9191
private final int mTextViewId;
92-
private final String mText;
92+
private final CharSequence mText;
9393
private final View mAnchorView;
9494
private final boolean mTransparentOverlay;
9595
private final float mMaxWidth;
@@ -503,7 +503,7 @@ public static class Builder {
503503
private View contentView;
504504
@IdRes
505505
private int textViewId = android.R.id.text1;
506-
private String text = "";
506+
private CharSequence text = "";
507507
private View anchorView;
508508
private int gravity = Gravity.BOTTOM;
509509
private boolean transparentOverlay = true;
@@ -691,7 +691,7 @@ public Builder modal(boolean modal) {
691691
* @param text <div class="pt">texto que sera exibido.</div>
692692
* @return this
693693
*/
694-
public Builder text(String text) {
694+
public Builder text(CharSequence text) {
695695
this.text = text;
696696
return this;
697697
}

0 commit comments

Comments
 (0)