11 2014 档案
摘要:1. WebView The WebView class is an extension of Android's View class that allows you to display web pages as a part of your activity layout. It does...
阅读全文
摘要:首先上效果图 关于图中数字进度条 GitHub https://github.com/daimajia/NumberProgressBar 下载下来之后, 解压打开文件夹 将NumberProgressBar copy到自己的项目中, 包名可以自己随便取 然后会发现...
阅读全文
摘要:首先, 解析本地的XML 参考 http://www.cnblogs.com/iMirror/p/4122082.html学习Tomcat搭建本地服务器 参考 在Tomcat默认访问目录 webapps/ROOT下新建XMLParserTest文件夹, 并新建persons.xml ...
阅读全文
摘要:1. 代码结构 InterfaceXMLParseService 解析接口, DOM/SAX/PULL分别实现这个接口 XML来源是assets目录下的persons.xml文件2. 代码//persons.xml 1 Tom 12 ...
阅读全文
摘要:http://blog.csdn.net/wolf09311/article/details/410123791)Android平台网络相关API接口 a) java.net.*(标准Java接口) java.net.* 提供与联网有关的类,包括流、数据包套接字(socket)、Internet协议...
阅读全文
摘要:JSON Service In the previous section, you learned how to consume XML web services by using HTTP to connect to the web server and then obtain the r...
阅读全文
摘要:1. Consuming web services using HTTP Downloading Binary Data package mirror.android.networing;import java.io.IOException;import java.io.InputStrea...
阅读全文
摘要:https://github.com/nostra13/Android-Universal-Image-LoaderA simple example to show all the pictures in the SD card in a gridView.FeaturesMultithread i...
阅读全文
摘要:package mirror.android.cameratest;import java.io.File;import java.io.FileNotFoundException;import java.io.FileOutp...
阅读全文
摘要:1.Media Palyback The Android multimedia framework includes support for playing variety of common media types, so that you can easily integrate audio,...
阅读全文
摘要:1. Custom Components Android offers a sophisticated and powerful componentized model for building your UI, based on the fundamental layout classes: ...
阅读全文
摘要:could be changed into// res/value/style
阅读全文
摘要:Applications built for Android are more accessible to users with visual, physical or age-related limitations when those users activate accessibility s...
阅读全文
摘要:package mirror.android.dragdrop;import android.app.Activity;import android.content.ClipDescription;import android.os.Bundle;import android.view.DragEv...
阅读全文
摘要:1.Notifications A notification is a message you can display to the user outside of your application's normal UI. When you tell the system to issue a ...
阅读全文
摘要:1. Dialog The Dialog class is the base class for dialogs, but you should avoid instantiating Dialog directly. Instead, use one of the following subcl...
阅读全文
摘要:To read first:ActionBar http://www.cnblogs.com/iMirror/p/4077426.htmlMenu http://www.cnblogs.com/iMirror/p/4076864.htmlMenu用icon显示, 多余的缩进overflow ...
阅读全文
摘要:1. ActionBar First added in Android 3.0(API level 11) 2. Working the Action Bar 2.1 Removing the action barActionBar actionBar = getSupportActionBa...
阅读全文
摘要:1. Menu Three fundamental types of menus or action presentation on all versions of Android: Option menu and action bar Android 2.3 or lower, reve...
阅读全文
摘要:1. Input Controls 2. Buttons A button consists of text or an icon (or both text and an icon) that communicates what action occurs when the user touc...
阅读全文
摘要:1. Writing the XML Each layout file must contain exactly one root element, which must be a View or ViewGroup object. Once you've defined the root el...
阅读全文
摘要:This page defines more types of resources you can externalize, including:
阅读全文
摘要:1. Style Resource A style resource defines the format and look for a UI. A style can be applied to an individual View (from within a layout file) or ...
阅读全文
摘要:1. String//saved at res/values/strings.xml Hello!//This layout XML applies a string to a View: This application code retrieves a string:String str...
阅读全文
摘要:1. Menu Resource A menu resource defines an application menu (Options Menu, Context Menu, or submenu) that can be inflated with MenuInflater.//res/me...
阅读全文
摘要:1. Layout Resources A layout resource defines the architecture for the UI in an Activity or a component of a UI.2. Syntax //Any element ...
阅读全文
摘要:1. Drawable Resources There are several different types of drawables as follow2. Bitmap A bitmap image. Android supports bitmap files in a three for...
阅读全文
摘要:1. Color State List Resource A ColorStateList is an object you can define in XML that you can apply as a color, but will actually change colors, depe...
阅读全文
摘要:1. Animation Resources An animation resource can define one of two types of animations: Property Animation Creates an animation by modifying an o...
阅读全文
摘要:Google 自带 package mirror.android.miniweb;import android.app.Activity;import android.os.Bundle;import android.suppor...
阅读全文
摘要:Reference : http://blog.csdn.net/aliaooooo/article/details/236061791. Handling Runtime Changes Some device configurations can change during runtime (...
阅读全文
摘要:1. Accessing Resources Once you provide a resource in your application, you can apply it by referencing its resource ID. All resource IDs are defined...
阅读全文
摘要:1. Providing Resources Once you externalize your application resources, you can access them using resource IDs that are generated in your project's R...
阅读全文
摘要:1. Overview You should always externalize resources such as images and strings from your application code, so that you can maintain them independentl...
阅读全文

浙公网安备 33010602011771号