为什么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("这是第一个按键");
今天新的 编写的一个简单的一个按键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("这是第一个按键");
相关文章推荐
- getResource()与decode()
- java并发编程学习:用 Semaphore (信号量)控制并发资源
- Java:多个数求和
- SpringMVC 流程(6)-- 常用注解
- 如何将java代码生成一个bat文件
- java程序优化
- Android Eclipse快捷键
- Java 静态代理和动态代理
- java静态代理和动态代理
- Java大数类
- java程序 输入10个数字并求和
- java多线程之生产者消费者经典问题
- JAVA_SE基础——32.this关键字调用本类的构造方法
- java从命令行接收多个数字,求和之后输出结果
- Eclipse 使用OpenGL
- java 堆和栈
- java中static作用详解
- java学习笔记--内部类与匿名类
- 谈java Throwable
- java学习之IO流3