登录
首页 » Android » Android Radio Checkbox简单用法演示

Android Radio Checkbox简单用法演示

于 2022-03-23 发布 文件大小:13.33 kB
0 232
下载积分: 2 下载次数: 1

代码说明:

Android Radio Checkbox简单用法演示,这个不用多介绍了,单选框和复选框的用法示例,希望对Android初学者有所帮助。

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

发表评论

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
  • tqChess
    在android平台下设计的一款象棋游戏,运行界面有自己的名字,根据需要可以修改,有些界面美观简洁(The design of a chess game in the Android platform, run the interface has its own name, can be modified as needed, some beautiful and simple interface)
    2013-05-10 13:16:56下载
    积分:1
  • 在桌面和安卓设备中进行对象追踪 -教程
    翻译 maninwest@Codeforge 作者:lessthanoptimal@CodeProject这里介绍如何在安卓设备和台式电脑上进行对象跟踪。在计算机版本中,对象跟踪的问题是跟踪视频序列中的视觉对象。BoofCV 包含几个通用对象跟踪算法,包括最近才提出的最先进的算法,可以让用户在图像中选择一个区域并进行跟踪。另一个要注意的是,对于人来说很容易的事情可能对电脑来说相当困难。人们可以轻松跟踪模糊或者消失了一段时间的物体,但是即使是最好算法也不能轻松实现。最好算法的也是在有限的情况下好用,而在其他情况下不好用。每种情况都需要选择特定算法。以下跟踪算法被称为通用算法,因为这些算法对情景的假设不多。例如,不假设摄像头是静止的,这种假设可以大大简化跟踪问题,但是限制了它的用途。BoofCV 中的算法Circulant 循环  简单稳定,但是不能恢复追踪  在 BoofCV 中定制改进,可以有独立于区域大小的常量 runtime   http://home.isr.uc.pt/~henriques/circulant/Track-Learning-Detect (TLD)跟踪-学习-检测   BoofCV 中的长期跟踪算法  计算成本贵且繁琐  http://personal.ee.surrey.ac.uk/Personal/Z.Kalal/tld.htmlSparse-Flow   BoofCV 中可以估计滚动的跟踪器脆弱,在二维对象中效果最好
    2022-01-26 04:13:10下载
    积分:1
  • Android 万年历源码
    Android 万年历源码
    2015-03-13下载
    积分:1
  • Android常用代码大全
    Android代码大全.包含系统服务、数据库的操作命令、控制屏幕命令、常用的对话框代码(例如提示对话框、进程对话框、进程栏对话框、日期选取器对话框等等)。很全、很实用!
    2022-08-10 12:41:05下载
    积分:1
  • 华为技术有限公司c语言编程规范
    C语言规范
    2021-10-27 00:31:14下载
    积分:1
  • umeng统计代码 实例源码源码下载
    各种android app操作的统计,支持fragment 
    2015-04-11下载
    积分:1
  • Android myWebView实现单词翻译-口袋词典
    Android 写的一个翻译小程序,应该说是一个网络编程的初级范例,使用myWebView实现单词翻译-口袋词典,运行界面效果请参见截图,相关代码:   EditText myEditText;//用于接收用户输入   WebView myWebView;//WebView,用户显示html    @Override    public void onCreate(Bundle savedInstanceState) {//重写的onCreate方法    super.onCreate(savedInstanceState);    setContentView(R.layout.main);//设置当前的用户界面    myEditText = (EditText) findViewById(R.id.myEditText);//得到EditText的引用    myWebView = (WebView) findViewById(R.id.myWebView);//得到WebView的引用    WebSettings myWebSettings = myWebView.getSettings();//取得WebSettings    myWebSettings.setJavaScriptEnabled(true);//设置可以运行JavaScript    myWebView.addJavascriptInterface(this, "ytl");//设置给html调用的对象及名称    String url = "file:///android_asset/translate.html";    myWebView.loadUrl(url);//将assets/translate.html载入    }   public void runJavaScript(){//自定义的执行脚本的方法    if (myEditText.getText().toString() != ""){//当用户输入的数据不为空时    //调用translate.html里javascript的translate方法    myWebView.loadU
    2023-05-02 20:50:03下载
    积分:1
  • Tree
    android树形分级列表demo.java编写(Tree hierarchical list)
    2019-02-21 10:16:16下载
    积分:1
  • 显示一张图片
    显示一张图片,具体要更改src和添加资源文件,首先得熟悉android模拟器avd的运行,还得了解Activity的生命周期,另外了解如何加载布局,设计布局。了解其中的控件的使用和属性设置。虽然看似很简单,但是第一次做的话,可能会遇到各种问题,需要耐心点
    2022-03-13 13:06:18下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载