Android ApiDemos示例解析(1):创建ApiDemo示例
Android SDK中带有很多例子,其中ApiDemo详细介绍了Android平台主要API,分成了
App
Content
Graphics
Media
OS
Text
Views
几个大类,每个大类又分为几个小类,一共大约有200多个实例,涵盖了Android OS API的各个方面:下面是所有示例的列表:
App/Activity/Animation |
App/Activity/Custom Dialog |
App/Activity/Custom Title |
App/Activity/Dialog |
App/Activity/Forwarding |
App/Activity/Hello World |
App/Activity/Persistent State |
App/Activity/QuickContactsDemo |
App/Activity/Receive Result |
App/Activity/Redirection |
App/Activity/Reorder Activities |
App/Activity/Save & Restore State |
App/Activity/SetWallpaper |
App/Activity/Translucent |
App/Activity/Translucent Blur |
App/Activity/Wallpaper |
App/Alarm/Alarm Controller |
App/Alarm/Alarm Service |
App/Device Admin |
App/Dialog |
App/Intents |
App/Launcher Shortcuts |
App/Menu/Inflate from XML |
App/Notification/IncomingMessage |
App/Notification/Notifying Service Controller |
App/Notification/NotifyWithText |
App/Notification/Status Bar |
App/Preferences/1. Preferences from XML |
App/Preferences/2. Launching preferences |
App/Preferences/3. Preference dependencies |
App/Preferences/4. Default values |
App/Preferences/5. Preferences from code |
App/Preferences/6. Advanced preferences |
App/Search/Invoke Search |
App/Search/Query Search Results |
App/Service/Foreground Service Controller |
App/Service/Local Service Binding |
App/Service/Local Service Controller |
App/Service/Messenger Service |
App/Service/Remote Service Binding |
App/Service/Remote Service Controller |
App/Service/Service Start Arguments Controller |
App/Text-To-Speech |
App/Voice Recognition |
Content/Assets/Read Asset |
Content/Resources/Resources |
Content/Resources/Styled Text |
Content/Storage/External Storage |
Graphics/AlphaBitmap |
Graphics/AnimateDrawables |
Graphics/Arcs |
Graphics/BitmapDecode |
Graphics/BitmapMesh |
Graphics/BitmapPixels |
Graphics/CameraPreview |
Graphics/Clipping |
Graphics/ColorFilters |
Graphics/ColorMatrix |
Graphics/Compass |
Graphics/CreateBitmap |
Graphics/Density |
Graphics/Drawable/GradientDrawable |
Graphics/Drawable/ShapeDrawable |
Graphics/FingerPaint |
Graphics/Layers |
Graphics/MeasureText |
Graphics/OpenGL ES/Compressed Texture |
Graphics/OpenGL ES/Cube Map |
Graphics/OpenGL ES/Frame Buffer Object |
Graphics/OpenGL ES/GLSurfaceView |
Graphics/OpenGL ES/Kube |
Graphics/OpenGL ES/Matrix Palette Skinning |
Graphics/OpenGL ES/OpenGL ES 2.0 |
Graphics/OpenGL ES/Sprite Text |
Graphics/OpenGL ES/Textured Triangle |
Graphics/OpenGL ES/Touch Rotate |
Graphics/OpenGL ES/Translucent GLSurfaceView |
Graphics/PathEffects |
Graphics/PathFillTypes |
Graphics/Patterns |
Graphics/Pictures |
Graphics/Points |
Graphics/PolyToPoly |
Graphics/PurgeableBitmap/NonPurgeable |
Graphics/PurgeableBitmap/Purgeable |
Graphics/Regions |
Graphics/RoundRects |
Graphics/ScaleToFit |
Graphics/SensorTest |
Graphics/SurfaceView Overlay |
Graphics/Sweep |
Graphics/Text Align |
Graphics/Touch Paint |
Graphics/Typefaces |
Graphics/UnicodeChart |
Graphics/Vertices |
Graphics/Xfermodes |
Media/MediaPlayer |
Media/VideoView |
OS/Morse Code |
OS/Sensors |
OS/SMS Messaging |
Text/Linkify |
Text/LogTextBox |
Text/Marquee |
Views/Animation/3D Transition |
Views/Animation/Interpolators |
Views/Animation/Push |
Views/Animation/Shake |
Views/Auto Complete/1. Screen Top< |