我不明白 啥子叫
LayoutInflater mLi = LayoutInflater.from(this);
View view1 = mLi.inflate(R.layout.main_theme, null); 启动的。导致不能用JAVA编码的方式对Layout设置点击启你用BattleDore_more_ly_howtouse 所在的View FindId就可以 获取它了
LayoutInflater mLi = LayoutInflater.from(this);
View view1 = mLi.inflate(R.layout.main_theme, null); 启动的。导致不能用JAVA编码的方式对Layout设置点击启你用BattleDore_more_ly_howtouse 所在的View FindId就可以 获取它了
BattleDore_more_ly_howtouse .setOnClickListener(l);// private OnClickListener l = new OnClickListener() {
//
// public void onClick(View v) {
// Intent intent = new Intent();
// intent.setClass(MoreActivity.this,LauchActivity.class);
// startActivity(intent);
// }
// };
这个点击事件设置好了,点击之后完全没反应了。我也不知道为什么点击没反应,但是如果用xml中的onclick方法设置Onclick方法,可以启动对应方法,但是会报错。