随笔分类 -  Android.Developers

摘要:package mirror.android.cameratest;import java.io.File;import java.io.FileNotFoundException;import java.io.FileOutp... 阅读全文
posted @ 2014-11-16 21:34 Mirrorhanman 阅读(255) 评论(0) 推荐(0)
摘要:1.Media Palyback The Android multimedia framework includes support for playing variety of common media types, so that you can easily integrate audio,... 阅读全文
posted @ 2014-11-07 22:33 Mirrorhanman 阅读(662) 评论(0) 推荐(0)
摘要:1. Custom Components Android offers a sophisticated and powerful componentized model for building your UI, based on the fundamental layout classes: ... 阅读全文
posted @ 2014-11-07 20:52 Mirrorhanman 阅读(132) 评论(0) 推荐(0)
摘要:could be changed into// res/value/style 阅读全文
posted @ 2014-11-07 20:51 Mirrorhanman 阅读(122) 评论(0) 推荐(0)
摘要:Applications built for Android are more accessible to users with visual, physical or age-related limitations when those users activate accessibility s... 阅读全文
posted @ 2014-11-07 20:38 Mirrorhanman 阅读(119) 评论(0) 推荐(0)
摘要:package mirror.android.dragdrop;import android.app.Activity;import android.content.ClipDescription;import android.os.Bundle;import android.view.DragEv... 阅读全文
posted @ 2014-11-07 20:26 Mirrorhanman 阅读(226) 评论(0) 推荐(0)
摘要: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 ... 阅读全文
posted @ 2014-11-07 18:07 Mirrorhanman 阅读(253) 评论(0) 推荐(0)
摘要: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... 阅读全文
posted @ 2014-11-06 21:49 Mirrorhanman 阅读(298) 评论(0) 推荐(0)
摘要:1. ActionBar First added in Android 3.0(API level 11) 2. Working the Action Bar 2.1 Removing the action barActionBar actionBar = getSupportActionBa... 阅读全文
posted @ 2014-11-05 21:54 Mirrorhanman 阅读(387) 评论(0) 推荐(0)
摘要: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... 阅读全文
posted @ 2014-11-05 17:14 Mirrorhanman 阅读(387) 评论(0) 推荐(0)
摘要: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... 阅读全文
posted @ 2014-11-05 15:05 Mirrorhanman 阅读(212) 评论(0) 推荐(0)
摘要: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... 阅读全文
posted @ 2014-11-03 16:23 Mirrorhanman 阅读(233) 评论(0) 推荐(0)
摘要:This page defines more types of resources you can externalize, including: 阅读全文
posted @ 2014-11-03 15:40 Mirrorhanman 阅读(102) 评论(0) 推荐(0)
摘要: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 ... 阅读全文
posted @ 2014-11-03 15:38 Mirrorhanman 阅读(141) 评论(0) 推荐(0)
摘要: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... 阅读全文
posted @ 2014-11-03 15:35 Mirrorhanman 阅读(216) 评论(0) 推荐(0)
摘要:1. Menu Resource A menu resource defines an application menu (Options Menu, Context Menu, or submenu) that can be inflated with MenuInflater.//res/me... 阅读全文
posted @ 2014-11-03 14:56 Mirrorhanman 阅读(200) 评论(0) 推荐(0)
摘要: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 ... 阅读全文
posted @ 2014-11-03 14:26 Mirrorhanman 阅读(188) 评论(0) 推荐(0)
摘要:1. Drawable Resources There are several different types of drawables as follow2. Bitmap A bitmap image. Android supports bitmap files in a three for... 阅读全文
posted @ 2014-11-03 14:22 Mirrorhanman 阅读(166) 评论(0) 推荐(0)
摘要: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... 阅读全文
posted @ 2014-11-03 13:58 Mirrorhanman 阅读(177) 评论(0) 推荐(0)
摘要:1. Animation Resources An animation resource can define one of two types of animations: Property Animation Creates an animation by modifying an o... 阅读全文
posted @ 2014-11-03 13:21 Mirrorhanman 阅读(148) 评论(0) 推荐(0)