码迷,mamicode.com
首页 >  
搜索关键字:simple example    ( 24106个结果
代码艺术 CountDownTimer
/** * Schedule a countdown until a time in the future, with regular notifications on intervals along the way. * * Example of showing a 30 second count...
分类:其他好文   时间:2014-05-16 04:21:02    阅读次数:311
Leetcode | First Missing Positive
Given an unsorted integer array, find the first missing positive integer.For example,Given [1,2,0] return 3,and [3,4,-1,1] return 2.Your algorithm sho...
分类:其他好文   时间:2014-05-16 02:58:54    阅读次数:249
解决TabActivity中子页面不通过导航跳转到另一个页面的问题
问题:当你的导航在TabActivity中 而子页面的一个按钮需要切换到其中的某一个导航页面 转载请注明出处:http://blog.csdn.net/x605940745 demo下载地址:http://download.csdn.net/detail/x605940745/7353695 package com.example.shows; import android.app....
分类:其他好文   时间:2014-05-16 01:32:08    阅读次数:299
ListView和SimpleAdapter
在Android中当我们需要在界面上显示列表内容,则要使用ListView控件。 本文主要介绍如何使用ListView控件来显示自己想要的内容。 本文的最终成果如下图所示,当用户点击ListView中的内容时,控制台将会输出相应的Item名字。  在layout当中,我们有两个xml文件,分别为 activity_main 和 simple_item 其中在 前者中创建了一个L...
分类:其他好文   时间:2014-05-15 20:28:46    阅读次数:364
SNMP和rrdtool详解介绍
snmp全称simple network manage protocol,snmp能够通过简单的命令获取远程主机上的服务状况,以实现对远程服务的监控。snmp至今经历了3个版本,snmpv1,snmpv2,snmpv3。snmp简单工作原理就是监控端的一台主机向被监控端的一台主机发出命令,被检控端的主机在本机上安装服务能够识别到监控端主机发过来的命令并给予反馈信息。由于这种监控的局限性,保证被监控...
分类:其他好文   时间:2014-05-15 20:28:14    阅读次数:375
XML概述
java API解析XML文件 解析xml方式: a.DOM (Document Object Model) 优点:把xml文件放到内存中为一个树状结构,可以遍历和修改节点。 缺点:当文件比较大的时候,内存压力比较大,读写速度慢。 b.SAX(Simple API for XML) 把xml文件做为一个流,当触发标记开始、标记内容开始、标记结束这些动作。 优点:可以马上开始,速度快,没有内存压力 ...
分类:其他好文   时间:2014-05-15 20:14:42    阅读次数:434
2003-view-Animation-push
介绍ViewFlipper ViewFlipper Simple ViewAnimator that will animate between two or more views that have been added to it. Only one child is shown at a time. If requested, can automatically flip betwee...
分类:其他好文   时间:2014-05-15 18:37:44    阅读次数:356
Longest Substring Without Repeating Characters
Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without repeating letters fo...
分类:其他好文   时间:2014-05-15 17:50:38    阅读次数:298
[LeetCode] [Add Binary 2012-04-02 ]
Given two binary strings, return their sum (also a binary string).For example, a = "11" b = "1" Return "100".string 的操作,短string补位。两个“0”会输出一个“00”,要特殊处理...
分类:其他好文   时间:2014-05-15 17:47:57    阅读次数:283
A coroutine example: Streaming XML parsing using xml_parser
send($data)`. The sent data will then* be the result of the `yield` expression. Thus it can be received using a code like* `$data = yield;`.*/ /* What...
分类:其他好文   时间:2014-05-15 17:46:37    阅读次数:311
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!