public class TutorialLayout extends android.widget.RelativeLayout implements TutorialViewInterface, WalkThroughInterface
| Modifier and Type | Class and Description |
|---|---|
static interface |
TutorialLayout.WalkThroughListener |
android.widget.RelativeLayout.LayoutParamsandroid.view.ViewGroup.MarginLayoutParams, android.view.ViewGroup.OnHierarchyChangeListenerandroid.view.View.AccessibilityDelegate, android.view.View.BaseSavedState, android.view.View.DragShadowBuilder, android.view.View.MeasureSpec, android.view.View.OnApplyWindowInsetsListener, android.view.View.OnAttachStateChangeListener, android.view.View.OnClickListener, android.view.View.OnCreateContextMenuListener, android.view.View.OnDragListener, android.view.View.OnFocusChangeListener, android.view.View.OnGenericMotionListener, android.view.View.OnHoverListener, android.view.View.OnKeyListener, android.view.View.OnLayoutChangeListener, android.view.View.OnLongClickListener, android.view.View.OnSystemUiVisibilityChangeListener, android.view.View.OnTouchListener| Modifier and Type | Field and Description |
|---|---|
static boolean |
DEBUG |
static java.lang.String |
TAG |
ABOVE, ALIGN_BASELINE, ALIGN_BOTTOM, ALIGN_END, ALIGN_LEFT, ALIGN_PARENT_BOTTOM, ALIGN_PARENT_END, ALIGN_PARENT_LEFT, ALIGN_PARENT_RIGHT, ALIGN_PARENT_START, ALIGN_PARENT_TOP, ALIGN_RIGHT, ALIGN_START, ALIGN_TOP, BELOW, CENTER_HORIZONTAL, CENTER_IN_PARENT, CENTER_VERTICAL, END_OF, LEFT_OF, RIGHT_OF, START_OF, TRUECLIP_TO_PADDING_MASK, FOCUS_AFTER_DESCENDANTS, FOCUS_BEFORE_DESCENDANTS, FOCUS_BLOCK_DESCENDANTS, LAYOUT_MODE_CLIP_BOUNDS, LAYOUT_MODE_OPTICAL_BOUNDS, PERSISTENT_ALL_CACHES, PERSISTENT_ANIMATION_CACHE, PERSISTENT_NO_CACHE, PERSISTENT_SCROLLING_CACHEACCESSIBILITY_LIVE_REGION_ASSERTIVE, ACCESSIBILITY_LIVE_REGION_NONE, ACCESSIBILITY_LIVE_REGION_POLITE, ALPHA, DRAWING_CACHE_QUALITY_AUTO, DRAWING_CACHE_QUALITY_HIGH, DRAWING_CACHE_QUALITY_LOW, EMPTY_STATE_SET, ENABLED_FOCUSED_SELECTED_STATE_SET, ENABLED_FOCUSED_SELECTED_WINDOW_FOCUSED_STATE_SET, ENABLED_FOCUSED_STATE_SET, ENABLED_FOCUSED_WINDOW_FOCUSED_STATE_SET, ENABLED_SELECTED_STATE_SET, ENABLED_SELECTED_WINDOW_FOCUSED_STATE_SET, ENABLED_STATE_SET, ENABLED_WINDOW_FOCUSED_STATE_SET, FIND_VIEWS_WITH_CONTENT_DESCRIPTION, FIND_VIEWS_WITH_TEXT, FOCUS_BACKWARD, FOCUS_DOWN, FOCUS_FORWARD, FOCUS_LEFT, FOCUS_RIGHT, FOCUS_UP, FOCUSABLES_ALL, FOCUSABLES_TOUCH_MODE, FOCUSED_SELECTED_STATE_SET, FOCUSED_SELECTED_WINDOW_FOCUSED_STATE_SET, FOCUSED_STATE_SET, FOCUSED_WINDOW_FOCUSED_STATE_SET, GONE, HAPTIC_FEEDBACK_ENABLED, IMPORTANT_FOR_ACCESSIBILITY_AUTO, IMPORTANT_FOR_ACCESSIBILITY_NO, IMPORTANT_FOR_ACCESSIBILITY_NO_HIDE_DESCENDANTS, IMPORTANT_FOR_ACCESSIBILITY_YES, INVISIBLE, KEEP_SCREEN_ON, LAYER_TYPE_HARDWARE, LAYER_TYPE_NONE, LAYER_TYPE_SOFTWARE, LAYOUT_DIRECTION_INHERIT, LAYOUT_DIRECTION_LOCALE, LAYOUT_DIRECTION_LTR, LAYOUT_DIRECTION_RTL, MEASURED_HEIGHT_STATE_SHIFT, MEASURED_SIZE_MASK, MEASURED_STATE_MASK, MEASURED_STATE_TOO_SMALL, NO_ID, OVER_SCROLL_ALWAYS, OVER_SCROLL_IF_CONTENT_SCROLLS, OVER_SCROLL_NEVER, PRESSED_ENABLED_FOCUSED_SELECTED_STATE_SET, PRESSED_ENABLED_FOCUSED_SELECTED_WINDOW_FOCUSED_STATE_SET, PRESSED_ENABLED_FOCUSED_STATE_SET, PRESSED_ENABLED_FOCUSED_WINDOW_FOCUSED_STATE_SET, PRESSED_ENABLED_SELECTED_STATE_SET, PRESSED_ENABLED_SELECTED_WINDOW_FOCUSED_STATE_SET, PRESSED_ENABLED_STATE_SET, PRESSED_ENABLED_WINDOW_FOCUSED_STATE_SET, PRESSED_FOCUSED_SELECTED_STATE_SET, PRESSED_FOCUSED_SELECTED_WINDOW_FOCUSED_STATE_SET, PRESSED_FOCUSED_STATE_SET, PRESSED_FOCUSED_WINDOW_FOCUSED_STATE_SET, PRESSED_SELECTED_STATE_SET, PRESSED_SELECTED_WINDOW_FOCUSED_STATE_SET, PRESSED_STATE_SET, PRESSED_WINDOW_FOCUSED_STATE_SET, ROTATION, ROTATION_X, ROTATION_Y, SCALE_X, SCALE_Y, SCREEN_STATE_OFF, SCREEN_STATE_ON, SCROLL_AXIS_HORIZONTAL, SCROLL_AXIS_NONE, SCROLL_AXIS_VERTICAL, SCROLLBAR_POSITION_DEFAULT, SCROLLBAR_POSITION_LEFT, SCROLLBAR_POSITION_RIGHT, SCROLLBARS_INSIDE_INSET, SCROLLBARS_INSIDE_OVERLAY, SCROLLBARS_OUTSIDE_INSET, SCROLLBARS_OUTSIDE_OVERLAY, SELECTED_STATE_SET, SELECTED_WINDOW_FOCUSED_STATE_SET, SOUND_EFFECTS_ENABLED, STATUS_BAR_HIDDEN, STATUS_BAR_VISIBLE, SYSTEM_UI_FLAG_FULLSCREEN, SYSTEM_UI_FLAG_HIDE_NAVIGATION, SYSTEM_UI_FLAG_IMMERSIVE, SYSTEM_UI_FLAG_IMMERSIVE_STICKY, SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN, SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION, SYSTEM_UI_FLAG_LAYOUT_STABLE, SYSTEM_UI_FLAG_LOW_PROFILE, SYSTEM_UI_FLAG_VISIBLE, SYSTEM_UI_LAYOUT_FLAGS, TEXT_ALIGNMENT_CENTER, TEXT_ALIGNMENT_GRAVITY, TEXT_ALIGNMENT_INHERIT, TEXT_ALIGNMENT_TEXT_END, TEXT_ALIGNMENT_TEXT_START, TEXT_ALIGNMENT_VIEW_END, TEXT_ALIGNMENT_VIEW_START, TEXT_DIRECTION_ANY_RTL, TEXT_DIRECTION_FIRST_STRONG, TEXT_DIRECTION_INHERIT, TEXT_DIRECTION_LOCALE, TEXT_DIRECTION_LTR, TEXT_DIRECTION_RTL, TRANSLATION_X, TRANSLATION_Y, TRANSLATION_Z, VIEW_LOG_TAG, VISIBLE, WINDOW_FOCUSED_STATE_SET, X, Y, Z| Constructor and Description |
|---|
TutorialLayout(android.content.Context context) |
TutorialLayout(android.content.Context context,
android.util.AttributeSet attrs) |
TutorialLayout(android.content.Context context,
android.util.AttributeSet attrs,
int defStyleAttr) |
| Modifier and Type | Method and Description |
|---|---|
void |
changeActionBarColor(boolean mChangeActionBarColor)
If true and an action bar is given to the view the action bar background color will be changed to the tutorial color.
|
void |
closeTutorial() |
long |
getAnimationDuration() |
AbstractTutorialView.AnimationType |
getAnimationType() |
int |
getTutorialBackgroundColor() |
int |
getTutorialGotItPosition() |
int |
getTutorialInfoLayoutId() |
int |
getTutorialInfoTextPosition() |
java.lang.String |
getTutorialText() |
int |
getTutorialTextColor() |
int |
getTutorialTextSize() |
java.lang.String |
getTutorialTextTypeFace() |
AbstractTutorialView |
getTutorialView() |
void |
hide() |
boolean |
isShowing() |
boolean |
isWalkThrough() |
void |
nextTutorial(Tutorial tutorial)
Moving to the next tutorial in the walk through.
|
void |
setActionBar(android.app.ActionBar actionBar)
Setting the action bar, Used only if you pace the Tutorial view inside your root view.
|
void |
setActionBarRestoreColor(int mActionBarColor)
The of the color that will be set as the action bar color when the tutorial view will be closed.
|
void |
setAnimationDuration(long duration) |
void |
setAnimationType(AbstractTutorialView.AnimationType mAnimationType) |
void |
setHasActionBar(boolean hasActionBar)
Set true if the application has the activity that hold this view has action bar..
|
void |
setHasStatusBar(boolean hasStatusBar)
Set true if the application has status bar.
|
void |
setPositionToSurround(float positionToSurroundX,
float positionToSurroundY,
int positionToSurroundWidth,
int positionToSurroundHeight)
Used mostly for the tutorial activity, Instead of passing a view to surround we pass the view coordination and dimensions.
|
void |
setPositionToSurround(float positionToSurroundX,
float positionToSurroundY,
int positionToSurroundWidth,
int positionToSurroundHeight,
java.lang.String title)
Used mostly for the tutorial activity, Instead of passing a view to surround we pass the view coordination and dimensions.
|
void |
setTutorial(Tutorial tutorial)
Set the tutorial data for this view and animate it into the screen.
|
void |
setTutorial(Tutorial tutorial,
boolean show)
Set the tutorial data for this view and animate it into the screen if wanted.
|
void |
setTutorialBackgroundColor(int mTutorialBackgroundColor)
The background color for the tutorial.
|
void |
setTutorialClosedListener(AbstractTutorialView.TutorialClosedListener tutorialClosedListener)
Set the listener on the tutorial view,
If walk through is used this will be overridden and you should set a
WalkThroughListener instead. |
void |
setTutorialGotItPosition(int gotItPosition) |
void |
setTutorialInfoLayoutId(int tutorialInfoLayoutId)
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 tutorialText)
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 tutorialTextTypeFaceName) |
void |
setViewToSurround(android.view.View mViewToSurround)
Surround a given view by a visual tutorial with text.
|
void |
setViewToSurround(android.view.View mViewToSurround,
java.lang.String title)
Surround a given view by a visual tutorial with text and title.
|
void |
setWalkThroughData(java.util.ArrayList<Tutorial> tutorials)
Setting the walk through data.
|
void |
setWalkThroughListener(TutorialLayout.WalkThroughListener walkThroughListener) |
void |
show() |
void |
skip()
Skipping the rest of the walk through.
|
void |
startWalkThrough()
Starting the walk through.
|
checkLayoutParams, dispatchPopulateAccessibilityEvent, generateDefaultLayoutParams, generateLayoutParams, generateLayoutParams, getBaseline, getGravity, onInitializeAccessibilityEvent, onInitializeAccessibilityNodeInfo, onLayout, onMeasure, requestLayout, setGravity, setHorizontalGravity, setIgnoreGravity, setVerticalGravity, shouldDelayChildPressedStateaddChildrenForAccessibility, addFocusables, addStatesFromChildren, addTouchables, addView, addView, addView, addView, addView, addViewInLayout, addViewInLayout, attachLayoutAnimationParameters, attachViewToParent, bringChildToFront, canAnimate, childDrawableStateChanged, childHasTransientStateChanged, cleanupLayoutState, clearChildFocus, clearDisappearingChildren, clearFocus, debug, detachAllViewsFromParent, detachViewFromParent, detachViewFromParent, detachViewsFromParent, dispatchApplyWindowInsets, dispatchConfigurationChanged, dispatchDisplayHint, dispatchDragEvent, dispatchDraw, dispatchDrawableHotspotChanged, dispatchFreezeSelfOnly, dispatchGenericFocusedEvent, dispatchGenericPointerEvent, dispatchHoverEvent, dispatchKeyEvent, dispatchKeyEventPreIme, dispatchKeyShortcutEvent, dispatchRestoreInstanceState, dispatchSaveInstanceState, dispatchSetActivated, dispatchSetPressed, dispatchSetSelected, dispatchSystemUiVisibilityChanged, dispatchThawSelfOnly, dispatchTouchEvent, dispatchTrackballEvent, dispatchUnhandledMove, dispatchVisibilityChanged, dispatchWindowFocusChanged, dispatchWindowSystemUiVisiblityChanged, dispatchWindowVisibilityChanged, drawableStateChanged, drawChild, endViewTransition, findFocus, findViewsWithText, focusableViewAvailable, focusSearch, gatherTransparentRegion, getChildAt, getChildCount, getChildDrawingOrder, getChildMeasureSpec, getChildStaticTransformation, getChildVisibleRect, getClipChildren, getClipToPadding, getDescendantFocusability, getFocusedChild, getLayoutAnimation, getLayoutAnimationListener, getLayoutMode, getLayoutTransition, getNestedScrollAxes, getOverlay, getPersistentDrawingCache, getTouchscreenBlocksFocus, hasFocus, hasFocusable, hasTransientState, indexOfChild, invalidateChild, invalidateChildInParent, isAlwaysDrawnWithCacheEnabled, isAnimationCacheEnabled, isChildrenDrawingOrderEnabled, isChildrenDrawnWithCacheEnabled, isMotionEventSplittingEnabled, isTransitionGroup, jumpDrawablesToCurrentState, layout, measureChild, measureChildren, measureChildWithMargins, notifySubtreeAccessibilityStateChanged, offsetDescendantRectToMyCoords, offsetRectIntoDescendantCoords, onAnimationEnd, onAnimationStart, onAttachedToWindow, onCreateDrawableState, onDetachedFromWindow, onInterceptHoverEvent, onInterceptTouchEvent, onNestedFling, onNestedPreFling, onNestedPrePerformAccessibilityAction, onNestedPreScroll, onNestedScroll, onNestedScrollAccepted, onRequestFocusInDescendants, onRequestSendAccessibilityEvent, onStartNestedScroll, onStopNestedScroll, recomputeViewAttributes, removeAllViews, removeAllViewsInLayout, removeDetachedView, removeView, removeViewAt, removeViewInLayout, removeViews, removeViewsInLayout, requestChildFocus, requestChildRectangleOnScreen, requestDisallowInterceptTouchEvent, requestFocus, requestSendAccessibilityEvent, requestTransparentRegion, scheduleLayoutAnimation, setAddStatesFromChildren, setAlwaysDrawnWithCacheEnabled, setAnimationCacheEnabled, setChildrenDrawingCacheEnabled, setChildrenDrawingOrderEnabled, setChildrenDrawnWithCacheEnabled, setClipChildren, setClipToPadding, setDescendantFocusability, setLayoutAnimation, setLayoutAnimationListener, setLayoutMode, setLayoutTransition, setMotionEventSplittingEnabled, setOnHierarchyChangeListener, setPersistentDrawingCache, setStaticTransformationsEnabled, setTouchscreenBlocksFocus, setTransitionGroup, showContextMenuForChild, startActionModeForChild, startLayoutAnimation, startViewTransition, updateViewLayoutaddFocusables, addOnAttachStateChangeListener, addOnLayoutChangeListener, animate, announceForAccessibility, awakenScrollBars, awakenScrollBars, awakenScrollBars, bringToFront, buildDrawingCache, buildDrawingCache, buildLayer, callOnClick, cancelLongPress, cancelPendingInputEvents, canResolveLayoutDirection, canResolveTextAlignment, canResolveTextDirection, canScrollHorizontally, canScrollVertically, checkInputConnectionProxy, clearAnimation, combineMeasuredStates, computeHorizontalScrollExtent, computeHorizontalScrollOffset, computeHorizontalScrollRange, computeScroll, computeSystemWindowInsets, computeVerticalScrollExtent, computeVerticalScrollOffset, computeVerticalScrollRange, createAccessibilityNodeInfo, createContextMenu, destroyDrawingCache, dispatchGenericMotionEvent, dispatchNestedFling, dispatchNestedPreFling, dispatchNestedPrePerformAccessibilityAction, dispatchNestedPreScroll, dispatchNestedScroll, draw, drawableHotspotChanged, findViewById, findViewWithTag, fitSystemWindows, focusSearch, forceLayout, generateViewId, getAccessibilityLiveRegion, getAccessibilityNodeProvider, getAccessibilityTraversalAfter, getAccessibilityTraversalBefore, getAlpha, getAnimation, getApplicationWindowToken, getBackground, getBackgroundTintList, getBackgroundTintMode, getBottom, getBottomFadingEdgeStrength, getBottomPaddingOffset, getCameraDistance, getClipBounds, getClipToOutline, getContentDescription, getContext, getContextMenuInfo, getDefaultSize, getDisplay, getDrawableState, getDrawingCache, getDrawingCache, getDrawingCacheBackgroundColor, getDrawingCacheQuality, getDrawingRect, getDrawingTime, getElevation, getFilterTouchesWhenObscured, getFitsSystemWindows, getFocusables, getFocusedRect, getGlobalVisibleRect, getGlobalVisibleRect, getHandler, getHeight, getHitRect, getHorizontalFadingEdgeLength, getHorizontalScrollbarHeight, getId, getImportantForAccessibility, getKeepScreenOn, getKeyDispatcherState, getLabelFor, getLayerType, getLayoutDirection, getLayoutParams, getLeft, getLeftFadingEdgeStrength, getLeftPaddingOffset, getLocalVisibleRect, getLocationInWindow, getLocationOnScreen, getMatrix, getMeasuredHeight, getMeasuredHeightAndState, getMeasuredState, getMeasuredWidth, getMeasuredWidthAndState, getMinimumHeight, getMinimumWidth, getNextFocusDownId, getNextFocusForwardId, getNextFocusLeftId, getNextFocusRightId, getNextFocusUpId, getOnFocusChangeListener, getOutlineProvider, getOverScrollMode, getPaddingBottom, getPaddingEnd, getPaddingLeft, getPaddingRight, getPaddingStart, getPaddingTop, getParent, getParentForAccessibility, getPivotX, getPivotY, getResources, getRight, getRightFadingEdgeStrength, getRightPaddingOffset, getRootView, getRotation, getRotationX, getRotationY, getScaleX, getScaleY, getScrollBarDefaultDelayBeforeFade, getScrollBarFadeDuration, getScrollBarSize, getScrollBarStyle, getScrollX, getScrollY, getSolidColor, getStateListAnimator, getSuggestedMinimumHeight, getSuggestedMinimumWidth, getSystemUiVisibility, getTag, getTag, getTextAlignment, getTextDirection, getTop, getTopFadingEdgeStrength, getTopPaddingOffset, getTouchables, getTouchDelegate, getTransitionName, getTranslationX, getTranslationY, getTranslationZ, getVerticalFadingEdgeLength, getVerticalScrollbarPosition, getVerticalScrollbarWidth, getViewTreeObserver, getVisibility, getWidth, getWindowAttachCount, getWindowId, getWindowSystemUiVisibility, getWindowToken, getWindowVisibility, getWindowVisibleDisplayFrame, getX, getY, getZ, hasNestedScrollingParent, hasOnClickListeners, hasOverlappingRendering, hasWindowFocus, inflate, invalidate, invalidate, invalidate, invalidateDrawable, invalidateOutline, isAccessibilityFocused, isActivated, isAttachedToWindow, isClickable, isDirty, isDrawingCacheEnabled, isDuplicateParentStateEnabled, isEnabled, isFocusable, isFocusableInTouchMode, isFocused, isHapticFeedbackEnabled, isHardwareAccelerated, isHorizontalFadingEdgeEnabled, isHorizontalScrollBarEnabled, isHovered, isImportantForAccessibility, isInEditMode, isInLayout, isInTouchMode, isLaidOut, isLayoutDirectionResolved, isLayoutRequested, isLongClickable, isNestedScrollingEnabled, isOpaque, isPaddingOffsetRequired, isPaddingRelative, isPressed, isSaveEnabled, isSaveFromParentEnabled, isScrollbarFadingEnabled, isScrollContainer, isSelected, isShown, isSoundEffectsEnabled, isTextAlignmentResolved, isTextDirectionResolved, isVerticalFadingEdgeEnabled, isVerticalScrollBarEnabled, measure, mergeDrawableStates, offsetLeftAndRight, offsetTopAndBottom, onApplyWindowInsets, onCancelPendingInputEvents, onCheckIsTextEditor, onConfigurationChanged, onCreateContextMenu, onCreateInputConnection, onDisplayHint, onDragEvent, onDraw, onDrawScrollBars, onFilterTouchEventForSecurity, onFinishInflate, onFinishTemporaryDetach, onFocusChanged, onGenericMotionEvent, onHoverChanged, onHoverEvent, onKeyDown, onKeyLongPress, onKeyMultiple, onKeyPreIme, onKeyShortcut, onKeyUp, onOverScrolled, onPopulateAccessibilityEvent, onRestoreInstanceState, onRtlPropertiesChanged, onSaveInstanceState, onScreenStateChanged, onScrollChanged, onSetAlpha, onSizeChanged, onStartTemporaryDetach, onTouchEvent, onTrackballEvent, onVisibilityChanged, onWindowFocusChanged, onWindowSystemUiVisibilityChanged, onWindowVisibilityChanged, overScrollBy, performAccessibilityAction, performClick, performHapticFeedback, performHapticFeedback, performLongClick, playSoundEffect, post, postDelayed, postInvalidate, postInvalidate, postInvalidateDelayed, postInvalidateDelayed, postInvalidateOnAnimation, postInvalidateOnAnimation, postOnAnimation, postOnAnimationDelayed, refreshDrawableState, removeCallbacks, removeOnAttachStateChangeListener, removeOnLayoutChangeListener, requestApplyInsets, requestFitSystemWindows, requestFocus, requestFocus, requestFocusFromTouch, requestRectangleOnScreen, requestRectangleOnScreen, requestUnbufferedDispatch, resolveSize, resolveSizeAndState, restoreHierarchyState, saveHierarchyState, scheduleDrawable, scrollBy, scrollTo, sendAccessibilityEvent, sendAccessibilityEventUnchecked, setAccessibilityDelegate, setAccessibilityLiveRegion, setAccessibilityTraversalAfter, setAccessibilityTraversalBefore, setActivated, setAlpha, setAnimation, setBackground, setBackgroundColor, setBackgroundDrawable, setBackgroundResource, setBackgroundTintList, setBackgroundTintMode, setBottom, setCameraDistance, setClickable, setClipBounds, setClipToOutline, setContentDescription, setDrawingCacheBackgroundColor, setDrawingCacheEnabled, setDrawingCacheQuality, setDuplicateParentStateEnabled, setElevation, setEnabled, setFadingEdgeLength, setFilterTouchesWhenObscured, setFitsSystemWindows, setFocusable, setFocusableInTouchMode, setHapticFeedbackEnabled, setHasTransientState, setHorizontalFadingEdgeEnabled, setHorizontalScrollBarEnabled, setHovered, setId, setImportantForAccessibility, setKeepScreenOn, setLabelFor, setLayerPaint, setLayerType, setLayoutDirection, setLayoutParams, setLeft, setLongClickable, setMeasuredDimension, setMinimumHeight, setMinimumWidth, setNestedScrollingEnabled, setNextFocusDownId, setNextFocusForwardId, setNextFocusLeftId, setNextFocusRightId, setNextFocusUpId, setOnApplyWindowInsetsListener, setOnClickListener, setOnCreateContextMenuListener, setOnDragListener, setOnFocusChangeListener, setOnGenericMotionListener, setOnHoverListener, setOnKeyListener, setOnLongClickListener, setOnSystemUiVisibilityChangeListener, setOnTouchListener, setOutlineProvider, setOverScrollMode, setPadding, setPaddingRelative, setPivotX, setPivotY, setPressed, setRight, setRotation, setRotationX, setRotationY, setSaveEnabled, setSaveFromParentEnabled, setScaleX, setScaleY, setScrollBarDefaultDelayBeforeFade, setScrollBarFadeDuration, setScrollbarFadingEnabled, setScrollBarSize, setScrollBarStyle, setScrollContainer, setScrollX, setScrollY, setSelected, setSoundEffectsEnabled, setStateListAnimator, setSystemUiVisibility, setTag, setTag, setTextAlignment, setTextDirection, setTop, setTouchDelegate, setTransitionName, setTranslationX, setTranslationY, setTranslationZ, setVerticalFadingEdgeEnabled, setVerticalScrollBarEnabled, setVerticalScrollbarPosition, setVisibility, setWillNotCacheDrawing, setWillNotDraw, setX, setY, setZ, showContextMenu, startActionMode, startAnimation, startDrag, startNestedScroll, stopNestedScroll, toString, unscheduleDrawable, unscheduleDrawable, verifyDrawable, willNotCacheDrawing, willNotDrawclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcanResolveLayoutDirection, canResolveTextAlignment, canResolveTextDirection, createContextMenu, getLayoutDirection, getParent, getParentForAccessibility, getTextAlignment, getTextDirection, isLayoutDirectionResolved, isLayoutRequested, isTextAlignmentResolved, isTextDirectionResolved, requestFitSystemWindowspublic static final java.lang.String TAG
public static final boolean DEBUG
public TutorialLayout(android.content.Context context)
public TutorialLayout(android.content.Context context,
android.util.AttributeSet attrs)
public TutorialLayout(android.content.Context context,
android.util.AttributeSet attrs,
int defStyleAttr)
public AbstractTutorialView getTutorialView()
public void setViewToSurround(android.view.View mViewToSurround)
TutorialViewInterfacesetViewToSurround in interface TutorialViewInterfacemViewToSurround - - the view that need to be surrounded with the tutorial.public void setViewToSurround(android.view.View mViewToSurround,
java.lang.String title)
TutorialViewInterfacesetViewToSurround in interface TutorialViewInterfacemViewToSurround - - the view that need to be surrounded with the tutorial.title - - the text of the title that will be used for the tutorial, If an action bar is assign the title will be in the action bar title.public void setPositionToSurround(float positionToSurroundX,
float positionToSurroundY,
int positionToSurroundWidth,
int positionToSurroundHeight)
TutorialViewInterfacesetPositionToSurround in interface TutorialViewInterfacepositionToSurroundX - - The x position of the area that should be surrounded, This could be obtained by using getX() on the view you want to surround.positionToSurroundY - - The y position of the area that should be surrounded, This could be obtained by using getY() on the view you want to surround.positionToSurroundWidth - - The width of the area that should be surrounded, This could be obtained by using getMeasuredWidth() on the view you want to surround.positionToSurroundHeight - - The height of the area that should be surrounded, This could be obtained by using getMeasuredHeight() on the view you want to surround.public void setPositionToSurround(float positionToSurroundX,
float positionToSurroundY,
int positionToSurroundWidth,
int positionToSurroundHeight,
java.lang.String title)
TutorialViewInterfacesetPositionToSurround in interface TutorialViewInterfacepositionToSurroundX - - The x position of the area that should be surrounded, This could be obtained by using getX() on the view you want to surround.positionToSurroundY - - The y position of the area that should be surrounded, This could be obtained by using getY() on the view you want to surround.positionToSurroundWidth - - The width of the area that should be surrounded, This could be obtained by using getMeasuredWidth() on the view you want to surround.positionToSurroundHeight - - The height of the area that should be surrounded, This could be obtained by using getMeasuredHeight() on the view you want to surround.title - - The title text that will be used for this tutorial.public void setTutorial(Tutorial tutorial, boolean show)
TutorialViewInterfacesetTutorial in interface TutorialViewInterfacetutorial - The tutorial object that hold all the tutorial data.show - pass true if you want the tutorial to be shown.public void setTutorial(Tutorial tutorial)
TutorialViewInterfacesetTutorial in interface TutorialViewInterfacetutorial - The tutorial object that hold all the tutorial data.public void setTutorialInfoLayoutId(int tutorialInfoLayoutId)
TutorialInterfacesetTutorialInfoLayoutId in interface TutorialInterfacetutorialInfoLayoutId - the id of the layout that should be used for the info text.public int getTutorialInfoLayoutId()
getTutorialInfoLayoutId in interface TutorialInterfacepublic void setActionBar(android.app.ActionBar actionBar)
TutorialViewInterfacesetActionBar in interface TutorialViewInterfaceTutorialViewInterface.setActionBarRestoreColor(int),
TutorialViewInterface.changeActionBarColor(boolean)public void setTutorialClosedListener(AbstractTutorialView.TutorialClosedListener tutorialClosedListener)
WalkThroughListener instead.setTutorialClosedListener in interface TutorialViewInterfacesetWalkThroughListener(com.braunster.tutorialview.view.TutorialLayout.WalkThroughListener)public void setTutorialBackgroundColor(int mTutorialBackgroundColor)
TutorialInterfacesetTutorialBackgroundColor in interface TutorialInterfacemTutorialBackgroundColor - the backgrond color to use for the backgroundpublic int getTutorialBackgroundColor()
getTutorialBackgroundColor in interface TutorialInterfacepublic void changeActionBarColor(boolean mChangeActionBarColor)
TutorialViewInterfacemActionBarRestoreColor so when the tutorial is closed the action bar color will ber restored.changeActionBarColor in interface TutorialViewInterfaceAbstractTutorialView.setActionBarRestoreColor(int)public void setActionBarRestoreColor(int mActionBarColor)
TutorialViewInterfacesetActionBarRestoreColor in interface TutorialViewInterfaceAbstractTutorialView.changeActionBarColor(boolean)public void setHasStatusBar(boolean hasStatusBar)
TutorialViewInterfacesetHasStatusBar in interface TutorialViewInterfacepublic void setHasActionBar(boolean hasActionBar)
TutorialViewInterfacesetHasActionBar in interface TutorialViewInterfacepublic void setTutorialText(java.lang.String tutorialText)
TutorialInterfacemTutorialInfoView.
Only if the layout that is used is the default layout com.braunster.tutorialview.R.layout#tutorial_text.setTutorialText in interface TutorialInterfacetutorialText - The explenation text about the view.AbstractTutorialView.setTutorialTextTypeFace(String),
AbstractTutorialView.setTutorialTextColor(int),
AbstractTutorialView.setTutorialTextSize(int)public java.lang.String getTutorialText()
getTutorialText 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 int getTutorialTextSize()
getTutorialTextSize 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 getTutorialTextColor()
getTutorialTextColor in interface TutorialInterfacepublic void setTutorialTextTypeFace(java.lang.String tutorialTextTypeFaceName)
setTutorialTextTypeFace in interface TutorialInterfacetutorialTextTypeFaceName - 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 void setAnimationType(AbstractTutorialView.AnimationType mAnimationType)
setAnimationType in interface TutorialInterfacemAnimationType - the animation type that will be used to show and hide the tutorial.public AbstractTutorialView.AnimationType getAnimationType()
getAnimationType in interface TutorialInterfacepublic void setAnimationDuration(long duration)
setAnimationDuration in interface TutorialInterfaceduration - the time that will be used for the animationpublic 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 boolean isShowing()
isShowing in interface TutorialViewInterfacepublic void closeTutorial()
public void setWalkThroughListener(TutorialLayout.WalkThroughListener walkThroughListener)
public void nextTutorial(Tutorial tutorial)
WalkThroughInterfacenextTutorial in interface WalkThroughInterfacepublic void skip()
WalkThroughInterfaceskip in interface WalkThroughInterfacepublic void setWalkThroughData(java.util.ArrayList<Tutorial> tutorials)
WalkThroughInterfacesetWalkThroughData in interface WalkThroughInterfacepublic boolean isWalkThrough()
isWalkThrough in interface TutorialViewInterfacepublic void show()
show in interface TutorialViewInterfacepublic void hide()
hide in interface TutorialViewInterfacepublic void startWalkThrough()
WalkThroughInterfacestartWalkThrough in interface WalkThroughInterface