- 博客(6)
- 资源 (2)
- 收藏
- 关注
原创 部分函数重载提示,父类没有该函数,must override or implement a supertype method
@Override public void addView(View child, LayoutParams params) { System.out.println("addView(View child, LayoutParams params)"); addView(child, -1, params); }编译器提示:Multiple markers at this lin
2013-03-31 15:07:52 2191
原创 android 调用draw(canvas) 函数自动退出
我试了在android中直接调用TextView的draw 函数,结果直接退出。。。代码如下:public class Main extends Activity { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setConte
2013-03-28 16:35:57 2036
原创 View 的ContextView
用showContextView 打开View的ContextView 通过setOnCreateContextMenuListener() 来设置处理的方式
2013-03-24 17:04:42 1245
原创 java 数组 toString
数组的toString()返回 : getClass().getName() + '@' + Integer.toHexString(hashCode())
2013-03-18 21:23:28 1223
原创 android LayoutInflater的获取
LayoutInflater 获取有三种方法。LayoutInflater mContext.getSystemService(Context.LAYOUT_INFLATER_SERVICE) ;LayoutInfalter LayoutInfalter.from(Context contextf);这两个函数是一样的结果:LayoutInflater.from 的实现如下
2013-03-14 21:54:32 1809
原创 java 使用rxtx 进行串口交流。
这个是官网上面的一个例子。经测试,已经成功运行。import gnu.io.CommPort;import gnu.io.CommPortIdentifier;import gnu.io.SerialPort;import java.io.FileDescriptor;import java.io.IOException;import java.io.InputStream
2013-03-11 17:41:32 2492
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人