您的位置:首页 > 编程语言 > Java开发

为什么eclipse改错后还是显示错误

2015-09-26 22:13 441 查看
那是没有保存啊保存 保存 保存 重要的事情说三遍

今天新的 编写的一个简单的一个按键j功能

主要是编写了 activity——main.xml

mainactivity.java.

这两个东西 xmlns:tools="http://schemas.android.com/tools"

android:layout_width="match_parent"//这个不知道为什么不可以用fill

android:layout_height="match_parent"

tools:context="${relativePackage}.${activityClass}" >

<TextView

android:id="@+id/myTextview"

android:layout_width="wrap_content"

android:layout_height="wrap_content"

/>

<Button

android:id="@+id/myButton"

android:layout_width="fill_parent"

android:layout_height="wrap_content"

/>

TextView myTextView=(TextView)findViewById(R.id.myTextview);

Button mybuttButton=(Button)findViewById(R.id.myButton);

myTextView.setText("这是第一个");

mybuttButton.setText("这是第一个按键");
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: