public class

TextCard

extends Card
java.lang.Object
   ↳ com.usebutton.sdk.purchasepath.Card
     ↳ com.usebutton.sdk.purchasepath.TextCard

Class Overview

This is a concrete card class that can display a title and body text.

Summary

Nested Classes
class TextCard.Builder  
[Expand]
Inherited Constants
From class com.usebutton.sdk.purchasepath.Card
Public Methods
int getBackgroundColor()
String getBody()
int getBodyColor()
float getBodySize()
Typeface getBodyTypeface()
String getTitle()
int getTitleColor()
float getTitleSize()
Typeface getTitleTypeface()
void setBackgroundColor(int backgroundColor)
void setBody(String body)
void setBodyColor(int bodyColor)
void setBodySize(float bodySize)
void setBodyTypeface(Typeface bodyTypeface)
void setTitle(String title)
void setTitleColor(int titleColor)
void setTitleSize(float titleSize)
void setTitleTypeface(Typeface titleTypeface)
Protected Methods
final void onBindView(View view)
Called when an inflated card view should be populated with data for display.
final View onCreateView(ViewGroup parent)
Called when a view should be inflated to display the card contents.
[Expand]
Inherited Methods
From class com.usebutton.sdk.purchasepath.Card
From class java.lang.Object

Public Methods

public int getBackgroundColor ()

public String getBody ()

public int getBodyColor ()

public float getBodySize ()

public Typeface getBodyTypeface ()

public String getTitle ()

public int getTitleColor ()

public float getTitleSize ()

public Typeface getTitleTypeface ()

public void setBackgroundColor (int backgroundColor)

public void setBody (String body)

public void setBodyColor (int bodyColor)

public void setBodySize (float bodySize)

public void setBodyTypeface (Typeface bodyTypeface)

public void setTitle (String title)

public void setTitleColor (int titleColor)

public void setTitleSize (float titleSize)

public void setTitleTypeface (Typeface titleTypeface)

Protected Methods

protected final void onBindView (View view)

Called when an inflated card view should be populated with data for display.

Parameters
view instance of the view returned from onCreateView(ViewGroup)

protected final View onCreateView (ViewGroup parent)

Called when a view should be inflated to display the card contents. Subclasses should override this method

Parameters
parent ViewGroup where newly inflated view should be attached.
Returns
  • the newly inflated view that can display the card contents.