上一页 1 ··· 22 23 24 25 26 27 28 29 30 ··· 34 下一页
摘要: Implementing Adaptative UI Flows Depending on the layout that your application is currently showing, the UI flow may be different. For example, if yo... 阅读全文
posted @ 2015-10-04 20:02 f9q 阅读(178) 评论(0) 推荐(0) 编辑
摘要: 1.基本思路 1,布局 多个layout目录,在layout下存放各种屏幕大小对应的布局文件,然后在values-sw600dp,values-xhdip等为各屏幕大小的布局文件生成相同的别名。注意是values-sw600dp不是layout-sw600dp 2,图片 .9图片 2.Support 阅读全文
posted @ 2015-10-04 19:52 f9q 阅读(310) 评论(0) 推荐(0) 编辑
摘要: Supporting Different Densities This lesson shows you how to support different screen densities by providing different resources and using resolution-i 阅读全文
posted @ 2015-10-04 19:24 f9q 阅读(186) 评论(0) 推荐(0) 编辑
摘要: 1.官方文档 https://developer.android.com/guide/topics/display-cutout 从 Android 9 开始正式支持刘海屏。9以下的参考各厂商文档。 2.刘海屏要求 一条边缘最多只能包含一个刘海。 一台设备不能有两个以上的刘海。 设备的两条较长边缘上 阅读全文
posted @ 2015-10-04 17:12 f9q 阅读(232) 评论(0) 推荐(0) 编辑
摘要: 1.官方文档 如何支持不同尺寸的屏幕: https://developer.android.com/training/multiscreen/screensizes 有哪些资源支持备用 https://developer.android.com/guide/topics/resources/prov 阅读全文
posted @ 2015-10-04 17:08 f9q 阅读(347) 评论(0) 推荐(0) 编辑
摘要: 国际化 与字符串国际相似,在 res 下新建 drawable-zh 文件夹,存放中文环境下的图片 新建 drawable-en 作为英语环境下的图片 在 eclipse 下新建 Android 项目时,会在 res 目录下自动创建三个默认语言环境的文件夹: drawable-hdpi d... 阅读全文
posted @ 2015-10-02 10:59 f9q 阅读(519) 评论(0) 推荐(0) 编辑
摘要: 1.官方文档: https://developer.android.com/guide/topics/resources/string-resource 2.格式化字符串 2.1 示例 <resources> <string name="app_name">DataBind</string> <st 阅读全文
posted @ 2015-10-02 10:32 f9q 阅读(2803) 评论(0) 推荐(0) 编辑
摘要: 注意Color State List Resource 与 Color不同,前者是颜色状态表.根据不同状态显示不同颜色,它是State list,里面有多种颜色,后者只是一个颜色.Color State List Resource AColorStateListis an object you... 阅读全文
posted @ 2015-09-25 15:14 f9q 阅读(287) 评论(0) 推荐(0) 编辑
摘要: State List AStateListDrawableis a drawable object defined in XML that uses a several different images to represent the same graphic, depending on the... 阅读全文
posted @ 2015-09-23 23:58 f9q 阅读(211) 评论(0) 推荐(0) 编辑
摘要: 简介 Drawable Resources(可绘资源) 是一系列可以在屏幕上被绘制的资源文件,它不只是图片,可以是 xml文件,在xml文件中配置各种绘制参数.常见Drawable ResourceBitmap File位图文件(.png,.jpg, or.gif),不是xmlNine-Patch... 阅读全文
posted @ 2015-09-23 20:05 f9q 阅读(513) 评论(0) 推荐(0) 编辑
摘要: Style ResourceSee also Styles and Themes A style resource defines the format and look for a UI. A style can be applied to an individualView(from wit... 阅读全文
posted @ 2015-09-22 17:52 f9q 阅读(364) 评论(0) 推荐(0) 编辑
摘要: 简介 Binder是Android系统提供的一种IPC(进程间通信)机制。由于Android是基于Linux内核的,因此,除了Binder外,还存在其他的IPC机制,例如管道和socket等。Binder相对于其他IPC机制来说,就更加灵活和方便了。Android系统基本上可以看作是一个基于Bin... 阅读全文
posted @ 2015-09-21 21:11 f9q 阅读(418) 评论(0) 推荐(0) 编辑
摘要: 简介 RefBase是Android中所有对象的始祖,类似MFC中的CObject及Java中的Object对象。在Android中,RefBase结合sp和wp,实现了一套通过引用计数的方法来控制对象生命周期的机制。RefBase的子类在构造一个实际对象的同时,还会悄悄地构造一个影子对象. s... 阅读全文
posted @ 2015-09-19 15:04 f9q 阅读(467) 评论(0) 推荐(0) 编辑
摘要: 简介 SystemServer的进程名实际上叫做“system_server”,通常简称为SS。 系统中的服务驻留在其中,常见的比如WindowManagerServer(Wms)、ActivityManagerSystemService(AmS)、 PackageManagerServer(PmS 阅读全文
posted @ 2015-09-19 11:22 f9q 阅读(1703) 评论(0) 推荐(1) 编辑
摘要: 简介 Zygote本身是一个Native的应用程序,和驱动、内核等均无关系。Zygote是由init进程根据init.rc文件中的配置项而创建的。 zygote最初的名字叫“app_process”,这个名字是在Android.mk文件中被指定的,但app_process在运行过程中,通过Li... 阅读全文
posted @ 2015-09-19 11:16 f9q 阅读(553) 评论(0) 推荐(0) 编辑
上一页 1 ··· 22 23 24 25 26 27 28 29 30 ··· 34 下一页