-
task9
说明: 自己制作了一个日历,是用calendarView写的,可以添加事务。但由于我没写数据库,所以还不能保存事务,只是给大家写了一个模板吧,大家可以连本地数据库,也可以链接云端。(I made a calendar to add transactions. But because I did not write the database, so I can not save the transaction, just write a template for you, you can connect to the local database, you can also link to the cloud.)
- 2020-06-21 14:20:02下载
- 积分:1
-
android open gl 示例代码下载
[实例简介]Open GL 入门级示例 [实例截图] [核心代码]package com.china.gltry;import javax.microedition.khronos.egl.EGL10;import javax.microedition.khronos.egl.EGL11;import javax.microedition.khronos.egl.EGLConfig;import javax.microedition.khronos.egl.EGLContext;import javax.microedition.khronos.egl.EGLDisplay;import javax.microedition.khronos.egl.EGLSurface;import javax.microedition.khronos.opengles.GL;import android.view.SurfaceHolder;/** * An EGL helper class. */public class EGLHelper{ public EGLHelper() { } /** * Initialize EGL for a given configuration spec. * @param configSpec */ public void start(int[] configSpec){ /* * Get an EGL instance */ mEgl = (EGL10) EGLContext.getEGL(); /* * Get to the default display. */ mEglDisplay = mEgl.eglGetDisplay(EGL10.EGL_DEFAULT_DISPLAY); /* * We can now initialize EGL for that display */ int[] version = new int[2]; mEgl.eglInitialize(mEglDisplay, version); EGLConfig[] configs = new EGLConfig[1]; int[] num_config = new int[1]; mEgl.eglChooseConfig(mEglDisplay, configSpec, configs, 1, num_config); mEglConfig = configs[0]; /* * Create an OpenGL ES context. This must be done only once, an * OpenGL context is a somewhat heavy object. */ mEglContext = mEgl.eglCreateContext(mEglDisplay, mEglConfig, EGL10.EGL_NO_CONTEXT, null); mEglSurface = null; } /* * Create and return an OpenGL surface */ public GL createSurface(SurfaceHolder holder) { /* * The window size has changed, so we need to create a new * surface. */ if (mEglSurface != null) { /* * Unbind and destroy the old EGL surface, if * there is one. */ mEgl.eglMakeCurrent(mEglDisplay, EGL10.EGL_NO_SURFACE, EGL10.EGL_NO_SURFACE, EGL10.EGL_NO_CONTEXT); mEgl.eglDestroySurface(mEglDisplay, mEglSurface); } /* * Create an EGL surface we can render into. */ mEglSurface = mEgl.eglCreateWindowSurface(mEglDisplay, mEglConfig, holder, null); /* * Before we can issue GL commands, we need to make sure * the context is current and bound to a surface. */ mEgl.eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext); GL gl = mEglContext.getGL(); return gl; } /** * Display the current render surface. * @return false if the context has been lost. */ public boolean swap() { mEgl.eglSwapBuffers(mEglDisplay, mEglSurface); /* * Always check for EGL_CONTEXT_LOST, which means the context * and all associated data were lost (For instance because * the device went to sleep). We need to sleep until we * get a new surface. */ return mEgl.eglGetError() != EGL11.EGL_CONTEXT_LOST; } public void finish() { if (mEglSurface != null) { mEgl.eglMakeCurrent(mEglDisplay, EGL10.EGL_NO_SURFACE, EGL10.EGL_NO_SURFACE, EGL10.EGL_NO_CONTEXT); mEgl.eglDestroySurface(mEglDisplay, mEglSurface); mEglSurface = null; } if (mEglContext != null) { mEgl.eglDestroyContext(mEglDisplay, mEglContext); mEglContext = null; } if (mEglDisplay != null) { mEgl.eglTerminate(mEglDisplay); mEglDisplay = null; } } EGL10 mEgl; EGLDisplay mEglDisplay; EGLSurface mEglSurface; EGLConfig mEglConfig; EGLContext mEglContext;}
- 2015-04-06下载
- 积分:1
-
发布预览图片作品
进行图片预览 上传 ,对上传的作品进行点赞评论。查看别人的作品。个人资料修改。代码详实、完整源码,只需要自己搭建服务器可立即使用。使用photoView 进行图片的预览缩放、imageload进行图片的加载、缓存使用radioGroup加fragment进行页面的搭建、切换、独立完成。xUtils进行网络访问、进过测试、可放心使用,也可自己修改。坊微信图片预览、扫描
- 2022-01-25 19:17:19下载
- 积分:1
-
NFC 类型 2 标记调度程序
用來操作NFC type 2 tag,提供raw data的read, write, 辨識UID, 設定delay時間,並可自定操作的行程,讓手機變成Reader排定工作持續讀寫tag中的資料,並可對符合該協定的界面tag進行IO或通信的操作。
- 2022-05-27 06:19:57下载
- 积分:1
-
应用管理器Android stutio项目
资源描述一个应用管理器的demo,主要实现了管理第三方应用的功能,例如卸载,查看详情等功能
- 2023-03-28 17:10:03下载
- 积分:1
-
浏览器
浏览器
- 2013-08-25下载
- 积分:1
-
Android演示五种不同效果的Toast实现方法
Android实现五种不同外观样式的Toast弹出框效果,演示了自定义位置的Toast显示、带图片的Toast显示、完全自定义的Toast显示、长时间的Toast显示5种Toast,在效果测试时,你可以单击任意一种Toast,查看对应的弹出提示效果是什么样子,这些Toast在android应用开发时,用的比较多。
- 2022-01-26 03:45:10下载
- 积分:1
-
UsbHostDemo
主要是通过USB host 与HID设备进行通讯:枚举设备->找到设备的接口->连接设备->分配相应的端点->在IN端点进行读操作,在OUT端点进行写操作。
Mainly through the USB host to communicate with HID devices: enumerate devices-> find the device interface-> Connect device-> Assign appropriate endpoint-> the IN endpoint read, write in the OUT endpoint.
- 2022-01-21 22:08:54下载
- 积分:1
-
Android 拍照本地图片上传 图片裁切
Android本地图片和拍照图片上传作为头像,剪一下,防止测试的时候上传的文件太大,仿微信图片上传,带有拍照,并可以放大缩小预览PhotoSuperCopy,安卓拍照或选择图片上传服务器 解成bitmap,方便裁剪,调用相机拍照后的照片存储的路径,取到绝对路径,上传图片,实际上是将图片流以字符串形式存储下来。
- 2022-04-13 07:35:25下载
- 积分:1
-
android ViewPager 左右双向滑动 实例源码
android ViewPager 左右双向滑动 实例源码
- 2014-08-08下载
- 积分:1