登录
首页 » Android » Android 拨号窗口小部件

Android 拨号窗口小部件

于 2022-10-19 发布 文件大小:53.03 kB
0 183
下载积分: 2 下载次数: 1

代码说明:

这是一个项目,实施测量和拨组件为 Android 智能手机。本仪表可以例如用于显示车速从 OBD-ⅱ 型设备中读取数据。

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • 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
  • activity_communication
    Activity查看数据与文本框反回数据(Activity data text box in return data)
    2013-02-04 20:22:24下载
    积分:1
  • SeekBarTest
    android开发 控件 seekbar的样例程序。(android seekbar样例。)
    2012-04-22 13:28:41下载
    积分:1
  • Android 查看时间日期的应用(Android高级控件的开发及应用-03_14).zip
    Android 查看时间日期的应用(Android高级控件的开发及应用-03_14).zip
    2019-10-06下载
    积分:1
  • android activity 切换效果例子
    android activity 切换效果例子
    2015-06-17下载
    积分:1
  • Android-application-development
    本文详细在介绍了Android开发环境搭建的基础上,详述了Android应用程序的框架,UI系统的实现,以及2D,3D接口的控制和使用,是Android应用开发入门的经典教程。(This paper introduces in detail in the Android development environment to build, based on the details of the Android application framework, UI system implementation, as well as 2D, 3D interface to control and use, is a classic Android Application Development Tutorial.)
    2013-08-03 10:25:49下载
    积分:1
  • Android UDP源码demo
    分享一个完整的UDP通信的Android源码工程示例,供Android初学者学习。
    2022-07-12 09:57:39下载
    积分:1
  • android自动下载功能实现
    android中apk自动下载功能的实现,http实现。下载完成之后,Intent intent = new Intent(); 通过intent发起请求,自动打开下载完成之后的apk应用程序。
    2023-03-03 07:10:04下载
    积分:1
  • android 基于xmpp的即时通信APP
    简单的即时通讯聊天软件,基于xmpp+openfire+smack。这里只给出了android 的代码,对于openfire直接百度就可以了。
    2022-02-25 16:14:33下载
    积分:1
  • Android 超多基础组件使用范例技巧大全
    Android 超多基础组件使用范例技巧大全,这些组件大多与日常的Android编程息息相关,且更多 的时候是一种UI界面的必备元素,这些必备元素控件包括了以下内容:AutoCompleteTextView、CheckBox、CopyOfTimePicker、DatePicker、EditText、GridView、ImageButton、ImageShow、ImageView、ProgressBar、RadioGroup、RatingBar、SeekBar、Spinner、Tab、TimePicker、ViewText。
    2022-02-02 01:16:42下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载