android AlerdialogBuilder报错。
Builderbuilder=newAlertDialog.Builder(AlerdialogBuilderTestActivity.this);builder.set...
Builder builder = new AlertDialog.Builder(AlerdialogBuilderTestActivity.this);
builder.setTitle("login");
TableLayout lay = (TableLayout)getLayoutInflater().inflate(R.layout.login, null);
builder.setView(lay);
builder.setPositiveButton("sure", new OnClickListener()//此处报错
{
@Override
public void onClick(View v)
{
// TODO Auto-generated method stub
}
});
不该处问题的。但是它就出现了。在线等结果。 展开
builder.setTitle("login");
TableLayout lay = (TableLayout)getLayoutInflater().inflate(R.layout.login, null);
builder.setView(lay);
builder.setPositiveButton("sure", new OnClickListener()//此处报错
{
@Override
public void onClick(View v)
{
// TODO Auto-generated method stub
}
});
不该处问题的。但是它就出现了。在线等结果。 展开
3个回答
展开全部
Builder builder = new AlertDialog.Builder(MpleActivity.this);
builder.setTitle("login");
TableLayout lay = (TableLayout)getLayoutInflater().inflate(R.layout.login, null);
builder.setView(lay);
builder .setPositiveButton("sure",new DialogInterface.OnClickListener()
{
public void onClick(DialogInterface dialog, int which)
{
}
});
builder.setTitle("login");
TableLayout lay = (TableLayout)getLayoutInflater().inflate(R.layout.login, null);
builder.setView(lay);
builder .setPositiveButton("sure",new DialogInterface.OnClickListener()
{
public void onClick(DialogInterface dialog, int which)
{
}
});
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询