登录
首页 » Java » MaterialProgressBar-master

MaterialProgressBar-master

于 2015-11-17 发布 文件大小:98KB
0 245
下载积分: 1 下载次数: 6

代码说明:

  Android 5.0 自定义各种样式进度条(Android 5.0 Customize various style progress bar)

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

发表评论

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
  • 即时通讯Demo
    资源描述即时通讯Demo 个人学习 进攻餐操绝对原创 来源于生活  笑笑Demo 哈哈哈哈
    2022-04-12 20:54:54下载
    积分:1
  • 监督的支持向量机
    在机器学习,支持向量机(SVM,还支持矢量网络[1])的监督学习模型相关的学习算法,分析数据,识别模式,用于分类和回归分析。给定一组训练实例,每个标记为属于两类,一种SVM训练算法构建了一个模型,分配新的实例为一类或其他,使其成为非概率二元线性分类。一个SVM模型是的例子如在空间中的点,映射使得的不同类别的例子是由一个明显的差距是尽可能宽划分的表示。新的例子,然后映射到同一个空间,并根据预测他们落在差距哪边就属于一个类别。除了执行线性分类,支持向量机可以使用所谓的核技巧,它们的输入隐含映射成高维特征空间中有效地进行非线性分类。
    2022-06-01 06:27:10下载
    积分:1
  • jsp酒店管理系统源码(含sqlserver数据库)
    管理员登录账号:admin 登录密码:123456
    2020-03-17下载
    积分:1
  • 光伏最大功率点跟踪(mppt)matlab模型
    可以完美运行,能够对mppt进行仿真,不用谢 hah
    2020-05-26下载
    积分:1
  • Java指纹识别
    资源描述开源sourceAFIS改写的开源sourceAFIS改写的开源sourceAFIS改写的开源sourceAFIS改写的开源sourceAFIS改写的开源sourceAFIS改写的
    2022-08-16 01:17:42下载
    积分:1
  • rn_rank-master
    说明:  号称App最多的网站干货集中营(Gank.io)最后也推荐两个。首先来一个的是效果和开发者头条有点类似~同时兼容双平台。(Known as the largest App site dry concentration camp (Gank.io), finally recommended two. First, here comes the effect, and the developer's headline is somewhat similar to the dual platform compatible at the same time.)
    2020-10-22 16:17:23下载
    积分:1
  • PageFliping
    找了好久的android翻页效果,希望对大家也有所帮助。(Looking for a long android flip effect, we want to help.)
    2013-04-24 09:13:13下载
    积分:1
  • ShipCalendar
    java经典日历,在android移动端实现日历列表功能(java calendar)
    2014-07-05 13:49:29下载
    积分:1
  • android 奖转盘示例完整源码下载
    android 开奖转盘示例完整源码下载
    2014-04-29下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载