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