我试图设置我的AlertDialog样式,我已经能够通过样式和xml声明更改大部分内容......但仍然存在一些问题:

这是我在RootActivity中的功能(我的活动扩展了这个)
public static void showNoConnectionDialog(Context ctx1) {
final Context ctx = ctx1;
LayoutInflater factory = LayoutInflater.from(ctx);
AlertDialog.Builder builder = new AlertDialog.Builder(new ContextThemeWrapper(ctx, R.style.SetdartDialog));
builder.setView(factory.inflate(R.layout.alert_dialog, null))
.setIcon(R.drawable.icon)
.setCancelable(true)
.setMessage(R.string.check_wireless_settings)
.setTitle(R.string.no_connection)
.setPositiveButton(R.string.myes, new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int which) {
ctx.startActivity(new Intent(Settings.ACTION_WIRELESS_SETTINGS));
}
})
.setNegativeButton(R.string.mno, new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int which) {
return;
}
})
.setOnCancelListener(new DialogInterface.OnCancelListener() {
public void onCancel(DialogInterface dialog) {
return;
}
})
.show();
}
Run Code Online (Sandbox Code Playgroud)
这里是styles.xml的一个片段
<?xml version="1.0" encoding="utf-8"?>
<resources> …Run Code Online (Sandbox Code Playgroud) 我想通过SFTP或其他方法来比较本地和远程文件,Dreamweaver会在你最喜欢的合并编辑器(我喜欢的WinMerge)这样的选择,但我不会在这个节骨眼上使用DW.还有其他像样的(windows7)程序可以很好地同步和比较吗?