温馨提示×

温馨提示×

您好,登录后才能下订单哦!

密码登录×
登录注册×
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》

Thinking in Google Doc-不同设备适配

发布时间:2020-06-21 19:46:16 来源:网络 阅读:389 作者:屠夫章哥 栏目:移动开发

对于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

                  

                  

 



向AI问一下细节

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

AI