|
|
@@ -23,17 +23,22 @@ import kr.co.zumo.app.lifeplus.view.Event;
|
|
|
*/
|
|
|
public class TooltipDialog extends DialogBase {
|
|
|
|
|
|
-
|
|
|
@Nullable
|
|
|
@Override
|
|
|
public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
|
|
|
+
|
|
|
return inflater.inflate(R.layout.dialog_tool_tip, container, false);
|
|
|
}
|
|
|
|
|
|
+
|
|
|
@Override
|
|
|
public void onActivityCreated(Bundle savedInstanceState) {
|
|
|
super.onActivityCreated(savedInstanceState);
|
|
|
+
|
|
|
+ // TODO: 화면 투명하게, 외부 터치시 dialog 종료 되게
|
|
|
getDialog().getWindow().setBackgroundDrawable(new ColorDrawable(android.graphics.Color.TRANSPARENT));
|
|
|
+ getDialog().setCanceledOnTouchOutside(true);
|
|
|
+
|
|
|
getView().findViewById(R.id.over_view_dialog).setOnClickListener(view -> {
|
|
|
if (null != getCustomListener()) {
|
|
|
getCustomListener().onDialogResult(TooltipDialog.this, new Event.Builder(Event.OVER_VIEW).build());
|