Getting MAX_TEXTURE_SIZE from Caches::initConstraints()
来源:互联网 发布:永宏plc编程软件下载 编辑:程序博客网 时间:2024/04/28 13:34
在重写android中View类的onDraw方法画图的时候,
protected void onDraw(Canvas canvas)
报错如下:
一开始还以为是模拟器的问题,结果发现:
//改变风格,绘制字体 paint.setTextSize(10); paint.setShader(null); canvas.drawText(getResources().getString(R.string.circle), 240, 50, paint); canvas.drawText(getResources().getString(R.string.square), 240, 120, paint); canvas.drawText(getResources().getString(R.string.rect), 240, 175, paint); canvas.drawText(getResources().getString(R.string.round_rect), 230, 220, paint); canvas.drawText(getResources().getString(R.string.oval), 240, 260, paint); canvas.drawText(getResources().getString(R.string.triangle), 240, 325, paint); canvas.drawText(getResources().getString(R.string.pentagon), 240, 390, paint);上面这些方法虽然不报错,但是如果上面的7个drawText方法只保留一个(不管是哪一个)的话,那么就可以运行,这个我也不知道为什么,还没解决
0 0
- Getting MAX_TEXTURE_SIZE from Caches::initConstraints()
- Eclipse+Genymotion报错:OpenGLRenderer Getting MAX_TEXTURE_SIZE from GradienCache
- Getting Listeners from JavaBeansTM
- Getting image from wewbsite
- Getting help from shells
- Getting Input from the Mouse
- Getting Input from the Keyboard
- [cernRoot] Getting Contours From TH2D
- iphone – Getting data from uiwebview textfield
- Getting Information about PeopleSoft Components from Database
- Getting a Result from an Activity
- Getting data from a dispatch source
- 18Getting a Result from an Activity
- UIImage from ALAsset: getting the right orientation
- getting multivariate gaussian distribution from independent ones
- Getting a Result from an Activity
- Getting Configurable Product from Simple Product ID
- 高效显示Bitmap-----From "Getting Started"
- poj3907
- C++面试题
- Socket采用select实现非阻塞功能
- 编译器变量__func__, __FILE__...
- linux中结构体对齐
- Getting MAX_TEXTURE_SIZE from Caches::initConstraints()
- Android发送短信
- Android复习笔记(6) -BrodCastReceiver (广播接收者
- 【算法总结】堆及堆排序总结
- 不要把你的input元素设置为“action”或“submit”
- n的m划分 dp
- 数据结构之栈和队列---回文判断
- 丢掉那些所谓的真理,来看看如何做好产品?
- AAC 编解码封装