You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: library/src/main/java/io/github/douglasjunior/androidSimpleTooltip/SimpleTooltip.java
+12Lines changed: 12 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -41,6 +41,7 @@
41
41
importandroid.support.annotation.DrawableRes;
42
42
importandroid.support.annotation.IdRes;
43
43
importandroid.support.annotation.LayoutRes;
44
+
importandroid.support.annotation.StringRes;
44
45
importandroid.view.Gravity;
45
46
importandroid.view.LayoutInflater;
46
47
importandroid.view.MotionEvent;
@@ -715,6 +716,17 @@ public Builder text(CharSequence text) {
715
716
returnthis;
716
717
}
717
718
719
+
/**
720
+
* <div class="pt">Define o texto que sera exibido no <tt>TextView</tt> dentro do tooltip.</div>
721
+
*
722
+
* @param textRes <div class="pt">id do resource da String.</div>
723
+
* @return this
724
+
*/
725
+
publicBuildertext(@StringResinttextRes) {
726
+
this.text = context.getString(textRes);
727
+
returnthis;
728
+
}
729
+
718
730
/**
719
731
* <div class="pt">Define para qual <tt>View</tt> o tooltip deve apontar. Importante ter certeza que esta <tt>View</tt> já esteja pronta e exibida na tela.</div>
0 commit comments