Class DialogResourceFinder
- java.lang.Object
-
- uk.co.samuelwall.materialtaptargetprompt.ActivityResourceFinder
-
- uk.co.samuelwall.materialtaptargetprompt.DialogResourceFinder
-
- All Implemented Interfaces:
ResourceFinder
public class DialogResourceFinder extends ActivityResourceFinder
ResourceFinder
implementation 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.View
findViewById(int resId)
Finds a child view with the given identifier.android.content.Context
getContext()
Retrieve the Context that the prompt is running in.android.view.ViewGroup
getPromptParentView()
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:ResourceFinder
Finds a child view with the given identifier. Returns null if the specified child view does not exist.- Specified by:
findViewById
in interfaceResourceFinder
- Overrides:
findViewById
in 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:ResourceFinder
Get the view to add the prompt to.- Specified by:
getPromptParentView
in interfaceResourceFinder
- Overrides:
getPromptParentView
in classActivityResourceFinder
- Returns:
- The view to add the prompt to.
-
getContext
@NonNull public android.content.Context getContext()
Description copied from interface:ResourceFinder
Retrieve the Context that the prompt is running in.- Specified by:
getContext
in interfaceResourceFinder
- Overrides:
getContext
in classActivityResourceFinder
- Returns:
- Context The Context used by the prompt.
-
-