Android 最佳实践

Android 最佳实践

此篇文章主要用来记录一些在日常Android开发中比较好用的一些库或者方法

1:TextView相关
  1. 通用TextView的封装:https://github.com/lygttpod/SuperTextView
  2. 带动画的文字:https://github.com/hanks-zyh/HTextView
  3. 一个倾斜的TextView:https://github.com/HeZaiJin/SlantedTextView
  4. 轮播的TextView: https://github.com/rosenpin/FadingTextView
  5. 部分文字上下滚动的TextView: https://github.com/sdsmdg/RotatingText
  6. BadgeTextView: https://github.com/matrixxun/MaterialBadgeTextView
2.Button相关
  1. 点赞动画按钮:https://github.com/ChadCSong/ShineButton
  2. 圆形加载:https://github.com/dmytrodanylyk/circular-progress-button
  3. 开关按钮:https://github.com/zcweng/SwitchButton
  4. 带动画渐变的按钮:https://github.com/dmytrodanylyk/android-morphing-button
  5. 滑动按钮:https://github.com/MAXDeliveryNG/slideview
2.流式布局
  1. 自定义Recyclerview的manager实现:https://github.com/BelooS/ChipsLayoutManager
3.选择器相关
  1. 通用行较强的:https://github.com/Bigkoo/Android-PickerView
4.Android 停靠边界的view
  1. https://link.juejin.im/?target=https%3A%2F%2Fgithub.com%2Fyhaolpz%2FFloatWindow
5.带扩展效果的视图容器
  1. https://github.com/florent37/ExpansionPanel
6.卡片效果的视图
  1. https://github.com/vipulasri/TicketView
7.Dialog最佳实践
  1. https://www.jianshu.com/p/526fcf3e8db3
  2. https://github.com/orhanobut/dialogplus
8.网络相关
  1. https://github.com/orhanobut/wasp 统一实现方案
  2. https://github.com/romainguy/kotlin-math kotlin绘图数学帮助类
9.辅助工具
  1. 日志工具:https://github.com/orhanobut/logger
10.数据存储
  1. 键值对存储:https://github.com/orhanobut/hawk
    2.数据库存储:ormLite
  2. 支持断点续传的文件下载库:https://github.com/MindorksOpenSource/PRDownloader
  3. 该库提供了一种将敏感数据加密到原生 .so 库的简单方法。
    https://github.com/MEiDIK/Cipher.so
  4. https://github.com/Tencent/MMKV 鹅厂的键值对存储
11.通用帮助类
  1. https://github.com/Blankj/AndroidUtilCode/blob/master/subutil/README-CN.md
12.动画库
  1. https://github.com/dev-labs-bg/transitioner 视图到视图的过度动画
    A library for dynamic view-to-view transitions
  2. https://github.com/florent37/MyLittleCanvas 方便添加绘图效果的库
  3. UI效果库 https://github.com/wasabeef/awesome-android-ui
13.Android中阴影和外观效果
  1. 在线制作.9图效果https://inloop.github.io/shadow4android
  2. 动态阴影
    1. https://juejin.im/post/5a93943c5188257a76634c4d
    2. https://link.juejin.im/?target=https%3A%2F%2Fgithub.com%2Fiammert%2FScalingLayout
    3. https://juejin.im/entry/58d75fb8570c350058da3b24
  3. 图片阴影
    1.https://github.com/yingLanNull/ShadowImageView/blob/master/READEME_CN.md
  4. 视图高度和阴影
    1. https://juejin.im/post/58b58a4d128fe10065eae4b0
  5. 给view设置轮廓:
ViewOutlineProvider viewOutlineProvider = new ViewOutlineProvider() {   
  public void getOutline(View view, Outline outline) {  
       // 可以指定圆形,矩形,圆角矩形,path  
       outline.setOval(0, 0, view.getWidth(), view.getHeight());   } }; 		
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值