1.怎样导入APIDemos
参考自:http://www.cnblogs.com/xincdm/archive/2011/07/21/2113104.html
新建android工程,选择create project from existing source,
在location中选择需要导入的ApiDemos路径(android-sdk/samples/android-x/ApiDemos)。
选择Build Target 不能低于 ApiDemos所用模拟器版本
2.APIDemos的内容
参考自:http://android.tgbus.com/Android/tutorial/201105/353894.shtml
包含7个部分App,Content,Graphics,Media,OS,Text,Views
App:应用的组成部分的示例,包括:Activity,Alarm,Device Admin,Dialog,Intents,Launcher Shortcuts,Menu,Notification,Preferences,Search,Service,Text-To-Speech,Voice Recognition
Content:资源类的调用示例:包括:Assets,Provider,Resources,Storage
Graphics:图形类示例:包括:AlphaBitmap,AnimateDrawables,Arcs,BitmapDecode,BitmapMesh,BitmapPixels,CameraPreview,Clipping,ColorFilters,ColorMatrix,Compass,CreateBitmap,Density,Drawable,FingerPaint,Layers,MeasureText,OpenGL ES,PathFillTypes,Patterns,Pictures,Points,PolyToPoly,Purgeablebitmap,Regions,RoundRects,ScaleToFit,SensorTest,Surface Window,SurfaceView Overlay,Sweep,Text Align,Touch Paint,Typefaces,UnicodeChart,Vertices,Xfermodes
Media:媒体部分示例:包括:AudioFx,MediaPlayer,VidesView
OS:系统部分示例: Morse Code,Sensors,SMS Messageing
Text:文本类控件示例:Linkify,LogTextBox,Marquee
Views:视图类示例:Animation,Auto Complete,Buttons,Chronometer,Controls,Custom,Date Widgets,Expandable Lists,Focus,Gallery,Grid,Imagebutton,ImageSwitcher,ImageView,Layout Animation,Layouts,Lists,Progess Bar,Radio Group,Rating Bar,ScrollBars,Secure View,Seek Bar,Spinner,Tabs,TestSwitcher,VisiBility,WebView