Android资源适配(2)

drawable-hdpi-finger与drawable-ldpi目录下面两张图片名称一样,但是图片不是同一张,分别是:

外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传

layout、layout-finger、layout-land-finger下面的main.xml文件内容分别是:

layout/main.xml

[html]  view plain copy

  1. <?xml version\="1.0" encoding\="utf-8"?>  
  2. <LinearLayout xmlns:android=“http://schemas.android.com/apk/res/android”

  3. android:orientation=“vertical”

  4. android:layout_width=“fill_parent”

  5. android:layout_height=“fill_parent”

  6. >

  7. <ImageView

  8. android:layout_width=“wrap_content”

  9. android:layout_height=“wrap_content”

  10. android:src=“@drawable/icon”

  11. />

  12. <Button

  13. android:layout_width=“wrap_content”

  14. android:layout_height=“wrap_content”

  15. android:background=“@drawable/icon”

  16. />

  17. <TextView

  18. android:layout_width=“fill_parent”

  19. android:layout_height=“fill_parent”

  20. android:text=“layout only”/>

  21. </LinearLayout>

layout-finger/main.xml

[html]  view plain copy

  1. <?xml version\="1.0" encoding\="utf-8"?>  
  2. <LinearLayout xmlns:android=“http://schemas.android.com/apk/res/android”

  3. android:orientation=“vertical”

  4. android:layout_width=“fill_parent”

  5. android:layout_height=“fill_parent”

  6. >

  7. <ImageView

  8. android:layout_width=“wrap_content”

  9. android:layout_height=“wrap_content”

  10. android:src=“@drawable/icon”

  11. />

  12. <Button

  13. android:layout_width=“wrap_content”

  14. android:layout_height=“wrap_content”

  15. android:background=“@drawable/icon”

  16. />

  17. <TextView

  18. android:layout_width=“fill_parent”

  19. android:layout_height=“fill_parent”

  20. android:text=“layout-finger”/>

  21. </LinearLayout>

layout-land-finger/main.xml

[html]  view plain copy

  1. <?xml version\="1.0" encoding\="utf-8"?>  
  2. <LinearLayout xmlns:android=“http://schemas.android.com/apk/res/android”

  3. android:orientation=“vertical”

  4. android:layout_width=“fill_parent”

  5. android:layout_height=“fill_parent”

  6. >

  7. <ImageView

  8. android:layout_width=“wrap_content”

  9. android:layout_height=“wrap_content”

  10. android:src=“@drawable/icon”

  11. />

  12. <Button

  13. android:layout_width=“wrap_content”

  14. android:layout_height=“wrap_content”

  15. android:background=“@drawable/icon”

  16. />

  17. <TextView

  18. android:layout_width=“fill_parent”

  19. android:layout_height=“fill_parent”

  20. android:text=“layout-land-finger”/>

  21. </LinearLayout>

学习分享

在当下这个信息共享的时代,很多资源都可以在网络上找到,只取决于你愿不愿意找或是找的方法对不对了

很多朋友不是没有资料,大多都是有几十上百个G,但是杂乱无章,不知道怎么看从哪看起,甚至是看后就忘

如果大家觉得自己在网上找的资料非常杂乱、不成体系的话,我也分享一套给大家,比较系统,我平常自己也会经常研读。

2021最新上万页的大厂面试真题

七大模块学习资料:如NDK模块开发、Android框架体系架构…

只有系统,有方向的学习,才能在段时间内迅速提高自己的技术。

这份体系学习笔记,适应人群:
第一,学习知识比较碎片化,没有合理的学习路线与进阶方向。
第二,开发几年,不知道如何进阶更进一步,比较迷茫。
第三,到了合适的年纪,后续不知道该如何发展,转型管理,还是加强技术研究。如果你有需要,我这里恰好有为什么,不来领取!说不定能改变你现在的状态呢!
由于文章内容比较多,篇幅不允许,部分未展示内容以截图方式展示
《Android学习笔记总结+移动架构视频+大厂面试真题+项目实战源码》
点击传送门,即可获取!

纪,后续不知道该如何发展,转型管理,还是加强技术研究。如果你有需要,我这里恰好有为什么,不来领取!说不定能改变你现在的状态呢!
由于文章内容比较多,篇幅不允许,部分未展示内容以截图方式展示
《Android学习笔记总结+移动架构视频+大厂面试真题+项目实战源码》
点击传送门,即可获取!

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值