GithubHelp home page GithubHelp logo

fengning0901 / apidemos Goto Github PK

View Code? Open in Web Editor NEW

This project forked from theone10211024/apidemos

0.0 1.0 0.0 9.78 MB

[DEPRECATED]google官方提供Android Api使用示例,堪称Android最好学习资料

Java 96.81% HTML 3.19%

apidemos's Introduction

google官方ApiDemo——完善的Android学习资

基于Android系统源码6.0的ApiDemos,使用Android Studio构建,compileSdkVersion 23,buildToolsVersion "23.0.3",支持 InstantRun

ApiDemo非常全面的介绍了Android开发中常见的Api使用方式。比如Activity、Fragment、Animation、Dialog、OS、Notification、多媒体、图片绘制、NFC、各种view等等,可谓一应俱全! 在阅读源代码过程中,我遇到了很多晦涩难懂的地方。我希望将不明白的地方加上注释,便于在重温的过程中更快找回当时的感觉。我还记得我的初衷是该project的边边角角吃透,写出注释,很久以后当我再次看到这段代码的时候,我能很快知道他是干什么的,我也希望将我的阅读分享出来,供大家批评指正。当然,我更希望越来越多的人加入到这个“阅读”工作中来,添加上你的“阅读心得”,形成一本比较完整的“源代码”教科书。 如下是APIDemo部分截图

主界面

p1

Animation

主要演示了属性动画的特点和使用方法。

p2

App

展示了包括ActionBar、Activity、对话框、fragment、serivice、notification、menue等常见类的使用方法。每一行里面又包含了很多更细节的东西。

p3

Content

主要介绍了Assets、ClipBoard、Packages、Provider和Storage等的使用方法。

p4

Graphics

主要介绍了Canvas、Bitmap、Paint等绘图工具的使用,想了解怎么在canvas上绘制文字、图形等…想要写出优秀的自定义控件的…本章的学习必不可少!

p5

Media

多媒体相关的介绍。

p6

NFC

NFC开发也是越来越流行的,这里应该有你想要的。

p7

OS

主要介绍了Morse Code、Rotation Vector、Sensors和SMS Messaging。

p8

Preference

Android一大重要的持久化存储方式——Preference,本章的介绍非常丰富,几乎涵盖所有。

p9

Text

主要介绍了Linkify、LogTextBox、Marquee的使用方式。

p10

Views

Android原生View的介绍,包括常见的动画、拖拽等操作,常见的Widget的使用方法等。在Android的基础开发中,90%都在和各种各样的View打交道,因此学会这一章所有控件的使用,Android开发基本就入门了!

p11

总结

read the fuck source code!
                  ——linus

apidemos's People

Contributors

theone10211024 avatar imesong avatar aymandf avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.