public class Tutorial extends java.lang.Object implements android.os.Parcelable, TutorialInterface
| Modifier and Type | Class and Description |
|---|---|
class |
Tutorial.GotItPosition
Static values representing available positions for placing the "GotIt" button in the TutorialView.
|
class |
Tutorial.InfoPosition
Static values representing available positions for placing the info text in the TutorialView.
|
| Modifier and Type | Field and Description |
|---|---|
static android.os.Parcelable.Creator<Tutorial> |
CREATOR |
protected long |
mAnimationDuration
Holds the animation duration that will be used to animate the tutorial in and out.
|
protected AbstractTutorialView.AnimationType |
mAnimationType
Holds the animation type value that will be preformed on opening and closing the tutorial.
|
protected int |
mTutorialInfoLayoutId
The layout id that will be used to inflate the tutorial info view.
|
protected int |
mTutorialTextColor
Holds the color for the default info view text view.
|
protected int |
mTutorialTextSize
Holds the size of the default info view text view.
|
protected java.lang.String |
mTutorialTextTypeFaceName
Holds the name of the typeface that will be used for the default info view text view
|
| Constructor and Description |
|---|
Tutorial() |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
int |
describeContents() |
long |
getAnimationDuration() |
AbstractTutorialView.AnimationType |
getAnimationType() |
int |
getPositionToSurroundHeight() |
int |
getPositionToSurroundWidth() |
float |
getPositionToSurroundX() |
float |
getPositionToSurroundY() |
java.lang.String |
getTitle() |
int |
getTutorialBackgroundColor() |
int |
getTutorialGotItPosition() |
int |
getTutorialInfoLayoutId() |
int |
getTutorialInfoTextPosition() |
java.lang.String |
getTutorialText() |
int |
getTutorialTextColor() |
int |
getTutorialTextSize() |
java.lang.String |
getTutorialTextTypeFace() |
void |
setAnimationDuration(long mAnimationDuration) |
void |
setAnimationType(AbstractTutorialView.AnimationType mAnimationType) |
void |
setPositionToSurroundHeight(int mPositionToSurroundHeight) |
void |
setPositionToSurroundWidth(int mPositionToSurroundWidth) |
void |
setPositionToSurroundX(float mPositionToSurroundX) |
void |
setPositionToSurroundY(float mPositionToSurroundY) |
void |
setTitle(java.lang.String mTitle) |
void |
setTutorialBackgroundColor(int mBackgroundColor)
The background color for the tutorial.
|
void |
setTutorialGotItPosition(int gotItPosition) |
void |
setTutorialInfoLayoutId(int mTutorialInfoLayoutId)
The Layout id of the view that will be used to show the tutorial text or information.
|
void |
setTutorialInfoTextPosition(int infoTextPosition) |
void |
setTutorialText(java.lang.String mInfoText)
The text that will be used for the
mTutorialInfoView. |
void |
setTutorialTextColor(int mTutorialTextColor) |
void |
setTutorialTextSize(int mTutorialTextSize)
Set the size that will be used for the default info view text view.
|
void |
setTutorialTextTypeFace(java.lang.String mTutorialTextTypeFaceName) |
void |
setViewToSurround(android.view.View view) |
void |
writeToParcel(android.os.Parcel dest,
int flags) |
protected long mAnimationDuration
AbstractTutorialView.DEFAULT_ANIM_DURATION will be used.protected AbstractTutorialView.AnimationType mAnimationType
protected int mTutorialInfoLayoutId
protected int mTutorialTextColor
protected java.lang.String mTutorialTextTypeFaceName
protected int mTutorialTextSize
public static final android.os.Parcelable.Creator<Tutorial> CREATOR
public void clear()
public void setViewToSurround(android.view.View view)
public java.lang.String getTitle()
public float getPositionToSurroundX()
public float getPositionToSurroundY()
public int getPositionToSurroundWidth()
public int getPositionToSurroundHeight()
public void setPositionToSurroundX(float mPositionToSurroundX)
public void setPositionToSurroundY(float mPositionToSurroundY)
public void setPositionToSurroundWidth(int mPositionToSurroundWidth)
public void setPositionToSurroundHeight(int mPositionToSurroundHeight)
public int getTutorialBackgroundColor()
getTutorialBackgroundColor in interface TutorialInterfacepublic void setTutorialBackgroundColor(int mBackgroundColor)
TutorialInterfacesetTutorialBackgroundColor in interface TutorialInterfacemBackgroundColor - the backgrond color to use for the backgroundpublic void setTutorialText(java.lang.String mInfoText)
TutorialInterfacemTutorialInfoView.
Only if the layout that is used is the default layout com.braunster.tutorialview.R.layout#tutorial_text.setTutorialText in interface TutorialInterfacemInfoText - The explenation text about the view.AbstractTutorialView.setTutorialTextTypeFace(String),
AbstractTutorialView.setTutorialTextColor(int),
AbstractTutorialView.setTutorialTextSize(int)public java.lang.String getTutorialText()
getTutorialText in interface TutorialInterfacepublic int getTutorialTextSize()
getTutorialTextSize in interface TutorialInterfacepublic void setTutorialTextSize(int mTutorialTextSize)
TutorialInterfacesetTutorialTextSize in interface TutorialInterfacemTutorialTextSize - the size that would be used for the info text.AbstractTutorialView.setTutorialText(String),
AbstractTutorialView.setTutorialTextColor(int),
AbstractTutorialView.setTutorialTextTypeFace(String)public void setTitle(java.lang.String mTitle)
public int getTutorialTextColor()
getTutorialTextColor in interface TutorialInterfacepublic void setTutorialTextColor(int mTutorialTextColor)
setTutorialTextColor in interface TutorialInterfacemTutorialTextColor - the color that will be used for the default info view text view.
This color will also be used for the "Got It" button.AbstractTutorialView.setTutorialTextSize(int),
AbstractTutorialView.setTutorialText(String),
AbstractTutorialView.setTutorialTextTypeFace(String)public int getTutorialInfoLayoutId()
getTutorialInfoLayoutId in interface TutorialInterfacepublic void setTutorialInfoLayoutId(int mTutorialInfoLayoutId)
TutorialInterfacesetTutorialInfoLayoutId in interface TutorialInterfacemTutorialInfoLayoutId - the id of the layout that should be used for the info text.public AbstractTutorialView.AnimationType getAnimationType()
getAnimationType in interface TutorialInterfacepublic void setAnimationType(AbstractTutorialView.AnimationType mAnimationType)
setAnimationType in interface TutorialInterfacemAnimationType - the animation type that will be used to show and hide the tutorial.public long getAnimationDuration()
getAnimationDuration in interface TutorialInterfacepublic void setTutorialInfoTextPosition(int infoTextPosition)
setTutorialInfoTextPosition in interface TutorialInterfacepublic int getTutorialInfoTextPosition()
getTutorialInfoTextPosition in interface TutorialInterfacepublic void setTutorialGotItPosition(int gotItPosition)
setTutorialGotItPosition in interface TutorialInterfacepublic int getTutorialGotItPosition()
getTutorialGotItPosition in interface TutorialInterfacepublic void setAnimationDuration(long mAnimationDuration)
setAnimationDuration in interface TutorialInterfacemAnimationDuration - the time that will be used for the animationpublic void setTutorialTextTypeFace(java.lang.String mTutorialTextTypeFaceName)
setTutorialTextTypeFace in interface TutorialInterfacemTutorialTextTypeFaceName - the typeface name that will be used for the default info view text view.AbstractTutorialView.setTutorialTextSize(int),
AbstractTutorialView.setTutorialText(String),
AbstractTutorialView.setTutorialTextColor(int)public java.lang.String getTutorialTextTypeFace()
getTutorialTextTypeFace in interface TutorialInterfacepublic int describeContents()
describeContents in interface android.os.Parcelablepublic void writeToParcel(android.os.Parcel dest,
int flags)
writeToParcel in interface android.os.Parcelable