I am creating an application that consists of the simple and small registration form pop up in an alert dialog when we click a button. But it was showing an error called
Problem is caused by MaterialDesignLibrary
.due to following line in Dialog
class:
@Override
protected void onCreate(Bundle savedInstanceState) {
requestWindowFeature(Window.FEATURE_NO_TITLE);
....
}
here requestWindowFeature
is called after calling setContentView
method in Activity.
To fix this issue you should remove requestWindowFeature(Window.FEATURE_NO_TITLE);
line from Dialog
class of library