Class DialogResourceFinder
- java.lang.Object
-
- uk.co.samuelwall.materialtaptargetprompt.ActivityResourceFinder
-
- uk.co.samuelwall.materialtaptargetprompt.DialogResourceFinder
-
- All Implemented Interfaces:
ResourceFinder
public class DialogResourceFinder extends ActivityResourceFinder
ResourceFinderimplementation forDialog.
-
-
Constructor Summary
Constructors Constructor Description DialogResourceFinder(android.app.Dialog dialog)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description android.view.ViewfindViewById(int resId)Finds a child view with the given identifier.android.content.ContextgetContext()Retrieve the Context that the prompt is running in.android.view.ViewGroupgetPromptParentView()Get the view to add the prompt to.-
Methods inherited from class uk.co.samuelwall.materialtaptargetprompt.ActivityResourceFinder
getDrawable, getResources, getString, getTheme, obtainStyledAttributes
-
-
-
-
Method Detail
-
findViewById
@Nullable public android.view.View findViewById(@IdRes int resId)Description copied from interface:ResourceFinderFinds a child view with the given identifier. Returns null if the specified child view does not exist.- Specified by:
findViewByIdin interfaceResourceFinder- Overrides:
findViewByIdin classActivityResourceFinder- Parameters:
resId- the identifier of the view to find- Returns:
- The view with the given id or null.
-
getPromptParentView
@NonNull public android.view.ViewGroup getPromptParentView()
Description copied from interface:ResourceFinderGet the view to add the prompt to.- Specified by:
getPromptParentViewin interfaceResourceFinder- Overrides:
getPromptParentViewin classActivityResourceFinder- Returns:
- The view to add the prompt to.
-
getContext
@NonNull public android.content.Context getContext()
Description copied from interface:ResourceFinderRetrieve the Context that the prompt is running in.- Specified by:
getContextin interfaceResourceFinder- Overrides:
getContextin classActivityResourceFinder- Returns:
- Context The Context used by the prompt.
-
-