当前位置: 移动技术网 > IT编程>移动开发>Android > Android ApiDemo示例工程的创建

Android ApiDemo示例工程的创建

2019年07月24日  | 移动技术网IT编程  | 我要评论

华龙潮汕小品,工程师职称挂靠,实践论 读后感

  一般sdk中都会带有一些示例程序,说明具体用法,android sdk也是如此。它提供了一些apidemo示例,详细说明了android中主要api,分为以下几大类:

       1、app

       2、content

       3、graphics

       4、media

       5、os

       6、text

       7、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
views/auto complete/2. screen bottom
views/auto complete/3. scroll
views/auto complete/4. contacts
views/auto complete/5. contacts with hint
views/auto complete/6. multiple items
views/buttons
views/chronometer
views/controls/1. light theme
views/controls/2. default theme
views/custom
views/date widgets/1. dialog
views/date widgets/2. inline
views/expandable lists/1. custom adapter
views/expandable lists/2. cursor (people)
views/expandable lists/3. simple adapter
views/focus/1. vertical
views/focus/2. horizontal
views/focus/3. circular
views/focus/4. internal selection
views/gallery/1. photos
views/gallery/2. people
views/grid/1. icon grid
views/grid/2. photo grid
views/imagebutton
views/imageswitcher
views/imageview
views/layout animation/1. grid fade
views/layout animation/2. list cascade
views/layout animation/3. reverse order
views/layout animation/4. randomize
views/layout animation/5. grid direction
views/layout animation/6. wave scale
views/layout animation/7. nested animations
views/layouts/baseline/1. top
views/layouts/baseline/2. bottom
views/layouts/baseline/3. center
views/layouts/baseline/4. everywhere
views/layouts/baseline/5. multi-line
views/layouts/baseline/6. relative
views/layouts/baseline/nested example 1
views/layouts/baseline/nested example 2
views/layouts/baseline/nested example 3
views/layouts/linearlayout/1. vertical
views/layouts/linearlayout/10. background image
views/layouts/linearlayout/2. vertical (fill screen)
views/layouts/linearlayout/3. vertical (padded)
views/layouts/linearlayout/4. horizontal
views/layouts/linearlayout/5. simple form
views/layouts/linearlayout/6. uniform size
views/layouts/linearlayout/7. fill parent
views/layouts/linearlayout/8. gravity
views/layouts/linearlayout/9. layout weight
views/layouts/relativelayout/1. vertical
views/layouts/relativelayout/2. simple form
views/layouts/scrollview/1. short
views/layouts/scrollview/2. long
views/layouts/scrollview/3. internal selection
views/layouts/tablelayout/01. basic
views/layouts/tablelayout/02. empty cells
views/layouts/tablelayout/03. long content
views/layouts/tablelayout/04. stretchable
views/layouts/tablelayout/05. spanning and stretchable
views/layouts/tablelayout/06. more spanning and stretchable
views/layouts/tablelayout/07. column collapse
views/layouts/tablelayout/08. toggle stretch
views/layouts/tablelayout/09. toggle shrink
views/layouts/tablelayout/10. simple form
views/layouts/tablelayout/11. gravity
views/layouts/tablelayout/12. cell spanning
views/lists/1. array
views/lists/10. single choice list
views/lists/11. multiple choice list
views/lists/12. transcript
views/lists/13. slow adapter
views/lists/14. efficient adapter
views/lists/2. cursor (people)
views/lists/3. cursor (phones)
views/lists/4. listadapter
views/lists/5. separators
views/lists/6. listadapter collapsed
views/lists/7. cursor (phones)
views/lists/8. photos
views/lists/9. array (overlay)
views/progress bar/1. incremental
views/progress bar/2. smooth
views/progress bar/3. dialogs
views/progress bar/4. in title bar
views/radio group
views/rating bar
views/scrollbars/1. basic
views/scrollbars/2. fancy
views/scrollbars/3. style
views/seek bar
views/spinner
views/tabs/content by factory
views/tabs/content by id
views/tabs/content by intent
views/textswitcher
views/visibility
views/webview

       本示例解读系列将逐个介绍每个示例中涉及到的知识及相关类的用法.

       首先是使用eclipse创建一个apidemo示例工程:file ->new android project 选择create project from existing sample (不同android版本有对应的apidemo示例)。

 以上就是对android  apidemo 示例工程的创建,希望能帮助到有需要的小伙伴!

如对本文有疑问,请在下面进行留言讨论,广大热心网友会与你互动!! 点击进行留言回复

相关文章:

验证码:
移动技术网