• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
山高我为峰
博客园    首页    新随笔    联系   管理    订阅  订阅
2016年9月5日
android 常见分辨率(mdpi、hdpi 、xhdpi、xxhdpi )及屏幕适配注意事项
摘要: 1 Android手机目前常见的分辨率 1.1 手机常见分辨率: 4:3VGA 640*480 (Video Graphics Array)QVGA 320*240 (Quarter VGA)HVGA 480*320 (Half-size VGA)SVGA 800*600 (Super VGA) 5 阅读全文
posted @ 2016-09-05 15:33 山高我为峰 阅读(643) 评论(0) 推荐(0)
Android之drawable state各个属性详解
摘要: 官方对各个state属性的介绍如下: android:constantSize If true, the drawable's reported internal size will remain constant as the state changes; the size is the maxi 阅读全文
posted @ 2016-09-05 11:52 山高我为峰 阅读(3059) 评论(0) 推荐(0)
cycleInterpolator 循环加速器
摘要: CycleInterpolator 作用:如果要让动画连续执行多次,可以使用cycleInterpolator加速器 设置方法: 阅读全文
posted @ 2016-09-05 11:43 山高我为峰 阅读(1045) 评论(0) 推荐(0)
Android receiver
摘要: 可以在代码文件中声明一个receiver,也可以在manifest中声明一个,前者中的receiver只有在该activity launch起来以后才会监听其所感兴趣的事件, 而如果在androidManifext.xml中声明的话,就不受限制,随时可以监听感兴趣的事件。 首先谈谈在androidM 阅读全文
posted @ 2016-09-05 11:30 山高我为峰 阅读(6800) 评论(0) 推荐(0)
android:exported
摘要: 这个属性用于指示该服务是否能够被其他应用程序组件调用或跟它交互。如果设置为true,则能够被调用或交互,否则不能。设置为false时,只有同一个应用程序的组件或带有相同用户ID的应用程序才能启动或绑定该服务。它的默认值依赖与该服务所包含的过滤器。没有过滤器则意味着该服务只能通过指定明确的类名来调用, 阅读全文
posted @ 2016-09-05 11:20 山高我为峰 阅读(228) 评论(0) 推荐(0)
android:launchMode的四种方式
摘要: Activity一共有以下四种launchMode: standard singleTop singleTask singleInstance 1.standard standard模式是默认的启动模式,不用为<activity>配置android:launchMode属性即可,当然也可以指定值为s 阅读全文
posted @ 2016-09-05 11:05 山高我为峰 阅读(6515) 评论(0) 推荐(0)
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3