Android项目大多数代码显示为红色,但是当我运行它时,它可以工作

时间:2015-08-14 22:04:23

标签: android

突然间我的mainactivty大多数代码都变成了高亮红色,这通常发生在错误诅咒我也看到标签上的曲折线,但是当我运行应用程序时它运行没有没有错误?什么是错的

import android.support.v7.app.ActionBarActivity;
import android.util.Log;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.widget.Button;
import android.widget.ListView;
import android.widget.TextView;

import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;
import org.jsoup.select.Elements;

import java.io.IOException;
import java.util.ArrayList;
import java.util.HashMap;

import static testtt.myapplication.Constants.FIFTH_COLUMN;
import static testtt.myapplication.Constants.FIRST_COLUMN;
import static testtt.myapplication.Constants.FOURTH_COLUMN;
import static testtt.myapplication.Constants.SECOND_COLUMN;
import static testtt.myapplication.Constants.THIRD_COLUMN;



public class MainActivity extends ActionBarActivity {
    private ArrayList<HashMap<String, String>> list;
    public int count = 0;
    public String temp;
    private Document htmlDocument;

    private TextView parsedHtmlNode;
    private TextView textViewwww;
    private String htmlContentInStringFormat;
    private String dayys;
    private String amarrdatta;
    private String duhr_val1;
    private String asr_val1;
    private String maghreb_val1;
    private String isha_val1;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        parsedHtmlNode = (TextView)findViewById(R.id.html_content);
        textViewwww = (TextView)findViewById(R.id.textView1);
        Button button2 = (Button)findViewById(R.id.button2);
        button2.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent myIntent = new Intent(MainActivity.this, MainActivity2Activity.class);
                MainActivity.this.startActivity(myIntent);
            }
        });
        Button htmlTitleButton = (Button)findViewById(R.id.button);
        htmlTitleButton.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
               JsoupAsyncTask jsoupAsyncTask = new JsoupAsyncTask();
                jsoupAsyncTask.execute();


            }
        });
    }
    @Override

我在

上发布了大部分红线代码
import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;
import org.jsoup.select.Elements;
public class MainActivity extends ActionBarActivity {
private Document htmlDocument;
protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        parsedHtmlNode = (TextView)findViewById(R.id.html_content);
        textViewwww = (TextView)findViewById(R.id.textView1);
        Button button2 = (Button)findViewById(R.id.button2);

尝试干净甚至重建甚至关闭它不要变黑

0 个答案:

没有答案