| java.lang.Object | |
| ↳ | com.usebutton.sdk.models.Text | 
The Text class represents everything you need to style and set value for a TextView.
 
 
 Example bright red button that reads "Hi!":
 
 final Text someText; // text= "Hi!", color = #f00
 final TextView myTextView;
 if (someText == null) {
     myTextView.setVisibility(View.GONE);
 }
 else {
     myTextView(setVisibility(View.VISIBLE);
     // Either
     someText.applyTo(myTextView);
     // Or:
     myTextView.setText(someText.getCopy());
     myTextView.setTextColor(someText.getColor());
 }
 
| 
  [Expand]
   Inherited Constants  | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
   From interface
android.os.Parcelable
 | |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Convenience method to set text and color for a TextViewor any of its subclasses
 (like Button). 
  
   | |||||||||||
| 
  [Expand]
   Inherited Methods  | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
   
From class
  java.lang.Object
 | |||||||||||
   
From interface
  android.os.Parcelable
 | |||||||||||
Convenience method to set text and color for a TextViewor any of its subclasses
 (like Button).
 Equivalent to calling setText(CharSequence) and setTextColor(int).