added ok button to help popup
This commit is contained in:
@@ -4,6 +4,7 @@ import android.os.Bundle;
|
||||
import android.view.LayoutInflater;
|
||||
import android.view.View;
|
||||
import android.view.ViewGroup;
|
||||
import android.widget.Button;
|
||||
|
||||
import androidx.fragment.app.DialogFragment;
|
||||
|
||||
@@ -15,6 +16,8 @@ public class HelpPopup extends DialogFragment {
|
||||
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
|
||||
View rootView = inflater.inflate(R.layout.help_popup, container, false);
|
||||
getDialog().setTitle("Simple Dialog");
|
||||
Button okButton = rootView.findViewById(R.id.help_ok_button);
|
||||
okButton.setOnClickListener(v -> dismiss());
|
||||
return rootView;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user