我正在尝试使用 HoloEverywhere 实现 DialogFragment。但是对话框的边框是不可见的,如下图所示
DialogsDialogFragment
import org.holoeverywhere.LayoutInflater;
import org.holoeverywhere.app.DialogFragment;
import android.os.Bundle;
import android.view.View;
import android.view.ViewGroup;
public class DialogsDialogFragment extends DialogFragment {
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
return inflater.inflate(R.layout.dialog_content);
}
}
ABSHoloChk
public void onCreate(Bundle savedInstanceState) {
Holo config = Holo.defaultConfig();
init(config);
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
Button button = (Button) findViewById(R.id.voicerecorder_send);
button.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
FragmentManager fm = getSupportFragmentManager();
DialogsDialogFragment dialog = new DialogsDialogFragment();
fm.beginTransaction()
.add(R.id.dialog_fragment, dialog)
.commit();
}
});
我的应用程序
public class MyApplication extends Application {
static {
ThemeManager.setDefaultTheme(ThemeManager.DARK);
}
}
无法弄清楚问题所在?