Skip to content

How show AlertDialog #12

@developerGM

Description

@developerGM

Hi, I am testing this library but i have a problem if i try to add a Dialog

    AlertDialog.Builder builder = new AlertDialog.Builder(Evolve.context);
    LayoutInflater inflater = LayoutInflater.from(Evolve.context);
    View view = inflater.inflate(R.layout.dialog_notification, null);
    builder.setView(view);
    TextView txt_title = (TextView) view.findViewById(R.id.txt_title);
    AlertDialog dialog = builder.create();
    dialog.show();

This code is from my MainAcitivity that extends DynamicActivity
txt_title results null

How is possible ? If I use MainActivity.this instead of Evolve.context, txt_title works but I have a problem on .show()

So, how can I solve ?
Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions