随笔分类 - Android.Developers
摘要: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...
阅读全文
摘要: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...
阅读全文