return new AlertDialog.Builder(LogSetting.this)
.setTitle(R.string.log_switch_title)
.setSingleChoiceItems(R.array.set_log_switch, sLogOnOffValue, new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int which) {
dismissDialog(DIALOG_LOG_SWITCH);
if (which == LOG_OPEN) {
isRetLogSwitchValue = ProjectMenu.logOnOff(true);
// SystemProperties.set(LOGCAT_KEY_START, LOGCAT_VALUE);
SystemProperties.set(LOGCAT_KEY, LOGCAT_VALUE_START);
new AlertDialog.Builder(LogSetting.this)
.setMessage(isRetLogSwitchValue ? R.string.log_open_success
: R.string.log_open_fail)
.setPositiveButton(R.string.yes, null)
.show();
if (isRetLogSwitchValue) {
sLogOnOffValue = LOG_OPEN;
} else {
sLogOnOffValue = LOG_CLOSE;
}
Log.d(TAG,String.valueOf(sLogOnOffValue));
我想打开失败的时候,让item的两个焦点都为不选中的状态,应该怎么设置啊。目前是,虽然必有一个为选中的状态
解决方案 »
- ScrollView中嵌入ViewPager,ViewPager的滑动出现问题
- ListView里的Button每次点击都是最后一项item变。
- 为什么我的android没有资源文件夹?
- android 编译生成的 userdata.img ,如何指定其文件大小
- 动画对其它控件的 影响的问题
- 请问App层的Project可以用Android.mk编译么
- 设置全屏必须在setContentView之前才有效的问题?
- 编译源码,请教如何import com.google.android.mms.*
- Eclipse An error has occurred. See error log for more details.
- AppManagerModule.getInstance(this); 能直接这样使用?
- 关于WEBVIEW调用页面中session的值
- android HDMI输出转换
出现一句item3.checked(true); 用户能看见的那两个item就是干净的
我刚刚试了一下。。好像不能设置item的属性啊xml里面没有它的长宽高属性啊。。怎么回事?