public class CustomCharacterEditorDialog extends Object implements iDialogCharacterIconSelected
Modifier and Type | Field and Description |
---|---|
private DialogCharacterEditorAdapter |
adapter |
private android.app.Dialog |
dialog |
private int |
iconPos |
private androidx.recyclerview.widget.LinearLayoutManager |
mainLayoutManager |
private androidx.recyclerview.widget.RecyclerView |
rvItems |
Constructor and Description |
---|
CustomCharacterEditorDialog() |
Modifier and Type | Method and Description |
---|---|
DialogCharacterEditorAdapter |
getAdapter()
We get the adapter corresponding to the activity.
|
void |
iconSelected(int pos)
We instantiate the basic parts of the view whenever a character icon is selected.
|
android.app.Dialog |
showDialog(android.app.Activity activity)
We instantiate and show a dialog each time the method is called.
|
private android.app.Dialog dialog
private int iconPos
private androidx.recyclerview.widget.RecyclerView rvItems
private DialogCharacterEditorAdapter adapter
private androidx.recyclerview.widget.LinearLayoutManager mainLayoutManager
public android.app.Dialog showDialog(android.app.Activity activity)
activity
- the final activity in the context that its called.public DialogCharacterEditorAdapter getAdapter()
public void iconSelected(int pos)
iconSelected
in interface iDialogCharacterIconSelected
pos
-