0
我想使用Custom Dialog
中的Facebook的ShareDialog
,但初始化時我無法將上下文值設置爲新的ShareDialog。ShareDialog Facebook在自定義對話框中 - Android
shareDialog = new ShareDialog(.......); //getContext() not working
我需要的方式解決:(
我想使用Custom Dialog
中的Facebook的ShareDialog
,但初始化時我無法將上下文值設置爲新的ShareDialog。ShareDialog Facebook在自定義對話框中 - Android
shareDialog = new ShareDialog(.......); //getContext() not working
我需要的方式解決:(
懇請活動場景在構建器,而不是在的getContext。如果使用在活動中,如果使用它使用像
shareDialog = new ShareDialog(MyActivity.this);
一個片段
shareDialog = new ShareDialog(getActivity);
我想在自定義對話框中使用它:( –
哦,我以爲它是一個初始化程序oblem –