code stringlengths 23 201k | docstring stringlengths 17 96.2k | func_name stringlengths 0 235 | language stringclasses 1
value | repo stringlengths 8 72 | path stringlengths 11 317 | url stringlengths 57 377 | license stringclasses 7
values |
|---|---|---|---|---|---|---|---|
public void load(@StyleRes int themeResId)
{
//Attempt to load the theme from the activity theme
if (themeResId == 0)
{
final TypedValue outValue = new TypedValue();
mResourceFinder.getTheme().resolveAttribute(R.attr.MaterialTapTargetPromptTheme, outValue, true);
... | Loads the supplied theme into the prompt overwriting any previously set values if they are set in the theme.
@param themeResId The resource id for the theme. | load | java | sjwall/MaterialTapTargetPrompt | library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/extras/PromptOptions.java | https://github.com/sjwall/MaterialTapTargetPrompt/blob/master/library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/extras/PromptOptions.java | Apache-2.0 |
@NonNull
public ResourceFinder getResourceFinder()
{
return mResourceFinder;
} | Get the resource finder being used.
@return The resource finder being used. | getResourceFinder | java | sjwall/MaterialTapTargetPrompt | library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/extras/PromptOptions.java | https://github.com/sjwall/MaterialTapTargetPrompt/blob/master/library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/extras/PromptOptions.java | Apache-2.0 |
@NonNull
public T setTarget(@Nullable final View target)
{
mTargetView = target;
mTargetPosition = null;
mTargetSet = mTargetView != null;
return (T) this;
} | Set the view for the prompt to focus on.
@param target The view that the prompt will highlight.
@return This Builder object to allow for chaining of calls to set methods | setTarget | java | sjwall/MaterialTapTargetPrompt | library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/extras/PromptOptions.java | https://github.com/sjwall/MaterialTapTargetPrompt/blob/master/library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/extras/PromptOptions.java | Apache-2.0 |
@NonNull
public T setTarget(@IdRes final int target)
{
mTargetView = mResourceFinder.findViewById(target);
mTargetPosition = null;
mTargetSet = mTargetView != null;
return (T) this;
} | Set the view for the prompt to focus on using the given resource id.
@param target The view that the prompt will highlight.
@return This Builder object to allow for chaining of calls to set methods | setTarget | java | sjwall/MaterialTapTargetPrompt | library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/extras/PromptOptions.java | https://github.com/sjwall/MaterialTapTargetPrompt/blob/master/library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/extras/PromptOptions.java | Apache-2.0 |
@Nullable
public View getTargetView()
{
return mTargetView;
} | Gets the view that the prompt is targeting.
@return The target view or null if not set or targeting a position. | getTargetView | java | sjwall/MaterialTapTargetPrompt | library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/extras/PromptOptions.java | https://github.com/sjwall/MaterialTapTargetPrompt/blob/master/library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/extras/PromptOptions.java | Apache-2.0 |
@NonNull
public T setTarget(final float left, final float top)
{
mTargetView = null;
mTargetPosition = new PointF(left, top);
mTargetSet = true;
return (T) this;
} | Set the centre point as a screen position
@param left Centre point from screen left
@param top Centre point from screen top
@return This Builder object to allow for chaining of calls to set methods | setTarget | java | sjwall/MaterialTapTargetPrompt | library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/extras/PromptOptions.java | https://github.com/sjwall/MaterialTapTargetPrompt/blob/master/library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/extras/PromptOptions.java | Apache-2.0 |
@Nullable
public PointF getTargetPosition()
{
return mTargetPosition;
} | Get the position on the screen that is being targeted.
@return The target position or null if targeting a view. | getTargetPosition | java | sjwall/MaterialTapTargetPrompt | library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/extras/PromptOptions.java | https://github.com/sjwall/MaterialTapTargetPrompt/blob/master/library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/extras/PromptOptions.java | Apache-2.0 |
@NonNull
public T setTargetRenderView(@Nullable final View view)
{
mTargetRenderView = view;
return (T) this;
} | Change the view that is rendered as the target.
By default the view from {@link #setTarget(View)} is rendered as the target.
@param view The view to use to render the prompt target
@return This Builder object to allow for chaining of calls to set methods | setTargetRenderView | java | sjwall/MaterialTapTargetPrompt | library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/extras/PromptOptions.java | https://github.com/sjwall/MaterialTapTargetPrompt/blob/master/library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/extras/PromptOptions.java | Apache-2.0 |
@Nullable
public View getTargetRenderView()
{
return mTargetRenderView;
} | Get the view that is rendered as the target.
@return The view used to render the prompt target. | getTargetRenderView | java | sjwall/MaterialTapTargetPrompt | library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/extras/PromptOptions.java | https://github.com/sjwall/MaterialTapTargetPrompt/blob/master/library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/extras/PromptOptions.java | Apache-2.0 |
public boolean isTargetSet()
{
return mTargetSet;
} | Has the target been set successfully?
@return True if set successfully. | isTargetSet | java | sjwall/MaterialTapTargetPrompt | library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/extras/PromptOptions.java | https://github.com/sjwall/MaterialTapTargetPrompt/blob/master/library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/extras/PromptOptions.java | Apache-2.0 |
@NonNull
public T setPrimaryText(@StringRes final int resId)
{
mPrimaryText = mResourceFinder.getString(resId);
return (T) this;
} | Set the primary text using the given resource id.
@param resId The string resource id for the primary text
@return This Builder object to allow for chaining of calls to set methods | setPrimaryText | java | sjwall/MaterialTapTargetPrompt | library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/extras/PromptOptions.java | https://github.com/sjwall/MaterialTapTargetPrompt/blob/master/library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/extras/PromptOptions.java | Apache-2.0 |
@NonNull
public T setPrimaryText(@Nullable final String text)
{
mPrimaryText = text;
return (T) this;
} | Set the primary text to the given string
@param text The primary text
@return This Builder object to allow for chaining of calls to set methods | setPrimaryText | java | sjwall/MaterialTapTargetPrompt | library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/extras/PromptOptions.java | https://github.com/sjwall/MaterialTapTargetPrompt/blob/master/library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/extras/PromptOptions.java | Apache-2.0 |
@NonNull
public T setPrimaryText(@Nullable final CharSequence text)
{
mPrimaryText = text;
return (T) this;
} | Set the primary text to the given CharSequence.
It is recommended that you don't go crazy with custom Spannables.
@param text The primary text as CharSequence
@return This Builder object to allow for chaining of calls to set methods | setPrimaryText | java | sjwall/MaterialTapTargetPrompt | library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/extras/PromptOptions.java | https://github.com/sjwall/MaterialTapTargetPrompt/blob/master/library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/extras/PromptOptions.java | Apache-2.0 |
@Nullable
public CharSequence getPrimaryText()
{
return mPrimaryText;
} | Get the text to draw for the primary text.
@return The primary text. | getPrimaryText | java | sjwall/MaterialTapTargetPrompt | library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/extras/PromptOptions.java | https://github.com/sjwall/MaterialTapTargetPrompt/blob/master/library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/extras/PromptOptions.java | Apache-2.0 |
@NonNull
public T setPrimaryTextSize(@Dimension final float size)
{
mPrimaryTextSize = size;
return (T) this;
} | Set the primary text font size.
@param size The primary text font size
@return This Builder object to allow for chaining of calls to set methods | setPrimaryTextSize | java | sjwall/MaterialTapTargetPrompt | library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/extras/PromptOptions.java | https://github.com/sjwall/MaterialTapTargetPrompt/blob/master/library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/extras/PromptOptions.java | Apache-2.0 |
@NonNull
public T setPrimaryTextSize(@DimenRes final int resId)
{
mPrimaryTextSize = mResourceFinder.getResources().getDimension(resId);
return (T) this;
} | Set the primary text font size using the given resource id.
@param resId The resource id for the primary text size
@return This Builder object to allow for chaining of calls to set methods | setPrimaryTextSize | java | sjwall/MaterialTapTargetPrompt | library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/extras/PromptOptions.java | https://github.com/sjwall/MaterialTapTargetPrompt/blob/master/library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/extras/PromptOptions.java | Apache-2.0 |
@Dimension
public float getPrimaryTextSize()
{
return mPrimaryTextSize;
} | Get the primary text font size.
@return The primary text font size. | getPrimaryTextSize | java | sjwall/MaterialTapTargetPrompt | library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/extras/PromptOptions.java | https://github.com/sjwall/MaterialTapTargetPrompt/blob/master/library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/extras/PromptOptions.java | Apache-2.0 |
@NonNull
public T setPrimaryTextColour(@ColorInt final int colour)
{
mPrimaryTextColour = colour;
return (T) this;
} | Set the primary text colour.
@param colour The primary text colour resource id
@return This Builder object to allow for chaining of calls to set methods | setPrimaryTextColour | java | sjwall/MaterialTapTargetPrompt | library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/extras/PromptOptions.java | https://github.com/sjwall/MaterialTapTargetPrompt/blob/master/library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/extras/PromptOptions.java | Apache-2.0 |
@ColorInt
public int getPrimaryTextColour()
{
return mPrimaryTextColour;
} | Gets the primary text font colour.
@return The primary text font colour. | getPrimaryTextColour | java | sjwall/MaterialTapTargetPrompt | library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/extras/PromptOptions.java | https://github.com/sjwall/MaterialTapTargetPrompt/blob/master/library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/extras/PromptOptions.java | Apache-2.0 |
@NonNull
public T setPrimaryTextTypeface(@Nullable final Typeface typeface)
{
return setPrimaryTextTypeface(typeface, 0);
} | Sets the typeface and style used to display the primary text.
@param typeface The primary text typeface | setPrimaryTextTypeface | java | sjwall/MaterialTapTargetPrompt | library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/extras/PromptOptions.java | https://github.com/sjwall/MaterialTapTargetPrompt/blob/master/library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/extras/PromptOptions.java | Apache-2.0 |
@NonNull
public T setPrimaryTextTypeface(@Nullable final Typeface typeface, final int style)
{
mPrimaryTextTypeface = typeface;
mPrimaryTextTypefaceStyle = style;
return (T) this;
} | Sets the typeface used to display the primary text.
@param typeface The primary text typeface
@param style The typeface style
@return This Builder object to allow for chaining of calls to set methods | setPrimaryTextTypeface | java | sjwall/MaterialTapTargetPrompt | library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/extras/PromptOptions.java | https://github.com/sjwall/MaterialTapTargetPrompt/blob/master/library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/extras/PromptOptions.java | Apache-2.0 |
@Nullable
public Typeface getPrimaryTextTypeface()
{
return mPrimaryTextTypeface;
} | Get the typeface for the primary text.
@return The primary text typeface. | getPrimaryTextTypeface | java | sjwall/MaterialTapTargetPrompt | library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/extras/PromptOptions.java | https://github.com/sjwall/MaterialTapTargetPrompt/blob/master/library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/extras/PromptOptions.java | Apache-2.0 |
public int getPrimaryTextTypefaceStyle()
{
return mPrimaryTextTypefaceStyle;
} | Get the primary text typeface style.
@return the primary text typeface style. | getPrimaryTextTypefaceStyle | java | sjwall/MaterialTapTargetPrompt | library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/extras/PromptOptions.java | https://github.com/sjwall/MaterialTapTargetPrompt/blob/master/library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/extras/PromptOptions.java | Apache-2.0 |
@NonNull
public T setSecondaryText(@StringRes final int resId)
{
mSecondaryText = mResourceFinder.getString(resId);
return (T) this;
} | Set the secondary text using the given resource id.
@param resId The secondary text resource id
@return This Builder object to allow for chaining of calls to set methods | setSecondaryText | java | sjwall/MaterialTapTargetPrompt | library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/extras/PromptOptions.java | https://github.com/sjwall/MaterialTapTargetPrompt/blob/master/library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/extras/PromptOptions.java | Apache-2.0 |
@NonNull
public T setSecondaryText(@Nullable final String text)
{
mSecondaryText = text;
return (T) this;
} | Set the secondary text.
@param text The secondary text
@return This Builder object to allow for chaining of calls to set methods | setSecondaryText | java | sjwall/MaterialTapTargetPrompt | library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/extras/PromptOptions.java | https://github.com/sjwall/MaterialTapTargetPrompt/blob/master/library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/extras/PromptOptions.java | Apache-2.0 |
@NonNull
public T setSecondaryText(@Nullable final CharSequence text)
{
mSecondaryText = text;
return (T) this;
} | Set the secondary text.
It is recommended that you don't go crazy with custom Spannables.
@param text The secondary text as a CharSequence
@return This Builder object to allow for chaining of calls to set methods | setSecondaryText | java | sjwall/MaterialTapTargetPrompt | library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/extras/PromptOptions.java | https://github.com/sjwall/MaterialTapTargetPrompt/blob/master/library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/extras/PromptOptions.java | Apache-2.0 |
@Nullable
public CharSequence getSecondaryText()
{
return mSecondaryText;
} | Get the secondary text.
@return The secondary text. | getSecondaryText | java | sjwall/MaterialTapTargetPrompt | library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/extras/PromptOptions.java | https://github.com/sjwall/MaterialTapTargetPrompt/blob/master/library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/extras/PromptOptions.java | Apache-2.0 |
@NonNull
public T setSecondaryTextSize(@DimenRes final int resId)
{
mSecondaryTextSize = mResourceFinder.getResources().getDimension(resId);
return (T) this;
} | Set the secondary text font size using the give resource id.
@param resId The secondary text string resource id
@return This Builder object to allow for chaining of calls to set methods | setSecondaryTextSize | java | sjwall/MaterialTapTargetPrompt | library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/extras/PromptOptions.java | https://github.com/sjwall/MaterialTapTargetPrompt/blob/master/library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/extras/PromptOptions.java | Apache-2.0 |
@NonNull
public T setSecondaryTextSize(@Dimension final float size)
{
mSecondaryTextSize = size;
return (T) this;
} | Set the secondary text font size.
@param size The secondary text font size
@return This Builder object to allow for chaining of calls to set methods | setSecondaryTextSize | java | sjwall/MaterialTapTargetPrompt | library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/extras/PromptOptions.java | https://github.com/sjwall/MaterialTapTargetPrompt/blob/master/library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/extras/PromptOptions.java | Apache-2.0 |
@Dimension
public float getSecondaryTextSize()
{
return mSecondaryTextSize;
} | Get the secondary text size.
@return The secondary text size. | getSecondaryTextSize | java | sjwall/MaterialTapTargetPrompt | library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/extras/PromptOptions.java | https://github.com/sjwall/MaterialTapTargetPrompt/blob/master/library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/extras/PromptOptions.java | Apache-2.0 |
@NonNull
public T setSecondaryTextColour(@ColorInt final int colour)
{
mSecondaryTextColour = colour;
return (T) this;
} | Set the secondary text colour.
@param colour The secondary text colour resource id
@return This Builder object to allow for chaining of calls to set methods | setSecondaryTextColour | java | sjwall/MaterialTapTargetPrompt | library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/extras/PromptOptions.java | https://github.com/sjwall/MaterialTapTargetPrompt/blob/master/library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/extras/PromptOptions.java | Apache-2.0 |
public int getSecondaryTextColour()
{
return mSecondaryTextColour;
} | Get the secondary text colour.
@return The secondary text colour. | getSecondaryTextColour | java | sjwall/MaterialTapTargetPrompt | library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/extras/PromptOptions.java | https://github.com/sjwall/MaterialTapTargetPrompt/blob/master/library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/extras/PromptOptions.java | Apache-2.0 |
@NonNull
public T setSecondaryTextTypeface(@Nullable final Typeface typeface)
{
return setSecondaryTextTypeface(typeface, 0);
} | Sets the typeface used to display the secondary text.
@param typeface The secondary text typeface | setSecondaryTextTypeface | java | sjwall/MaterialTapTargetPrompt | library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/extras/PromptOptions.java | https://github.com/sjwall/MaterialTapTargetPrompt/blob/master/library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/extras/PromptOptions.java | Apache-2.0 |
@NonNull
public T setSecondaryTextTypeface(@Nullable final Typeface typeface, final int style)
{
mSecondaryTextTypeface = typeface;
mSecondaryTextTypefaceStyle = style;
return (T) this;
} | Sets the typeface and style used to display the secondary text.
@param typeface The secondary text typeface
@param style The typeface style
@return This Builder object to allow for chaining of calls to set methods | setSecondaryTextTypeface | java | sjwall/MaterialTapTargetPrompt | library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/extras/PromptOptions.java | https://github.com/sjwall/MaterialTapTargetPrompt/blob/master/library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/extras/PromptOptions.java | Apache-2.0 |
@Nullable
public Typeface getSecondaryTextTypeface()
{
return mSecondaryTextTypeface;
} | Get the secondary text typeface.
@return The secondary text typeface. | getSecondaryTextTypeface | java | sjwall/MaterialTapTargetPrompt | library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/extras/PromptOptions.java | https://github.com/sjwall/MaterialTapTargetPrompt/blob/master/library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/extras/PromptOptions.java | Apache-2.0 |
public int getSecondaryTextTypefaceStyle()
{
return mSecondaryTextTypefaceStyle;
} | Get the secondary text typeface style.
@return The secondary text typeface style. | getSecondaryTextTypefaceStyle | java | sjwall/MaterialTapTargetPrompt | library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/extras/PromptOptions.java | https://github.com/sjwall/MaterialTapTargetPrompt/blob/master/library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/extras/PromptOptions.java | Apache-2.0 |
@NonNull
public T setContentDescription(@StringRes final int resId)
{
mContentDescription = mResourceFinder.getString(resId);
return (T) this;
} | Set the accessibility content description text using the given resource id.
@param resId The string resource id for the accessibility content description text
@return This Builder object to allow for chaining of calls to set methods | setContentDescription | java | sjwall/MaterialTapTargetPrompt | library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/extras/PromptOptions.java | https://github.com/sjwall/MaterialTapTargetPrompt/blob/master/library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/extras/PromptOptions.java | Apache-2.0 |
@NonNull
public T setContentDescription(@Nullable final String text)
{
mContentDescription = text;
return (T) this;
} | Set the accessibility content description text to the given string
@param text The accessibility content description text
@return This Builder object to allow for chaining of calls to set methods | setContentDescription | java | sjwall/MaterialTapTargetPrompt | library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/extras/PromptOptions.java | https://github.com/sjwall/MaterialTapTargetPrompt/blob/master/library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/extras/PromptOptions.java | Apache-2.0 |
@Nullable
public String getContentDescription()
{
if (mContentDescription != null)
{
return mContentDescription;
}
else
{
return String.format("%s. %s", mPrimaryText, mSecondaryText);
}
} | Get the text for the accessibility content description.
Defaults to a concatenation of primary and secondary texts.
@return The accessibility content description text. | getContentDescription | java | sjwall/MaterialTapTargetPrompt | library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/extras/PromptOptions.java | https://github.com/sjwall/MaterialTapTargetPrompt/blob/master/library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/extras/PromptOptions.java | Apache-2.0 |
@NonNull
public T setTextPadding(@DimenRes final int resId)
{
mTextPadding = mResourceFinder.getResources().getDimension(resId);
return (T) this;
} | Set the text left and right padding using the given resource id.
@param resId The text padding dimension resource id
@return This Builder object to allow for chaining of calls to set methods | setTextPadding | java | sjwall/MaterialTapTargetPrompt | library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/extras/PromptOptions.java | https://github.com/sjwall/MaterialTapTargetPrompt/blob/master/library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/extras/PromptOptions.java | Apache-2.0 |
@NonNull
public T setTextPadding(@Dimension final float padding)
{
mTextPadding = padding;
return (T) this;
} | Set the text left and right padding.
@param padding The padding on the text left and right
@return This Builder object to allow for chaining of calls to set methods | setTextPadding | java | sjwall/MaterialTapTargetPrompt | library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/extras/PromptOptions.java | https://github.com/sjwall/MaterialTapTargetPrompt/blob/master/library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/extras/PromptOptions.java | Apache-2.0 |
@Dimension
public float getTextPadding()
{
return mTextPadding;
} | Get the text left and right padding.
@return The text left and right padding. | getTextPadding | java | sjwall/MaterialTapTargetPrompt | library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/extras/PromptOptions.java | https://github.com/sjwall/MaterialTapTargetPrompt/blob/master/library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/extras/PromptOptions.java | Apache-2.0 |
@NonNull
public T setTextSeparation(@DimenRes final int resId)
{
mTextSeparation = mResourceFinder.getResources().getDimension(resId);
return (T) this;
} | Set the distance between the primary and secondary text using the given resource id.
@param resId The dimension resource id for the text separation
@return This Builder object to allow for chaining of calls to set methods | setTextSeparation | java | sjwall/MaterialTapTargetPrompt | library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/extras/PromptOptions.java | https://github.com/sjwall/MaterialTapTargetPrompt/blob/master/library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/extras/PromptOptions.java | Apache-2.0 |
@NonNull
public T setTextSeparation(@Dimension final float separation)
{
mTextSeparation = separation;
return (T) this;
} | Set the distance between the primary and secondary text.
@param separation The distance separation between the primary and secondary text
@return This Builder object to allow for chaining of calls to set methods | setTextSeparation | java | sjwall/MaterialTapTargetPrompt | library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/extras/PromptOptions.java | https://github.com/sjwall/MaterialTapTargetPrompt/blob/master/library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/extras/PromptOptions.java | Apache-2.0 |
@Dimension
public float getTextSeparation()
{
return mTextSeparation;
} | Get the distance between the primary and secondary text.
@return the distance between the primary and secondary text. | getTextSeparation | java | sjwall/MaterialTapTargetPrompt | library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/extras/PromptOptions.java | https://github.com/sjwall/MaterialTapTargetPrompt/blob/master/library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/extras/PromptOptions.java | Apache-2.0 |
@NonNull
public T setFocalPadding(@DimenRes final int resId)
{
mFocalPadding = mResourceFinder.getResources().getDimension(resId);
return (T) this;
} | Set the padding between the text and the focal point using the given resource id.
@param resId The dimension resource id for the focal to text distance
@return This Builder object to allow for chaining of calls to set methods | setFocalPadding | java | sjwall/MaterialTapTargetPrompt | library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/extras/PromptOptions.java | https://github.com/sjwall/MaterialTapTargetPrompt/blob/master/library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/extras/PromptOptions.java | Apache-2.0 |
@NonNull
public T setFocalPadding(@Dimension final float padding)
{
mFocalPadding = padding;
return (T) this;
} | Set the padding between the text and the focal point.
@param padding The distance between the text and focal
@return This Builder object to allow for chaining of calls to set methods | setFocalPadding | java | sjwall/MaterialTapTargetPrompt | library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/extras/PromptOptions.java | https://github.com/sjwall/MaterialTapTargetPrompt/blob/master/library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/extras/PromptOptions.java | Apache-2.0 |
@Dimension
public float getFocalPadding()
{
return mFocalPadding;
} | Get the padding between the text and the focal.
@return The padding between the text and the focal. | getFocalPadding | java | sjwall/MaterialTapTargetPrompt | library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/extras/PromptOptions.java | https://github.com/sjwall/MaterialTapTargetPrompt/blob/master/library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/extras/PromptOptions.java | Apache-2.0 |
@NonNull
public T setAnimationInterpolator(@Nullable final Interpolator interpolator)
{
mAnimationInterpolator = interpolator;
return (T) this;
} | Set the interpolator to use in animations.
@param interpolator The animation interpolator to use
@return This Builder object to allow for chaining of calls to set methods | setAnimationInterpolator | java | sjwall/MaterialTapTargetPrompt | library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/extras/PromptOptions.java | https://github.com/sjwall/MaterialTapTargetPrompt/blob/master/library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/extras/PromptOptions.java | Apache-2.0 |
@Nullable
public Interpolator getAnimationInterpolator()
{
return mAnimationInterpolator;
} | Get the animation interpolator that is used.
@return The animation interpolator that is used. | getAnimationInterpolator | java | sjwall/MaterialTapTargetPrompt | library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/extras/PromptOptions.java | https://github.com/sjwall/MaterialTapTargetPrompt/blob/master/library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/extras/PromptOptions.java | Apache-2.0 |
@NonNull
public T setIdleAnimationEnabled(final boolean enabled)
{
mIdleAnimationEnabled = enabled;
return (T) this;
} | Enable/disable focal animation.
true by default
@param enabled Idle animation enabled
@return This Builder object to allow for chaining of calls to set methods | setIdleAnimationEnabled | java | sjwall/MaterialTapTargetPrompt | library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/extras/PromptOptions.java | https://github.com/sjwall/MaterialTapTargetPrompt/blob/master/library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/extras/PromptOptions.java | Apache-2.0 |
public boolean getIdleAnimationEnabled()
{
return mIdleAnimationEnabled;
} | Is the focal animation enabled.
@return True if the idle animation is enabled. | getIdleAnimationEnabled | java | sjwall/MaterialTapTargetPrompt | library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/extras/PromptOptions.java | https://github.com/sjwall/MaterialTapTargetPrompt/blob/master/library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/extras/PromptOptions.java | Apache-2.0 |
@NonNull
public T setIcon(@DrawableRes final int resId)
{
mIconDrawable = mResourceFinder.getDrawable(resId);
return (T) this;
} | Set the icon to draw in the focal point using the given resource id.
@param resId The drawable resource id for the icon
@return This Builder object to allow for chaining of calls to set methods | setIcon | java | sjwall/MaterialTapTargetPrompt | library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/extras/PromptOptions.java | https://github.com/sjwall/MaterialTapTargetPrompt/blob/master/library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/extras/PromptOptions.java | Apache-2.0 |
@NonNull
public T setIconDrawable(@Nullable final Drawable drawable)
{
mIconDrawable = drawable;
return (T) this;
} | Set the icon to draw in the focal point.
@param drawable The drawable for the icon
@return This Builder object to allow for chaining of calls to set methods | setIconDrawable | java | sjwall/MaterialTapTargetPrompt | library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/extras/PromptOptions.java | https://github.com/sjwall/MaterialTapTargetPrompt/blob/master/library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/extras/PromptOptions.java | Apache-2.0 |
@Nullable
public Drawable getIconDrawable()
{
return mIconDrawable;
} | Get the icon drawn as the target.
@return The icon drawn as the target. | getIconDrawable | java | sjwall/MaterialTapTargetPrompt | library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/extras/PromptOptions.java | https://github.com/sjwall/MaterialTapTargetPrompt/blob/master/library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/extras/PromptOptions.java | Apache-2.0 |
@NonNull
public T setIconDrawableTintList(@Nullable ColorStateList tint)
{
mIconDrawableTintList = tint;
mHasIconDrawableTint = tint != null;
return (T) this;
} | Applies a tint to the icon drawable
@param tint the tint to apply to the icon drawable, {@code null} will remove the tint.
@return This Builder object to allow for chaining of calls to set methods | setIconDrawableTintList | java | sjwall/MaterialTapTargetPrompt | library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/extras/PromptOptions.java | https://github.com/sjwall/MaterialTapTargetPrompt/blob/master/library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/extras/PromptOptions.java | Apache-2.0 |
@NonNull
public T setIconDrawableTintMode(@Nullable PorterDuff.Mode tintMode)
{
mIconDrawableTintMode = tintMode;
if (tintMode == null)
{
mIconDrawableTintList = null;
mHasIconDrawableTint = false;
}
return (T) this;
} | Sets the PorterDuff mode to use to apply the tint.
@param tintMode the tint mode to use on the icon drawable, {@code null} will remove the
tint.
@return This Builder object to allow for chaining of calls to set methods | setIconDrawableTintMode | java | sjwall/MaterialTapTargetPrompt | library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/extras/PromptOptions.java | https://github.com/sjwall/MaterialTapTargetPrompt/blob/master/library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/extras/PromptOptions.java | Apache-2.0 |
@NonNull
public T setIconDrawableColourFilter(@ColorInt final int colour)
{
mIconDrawableColourFilter = colour;
mIconDrawableTintList = null;
mHasIconDrawableTint = true;
return (T) this;
} | Sets the colour to use to tint the icon drawable.
@param colour The colour to use to tint the icon drawable, call {@link
#setIconDrawableTintList(ColorStateList)} or {@link
#setIconDrawableTintMode(PorterDuff.Mode)} with {@code null} to remove the
tint.
@return This Builder ob... | setIconDrawableColourFilter | java | sjwall/MaterialTapTargetPrompt | library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/extras/PromptOptions.java | https://github.com/sjwall/MaterialTapTargetPrompt/blob/master/library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/extras/PromptOptions.java | Apache-2.0 |
@NonNull
public T setPromptStateChangeListener(
@Nullable final MaterialTapTargetPrompt.PromptStateChangeListener listener)
{
mPromptStateChangeListener = listener;
return (T) this;
} | Set the listener to listen for when the prompt state changes.
@param listener The listener to use
@return This Builder object to allow for chaining of calls to set methods | setPromptStateChangeListener | java | sjwall/MaterialTapTargetPrompt | library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/extras/PromptOptions.java | https://github.com/sjwall/MaterialTapTargetPrompt/blob/master/library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/extras/PromptOptions.java | Apache-2.0 |
public void setSequenceListener(
@Nullable final MaterialTapTargetPrompt.PromptStateChangeListener listener)
{
mSequencePromptStateChangeListener = listener;
} | Set the internal listener to listen for when the prompt state changes.
This does not return a builder is it's not intended to be user during the
creation of Prompts
@param listener The listener to use | setSequenceListener | java | sjwall/MaterialTapTargetPrompt | library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/extras/PromptOptions.java | https://github.com/sjwall/MaterialTapTargetPrompt/blob/master/library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/extras/PromptOptions.java | Apache-2.0 |
@NonNull
public T setCaptureTouchEventOnFocal(final boolean captureTouchEvent)
{
mCaptureTouchEventOnFocal = captureTouchEvent;
return (T) this;
} | Set if the prompt should stop touch events on the focal point from passing to underlying
views. Default is false.
@param captureTouchEvent True to capture touch events in the prompt
@return This Builder object to allow for chaining of calls to set methods | setCaptureTouchEventOnFocal | java | sjwall/MaterialTapTargetPrompt | library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/extras/PromptOptions.java | https://github.com/sjwall/MaterialTapTargetPrompt/blob/master/library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/extras/PromptOptions.java | Apache-2.0 |
public boolean getCaptureTouchEventOnFocal()
{
return mCaptureTouchEventOnFocal;
} | Get if the prompt should stop touch events on the focal point from passing to underlying
views.
@return True to capture touch events in the prompt | getCaptureTouchEventOnFocal | java | sjwall/MaterialTapTargetPrompt | library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/extras/PromptOptions.java | https://github.com/sjwall/MaterialTapTargetPrompt/blob/master/library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/extras/PromptOptions.java | Apache-2.0 |
@NonNull
public T setMaxTextWidth(@DimenRes final int resId)
{
mMaxTextWidth = mResourceFinder.getResources().getDimension(resId);
return (T) this;
} | Set the max width that the primary and secondary text can be using the given resource
id.
@param resId The dimension resource id for the max width that the text can reach
@return This Builder object to allow for chaining of calls to set methods | setMaxTextWidth | java | sjwall/MaterialTapTargetPrompt | library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/extras/PromptOptions.java | https://github.com/sjwall/MaterialTapTargetPrompt/blob/master/library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/extras/PromptOptions.java | Apache-2.0 |
@NonNull
public T setMaxTextWidth(@Dimension final float width)
{
mMaxTextWidth = width;
return (T) this;
} | Set the max width that the primary and secondary text can be.
@param width The max width that the text can reach
@return This Builder object to allow for chaining of calls to set methods | setMaxTextWidth | java | sjwall/MaterialTapTargetPrompt | library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/extras/PromptOptions.java | https://github.com/sjwall/MaterialTapTargetPrompt/blob/master/library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/extras/PromptOptions.java | Apache-2.0 |
@Dimension
public float getMaxTextWidth()
{
return mMaxTextWidth;
} | Get the maximum width that the primary and secondary text can be.
@return The maximum text width. | getMaxTextWidth | java | sjwall/MaterialTapTargetPrompt | library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/extras/PromptOptions.java | https://github.com/sjwall/MaterialTapTargetPrompt/blob/master/library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/extras/PromptOptions.java | Apache-2.0 |
@NonNull
public T setBackgroundColour(@ColorInt final int colour)
{
mBackgroundColour = colour;
return (T) this;
} | Set the background colour.
The Material Design Guidelines specify that this should be 244 or hex F4.
@param colour The background colour colour resource id
@return This Builder object to allow for chaining of calls to set methods | setBackgroundColour | java | sjwall/MaterialTapTargetPrompt | library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/extras/PromptOptions.java | https://github.com/sjwall/MaterialTapTargetPrompt/blob/master/library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/extras/PromptOptions.java | Apache-2.0 |
@ColorInt
public int getBackgroundColour()
{
return mBackgroundColour;
} | Get the background colour.
@return The background colour. | getBackgroundColour | java | sjwall/MaterialTapTargetPrompt | library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/extras/PromptOptions.java | https://github.com/sjwall/MaterialTapTargetPrompt/blob/master/library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/extras/PromptOptions.java | Apache-2.0 |
@NonNull
public T setFocalColour(@ColorInt final int colour)
{
mFocalColour = colour;
return (T) this;
} | Set the focal point colour.
@param colour The focal colour colour resource id
@return This Builder object to allow for chaining of calls to set methods | setFocalColour | java | sjwall/MaterialTapTargetPrompt | library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/extras/PromptOptions.java | https://github.com/sjwall/MaterialTapTargetPrompt/blob/master/library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/extras/PromptOptions.java | Apache-2.0 |
@ColorInt
public int getFocalColour()
{
return mFocalColour;
} | Get the focal point colour.
@return The focal point colour. | getFocalColour | java | sjwall/MaterialTapTargetPrompt | library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/extras/PromptOptions.java | https://github.com/sjwall/MaterialTapTargetPrompt/blob/master/library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/extras/PromptOptions.java | Apache-2.0 |
@NonNull
public T setFocalRadius(@DimenRes final int resId)
{
mFocalRadius = mResourceFinder.getResources().getDimension(resId);
return (T) this;
} | Set the focal point radius using the given resource id.
@param resId The focal radius dimension resource id
@return This Builder object to allow for chaining of calls to set methods | setFocalRadius | java | sjwall/MaterialTapTargetPrompt | library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/extras/PromptOptions.java | https://github.com/sjwall/MaterialTapTargetPrompt/blob/master/library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/extras/PromptOptions.java | Apache-2.0 |
@NonNull
public T setFocalRadius(@Dimension final float radius)
{
mFocalRadius = radius;
return (T) this;
} | Set the focal point radius.
@param radius The focal radius
@return This Builder object to allow for chaining of calls to set methods | setFocalRadius | java | sjwall/MaterialTapTargetPrompt | library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/extras/PromptOptions.java | https://github.com/sjwall/MaterialTapTargetPrompt/blob/master/library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/extras/PromptOptions.java | Apache-2.0 |
@Dimension
public float getFocalRadius()
{
return mFocalRadius;
} | Get the focal point radius for the circle prompt focal.
@return The radius used for the circle prompt focal. | getFocalRadius | java | sjwall/MaterialTapTargetPrompt | library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/extras/PromptOptions.java | https://github.com/sjwall/MaterialTapTargetPrompt/blob/master/library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/extras/PromptOptions.java | Apache-2.0 |
@NonNull
public T setAutoDismiss(final boolean autoDismiss)
{
mAutoDismiss = autoDismiss;
return (T) this;
} | Set whether the prompt should dismiss itself when a touch event occurs outside the focal.
Default is true.
Listen for the {@link MaterialTapTargetPrompt#STATE_NON_FOCAL_PRESSED} event in the
{@link #setPromptStateChangeListener(MaterialTapTargetPrompt.PromptStateChangeListener)} to handle the prompt
being pressed outs... | setAutoDismiss | java | sjwall/MaterialTapTargetPrompt | library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/extras/PromptOptions.java | https://github.com/sjwall/MaterialTapTargetPrompt/blob/master/library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/extras/PromptOptions.java | Apache-2.0 |
public boolean getAutoDismiss()
{
return mAutoDismiss;
} | Get whether the prompt should dismiss itself when a touch event occurs outside the focal.
@return True - prompt will dismiss when touched outside the focal, false - no
action taken. | getAutoDismiss | java | sjwall/MaterialTapTargetPrompt | library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/extras/PromptOptions.java | https://github.com/sjwall/MaterialTapTargetPrompt/blob/master/library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/extras/PromptOptions.java | Apache-2.0 |
@NonNull
public T setAutoFinish(final boolean autoFinish)
{
mAutoFinish = autoFinish;
return (T) this;
} | Set whether the prompt should finish itself when a touch event occurs inside the focal.
Default is true.
Listen for the {@link MaterialTapTargetPrompt#STATE_FOCAL_PRESSED} event in the
{@link #setPromptStateChangeListener(MaterialTapTargetPrompt.PromptStateChangeListener)} to handle the prompt
target being pressed.
@... | setAutoFinish | java | sjwall/MaterialTapTargetPrompt | library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/extras/PromptOptions.java | https://github.com/sjwall/MaterialTapTargetPrompt/blob/master/library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/extras/PromptOptions.java | Apache-2.0 |
public boolean getAutoFinish()
{
return mAutoFinish;
} | Get if the prompt should finish itself when a touch event occurs inside the focal.
@return True if the prompt should finish itself when a touch event occurs inside the focal. | getAutoFinish | java | sjwall/MaterialTapTargetPrompt | library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/extras/PromptOptions.java | https://github.com/sjwall/MaterialTapTargetPrompt/blob/master/library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/extras/PromptOptions.java | Apache-2.0 |
@NonNull
public T setCaptureTouchEventOutsidePrompt(
final boolean captureTouchEventOutsidePrompt)
{
mCaptureTouchEventOutsidePrompt = captureTouchEventOutsidePrompt;
return (T) this;
} | Set if the prompt should stop touch events outside the prompt from passing to underlying
views. Default is false.
@param captureTouchEventOutsidePrompt True to capture touch events out side the prompt
@return This Builder object to allow for chaining of calls to set methods | setCaptureTouchEventOutsidePrompt | java | sjwall/MaterialTapTargetPrompt | library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/extras/PromptOptions.java | https://github.com/sjwall/MaterialTapTargetPrompt/blob/master/library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/extras/PromptOptions.java | Apache-2.0 |
public boolean getCaptureTouchEventOutsidePrompt()
{
return mCaptureTouchEventOutsidePrompt;
} | Get if the prompt should stop touch events outside the prompt from passing to underlying views.
@return True if touch events will not be passed to views below the prompt. | getCaptureTouchEventOutsidePrompt | java | sjwall/MaterialTapTargetPrompt | library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/extras/PromptOptions.java | https://github.com/sjwall/MaterialTapTargetPrompt/blob/master/library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/extras/PromptOptions.java | Apache-2.0 |
@NonNull
public T setTextGravity(final int gravity)
{
mPrimaryTextGravity = gravity;
mSecondaryTextGravity = gravity;
return (T) this;
} | Set the primary and secondary text horizontal layout gravity.
Default: {@link Gravity#START}
@param gravity The horizontal gravity
@return This Builder object to allow for chaining of calls to set methods | setTextGravity | java | sjwall/MaterialTapTargetPrompt | library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/extras/PromptOptions.java | https://github.com/sjwall/MaterialTapTargetPrompt/blob/master/library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/extras/PromptOptions.java | Apache-2.0 |
@NonNull
public T setPrimaryTextGravity(final int gravity)
{
mPrimaryTextGravity = gravity;
return (T) this;
} | Set the primary text horizontal layout gravity.
Default: {@link Gravity#START}
@param gravity The horizontal gravity
@return This Builder object to allow for chaining of calls to set methods | setPrimaryTextGravity | java | sjwall/MaterialTapTargetPrompt | library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/extras/PromptOptions.java | https://github.com/sjwall/MaterialTapTargetPrompt/blob/master/library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/extras/PromptOptions.java | Apache-2.0 |
public int getPrimaryTextGravity()
{
return mPrimaryTextGravity;
} | Gets the gravity for the primary text.
@return The primary texts gravity. | getPrimaryTextGravity | java | sjwall/MaterialTapTargetPrompt | library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/extras/PromptOptions.java | https://github.com/sjwall/MaterialTapTargetPrompt/blob/master/library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/extras/PromptOptions.java | Apache-2.0 |
@NonNull
public T setSecondaryTextGravity(final int gravity)
{
mSecondaryTextGravity = gravity;
return (T) this;
} | Set the secondary text horizontal layout gravity.
Default: {@link Gravity#START}
@param gravity The horizontal gravity
@return This Builder object to allow for chaining of calls to set methods | setSecondaryTextGravity | java | sjwall/MaterialTapTargetPrompt | library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/extras/PromptOptions.java | https://github.com/sjwall/MaterialTapTargetPrompt/blob/master/library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/extras/PromptOptions.java | Apache-2.0 |
public int getSecondaryTextGravity()
{
return mSecondaryTextGravity;
} | Gets the gravity for the secondary text.
@return The secondary texts gravity. | getSecondaryTextGravity | java | sjwall/MaterialTapTargetPrompt | library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/extras/PromptOptions.java | https://github.com/sjwall/MaterialTapTargetPrompt/blob/master/library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/extras/PromptOptions.java | Apache-2.0 |
@NonNull
public T setClipToView(@Nullable final View view)
{
mClipToView = view;
return (T) this;
} | Set the view to clip the prompt to.
The prompt won't draw outside the bounds of this view.
Default: {@link android.R.id#content}
<p>
Null can be used to stop the prompt being clipped to a view.
@param view The view to clip to
@return This Builder object to allow for chaining of calls to set methods | setClipToView | java | sjwall/MaterialTapTargetPrompt | library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/extras/PromptOptions.java | https://github.com/sjwall/MaterialTapTargetPrompt/blob/master/library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/extras/PromptOptions.java | Apache-2.0 |
@Nullable
public View getClipToView()
{
return mClipToView;
} | Get the view that the prompt canvas is clipped to.
The prompt won't draw outside the bounds of this view.
@return The view that the prompt canvas is clipped to. | getClipToView | java | sjwall/MaterialTapTargetPrompt | library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/extras/PromptOptions.java | https://github.com/sjwall/MaterialTapTargetPrompt/blob/master/library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/extras/PromptOptions.java | Apache-2.0 |
@NonNull
public T setBackButtonDismissEnabled(final boolean enabled)
{
mBackButtonDismissEnabled = enabled;
return (T) this;
} | Back button can be used to dismiss the prompt.
Default: true
@param enabled True for back button dismiss enabled
@return This Builder object to allow for chaining of calls to set methods | setBackButtonDismissEnabled | java | sjwall/MaterialTapTargetPrompt | library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/extras/PromptOptions.java | https://github.com/sjwall/MaterialTapTargetPrompt/blob/master/library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/extras/PromptOptions.java | Apache-2.0 |
public boolean getBackButtonDismissEnabled()
{
return mBackButtonDismissEnabled;
} | Will the pressing the system back button dismiss the prompt.
@return True if pressing the system back button will dismiss the prompt, false otherwise. | getBackButtonDismissEnabled | java | sjwall/MaterialTapTargetPrompt | library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/extras/PromptOptions.java | https://github.com/sjwall/MaterialTapTargetPrompt/blob/master/library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/extras/PromptOptions.java | Apache-2.0 |
@NonNull
public T setIgnoreStatusBar(final boolean enabled)
{
mIgnoreStatusBar = enabled;
return (T) this;
} | Indicates whether to ignore system status bar. Drawing area will be increased to the top of
screen regardless of status bar if this flag is true (status bar should be transparent to see
any effect from this)
Default: false
@param enabled true for drawing behind system status bar
@return This Builder object to allow for... | setIgnoreStatusBar | java | sjwall/MaterialTapTargetPrompt | library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/extras/PromptOptions.java | https://github.com/sjwall/MaterialTapTargetPrompt/blob/master/library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/extras/PromptOptions.java | Apache-2.0 |
public boolean getIgnoreStatusBar()
{
return mIgnoreStatusBar;
} | Get ignore status bar flag
@return true if status bar should be ignored, otherwise false | getIgnoreStatusBar | java | sjwall/MaterialTapTargetPrompt | library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/extras/PromptOptions.java | https://github.com/sjwall/MaterialTapTargetPrompt/blob/master/library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/extras/PromptOptions.java | Apache-2.0 |
@NonNull
public T setPromptBackground(@NonNull final PromptBackground promptBackground)
{
mPromptBackground = promptBackground;
return (T) this;
} | Sets the renderer for the prompt background.
@param promptBackground The background shape to use.
@return This Builder object to allow for chaining of calls to set methods | setPromptBackground | java | sjwall/MaterialTapTargetPrompt | library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/extras/PromptOptions.java | https://github.com/sjwall/MaterialTapTargetPrompt/blob/master/library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/extras/PromptOptions.java | Apache-2.0 |
@NonNull
public PromptBackground getPromptBackground()
{
return mPromptBackground;
} | Get the prompt focal renderer.
@return The prompt focal instance. | getPromptBackground | java | sjwall/MaterialTapTargetPrompt | library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/extras/PromptOptions.java | https://github.com/sjwall/MaterialTapTargetPrompt/blob/master/library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/extras/PromptOptions.java | Apache-2.0 |
@NonNull
public T setPromptFocal(@NonNull final PromptFocal promptFocal)
{
mPromptFocal = promptFocal;
return (T) this;
} | Sets the renderer for the prompt focal.
@param promptFocal The focal shape to use.
@return This Builder object to allow for chaining of calls to set methods | setPromptFocal | java | sjwall/MaterialTapTargetPrompt | library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/extras/PromptOptions.java | https://github.com/sjwall/MaterialTapTargetPrompt/blob/master/library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/extras/PromptOptions.java | Apache-2.0 |
@NonNull
public PromptFocal getPromptFocal()
{
return mPromptFocal;
} | Get the prompt focal renderer.
@return The prompt focal instance. | getPromptFocal | java | sjwall/MaterialTapTargetPrompt | library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/extras/PromptOptions.java | https://github.com/sjwall/MaterialTapTargetPrompt/blob/master/library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/extras/PromptOptions.java | Apache-2.0 |
@NonNull
public T setPromptText(@NonNull final PromptText promptText)
{
mPromptText = promptText;
return (T) this;
} | Set the {@link PromptText} implementation to use to render the prompt text.
@param promptText The prompt text implementation.
@return This Builder object to allow for chaining of calls to set methods | setPromptText | java | sjwall/MaterialTapTargetPrompt | library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/extras/PromptOptions.java | https://github.com/sjwall/MaterialTapTargetPrompt/blob/master/library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/extras/PromptOptions.java | Apache-2.0 |
@NonNull
public PromptText getPromptText()
{
return mPromptText;
} | Get the {@link PromptText} implementation used to render the prompt text.
@return This Builder object to allow for chaining of calls to set methods | getPromptText | java | sjwall/MaterialTapTargetPrompt | library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/extras/PromptOptions.java | https://github.com/sjwall/MaterialTapTargetPrompt/blob/master/library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/extras/PromptOptions.java | Apache-2.0 |
@Nullable
public MaterialTapTargetPrompt create()
{
if (!mTargetSet || (mPrimaryText == null && mSecondaryText == null))
{
return null;
}
final MaterialTapTargetPrompt mPrompt = MaterialTapTargetPrompt.createDefault(this);
if (mAnimationInterpolator == null)
... | Creates an {@link MaterialTapTargetPrompt} with the arguments supplied to this
builder.
<p>
Calling this method does not display the prompt. If no additional
processing is needed, {@link #show()} may be called instead to both
create and display the prompt.
</p>
<p>
Will return null if a valid target has not been set or... | create | java | sjwall/MaterialTapTargetPrompt | library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/extras/PromptOptions.java | https://github.com/sjwall/MaterialTapTargetPrompt/blob/master/library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/extras/PromptOptions.java | Apache-2.0 |
@Nullable
public MaterialTapTargetPrompt show()
{
final MaterialTapTargetPrompt mPrompt = create();
if (mPrompt != null)
{
mPrompt.show();
}
return mPrompt;
} | Creates a {@link MaterialTapTargetPrompt} with the arguments supplied to this
builder and immediately displays the prompt.
<p>
Calling this method is functionally identical to:
</p>
<pre>
MaterialTapTargetPrompt prompt = builder.create();
prompt.show();
</pre>
<p>
Will return null if a valid target has not been... | show | java | sjwall/MaterialTapTargetPrompt | library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/extras/PromptOptions.java | https://github.com/sjwall/MaterialTapTargetPrompt/blob/master/library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/extras/PromptOptions.java | Apache-2.0 |
@Nullable
public MaterialTapTargetPrompt showFor(final long milliseconds)
{
final MaterialTapTargetPrompt mPrompt = create();
if (mPrompt != null)
{
mPrompt.showFor(milliseconds);
}
return mPrompt;
} | Creates a {@link MaterialTapTargetPrompt} with the arguments supplied to this
builder and immediately displays the prompt for the number of milliseconds supplied.
<p>
Calling this method is functionally identical to:
</p>
<pre>
MaterialTapTargetPrompt prompt = builder.create();
prompt.showFor(milliseconds);
</p... | showFor | java | sjwall/MaterialTapTargetPrompt | library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/extras/PromptOptions.java | https://github.com/sjwall/MaterialTapTargetPrompt/blob/master/library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/extras/PromptOptions.java | Apache-2.0 |
@NonNull
public RectF getBounds()
{
return mTextBounds;
} | Get the window position for the prompt text.
@return The prompt text bounds. | getBounds | java | sjwall/MaterialTapTargetPrompt | library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/extras/PromptText.java | https://github.com/sjwall/MaterialTapTargetPrompt/blob/master/library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/extras/PromptText.java | Apache-2.0 |
public void prepare(@NonNull PromptOptions options,
boolean clipToBounds, @NonNull Rect clipBounds)
{
mClipToBounds = clipToBounds;
mClipBounds = clipBounds;
final CharSequence primaryText = options.getPrimaryText();
if (primaryText != null)
{
... | Recalculates the primary and secondary text positions. | prepare | java | sjwall/MaterialTapTargetPrompt | library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/extras/PromptText.java | https://github.com/sjwall/MaterialTapTargetPrompt/blob/master/library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/extras/PromptText.java | Apache-2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.