Thinking in Google Doc-不同设备适配
对于Android开发,适配主要指下面3个方面: 1.语言适配 国际化,最基本的方法是建立多个string.xml文件。 另外,肯定有其它国际化的方法 。 2.屏幕适配(包括layout和bitmaps适配) 3.版本适配(在低版本平台上运行高版本API) 使用Android Support Library这个支持库 The Android Support Library package is a set of code libraries(一系列代码库的集合) ----- v4 Support Library 如ViewPager、Fragment -----Multidex Support Library http://blog.csdn.net/t12x3456/article/details/40837287 解决集成sdk重复类的问题 -----v7 Support Libraries |------v7 appcompat library 如ActionBar,AppcompatActivity |------v7 cardview library |-----v7 gridlayout library |------v7 recyclerview library -----V8、V13、V17,所谓的V指的就是Version。 -----Annotations Support Library -----Design Support Library 兼容性更广,直接可以向下兼容到Android 2.2 支持Meterial Design,做出更炫的界面。 http://www.androidchina.net/1381.html 对于MeterialDesign里的各个组件作了详细的介绍 http://blog.csdn.net/eclipsexys/article/details/46349721 Snackbar使用及其注意事项http://www.jcodecraeer.com/plus/view.php?aid=3187 TextInputLayout FloatingActionButton 圆形按钮http://blog.csdn.net/lmj623565791/article/details/46678867 相当于一个ImageView TabLayout http://www.bubuko.com/infodetail-977938.html(简单地实现页面滑动) NavigationView 导航界面的(封装了头布局和菜单布局) AppBarLayout 对ToolBar和TabLayout的封装 CollapsingToolbarLayout 可以折叠的ToolBar 本文转自屠夫章哥 51CTO博客,原文链接:http://blog.51cto.com/4259297/1715677,如需转载请自行联系原作者