Navigation Menu

Skip to content

Commit

Permalink
Merge pull request #5 from deftelf/master
Browse files Browse the repository at this point in the history
Allow CharSequence as body text
  • Loading branch information
douglasjunior committed May 26, 2016
2 parents 945c7b7 + 8687324 commit 69d7d8e
Showing 1 changed file with 3 additions and 3 deletions.
Expand Up @@ -89,7 +89,7 @@ public class SimpleTooltip implements PopupWindow.OnDismissListener {
private View mContentLayout;
@IdRes
private final int mTextViewId;
private final String mText;
private final CharSequence mText;
private final View mAnchorView;
private final boolean mTransparentOverlay;
private final float mMaxWidth;
Expand Down Expand Up @@ -503,7 +503,7 @@ public static class Builder {
private View contentView;
@IdRes
private int textViewId = android.R.id.text1;
private String text = "";
private CharSequence text = "";
private View anchorView;
private int gravity = Gravity.BOTTOM;
private boolean transparentOverlay = true;
Expand Down Expand Up @@ -691,7 +691,7 @@ public Builder modal(boolean modal) {
* @param text <div class="pt">texto que sera exibido.</div>
* @return this
*/
public Builder text(String text) {
public Builder text(CharSequence text) {
this.text = text;
return this;
}
Expand Down

0 comments on commit 69d7d8e

Please sign in to comment.