刚开始学Android

来源:互联网 发布:如何登录windows账户 编辑:程序博客网 时间:2024/05/16 10:05

今天刚开始学Android,把环境搭建好了后,就开始找资料学习了。先是找了些视频看看,结果看了点,就坚持不下去了。最后到官网去,发现官网上还有教程,虽然是英文了,但我还是耐着性子看了下去。

结果知道的就是比直接看视频懂的多,了解的详细,比如为什么要用xml文件布局等等。用官方的说法就是:. 避免small changes in layout can result in big source-code headaches等情况的发生。

以下是学习笔记:

1.When you want a different design for landscape, put your layout XML file inside /res/layout-land. Android will automatically look here when the layout changes. Without this special landscape layout defined, Android will stretch the default layout.

待续……

原创粉丝点击