代码没问题怎么运行不了?

package com.example.ccccc;


import android.os.Bundle;

import android.support.v7.app.ActionBarActivity;

import android.widget.ArrayAdapter;

import android.widget.AutoCompleteTextView;


public class MainActivity extends ActionBarActivity {

    private AutoCompleteTextView acTextView;

    private String[] res={"zxc","zxv","zxb","asd","asf","asg"};

@Override

protected void onCreate(Bundle savedInstanceState) {

super.onCreate(savedInstanceState);

setContentView(R.layout.activity_main);

acTextView=(AutoCompleteTextView) findViewById(R.id.autoCompleteTextView1);

ArrayAdapter<String>adapter=new ArrayAdapter<String>(this, android.R.layout.simple_list_item_1, res);

acTextView.setAdapter(adapter);

}

}


我不想当会游泳的溺水者3158122
浏览 1083回答 1
1回答

蜂之谷

运行不了?是报什么错么
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

Android