最新回答 / 慕设计0257411
Android系统的角度来理解:Context是一个场景,代表与操作系统的交互的一种过程。从程序的角度上来理解:Context是个抽象类,而Activity、Service、Application等都是该类的一个实现。
2017-12-19
最新回答 / 为彭十七加油oO
找了一下确实和我没什么不一样。就倒数第四行你没有将texttoString()。不知道是不是哪里的原因。我将我的代码贴出来你看一下吧:package text.xu.com.listview;import android.support.v7.app.AppCompatActivity;import android.os.Bundle;import android.util.Log;import android.view.View;import android.widget.AbsListView;imp...
2017-12-01
最新回答 / YuanHuaQiang
View linear = View.inflate(this, R.layout.linear_layout, null);View relative = View.inflate(this, R.layout.relative_layout, null);View table = View.inflate(this, R.layout.table_layout, null);View frame = View.inflate(this, R.layout.frame_layout, null);vie...
2017-11-26
最新回答 / 南风4383925
MainActivity.class文件中监听方法为onCheckedChanged,这个方法本来就是必须要按钮改变才起作用,所以你退出来之后本来就是动态添加的按钮,如果你不先点其他的按钮,就不会运行这个方法,switch ...case..也没有作用,也就显示不出来了
2017-10-08