Skip to content

Commit fd8f6cf

Browse files
committed
悬浮窗与通用列表
1 parent bc31b6d commit fd8f6cf

File tree

6 files changed

+100
-5
lines changed

6 files changed

+100
-5
lines changed

SUMMARY.md

+1
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@
7474
* [lib-immersive](use/libs/ui/lib-immersive.md)
7575
* [lib-file-select](use/libs/ui/lib-file-select.md)
7676
* [lib-textview](use/libs/ui/lib-textview.md)
77+
* [lib-textview](use/libs/ui/lib-textview.md)
7778
* [路由相关]()
7879
* [lib-router](use/libs/router/lib-router.md)
7980
* [lib-router-compiler](use/libs/router/lib-router-compiler.md)

use/common/common-list.md

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# CommonList
2+
3+
![CommonList](https://img.shields.io/badge/AndroidAppFactory-CommonList-brightgreen)
4+
[ ![Github](https://img.shields.io/badge/Github-CommonList-brightgreen?style=social) ](https://github.com/bihe0832/AndroidAppFactory/tree/master/CommonList)
5+
[ ![Maven Central](https://img.shields.io/maven-central/v/com.bihe0832.android/common-list) ](https://search.maven.org/artifact/com.bihe0832.android/common-list)
6+
7+
## 功能简介
8+
9+
基于公共框架的通用列表页面,列表样式
10+
11+
## 组件信息
12+
13+
#### 引用仓库
14+
15+
引用仓库可以参考 [组件使用](./../start.md) 中添加依赖的部分
16+
17+
#### 组件使用
18+
19+
```groovy
20+
implementation 'com.bihe0832.android:common-list:+'
21+
```
22+
23+
## 组件功能
24+
25+
### BaseListActivity & BaseListFragment
26+
27+
一款通用的包含一个recycleView的列表页,目前支持:下拉刷新、加载更多、添加header、列表为空展示空页面等
28+
29+
### CardItemForCommonList
30+
31+
BaseListActivity & BaseListFragment 中的UI卡片的数据结构
32+
33+
### CommonListActivity & CommonListFragment
34+
35+
对于 BaseListActivity & BaseListFragment 的进一步封装,分别使用了LibRefresh 提供的两种下拉刷新方式
36+
37+
使用事例,可以参照:https://github.com/bihe0832/AndroidAppFactory/tree/master/BaseTest/src/main/java/com/bihe0832/android/base/test/card/

use/libs/noui/lib-debug.md

+4
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,7 @@ implementation 'com.bihe0832.android:lib-debug:+'
2828

2929
<img src="./lib-debug.png"/>
3030

31+
### DebugLogTips
32+
33+
- 支持悬浮窗形式滚动列表,展示调试信息,**使用前需要初始化**
34+

use/libs/noui/lib-gson.md

+18-2
Original file line numberDiff line numberDiff line change
@@ -34,15 +34,22 @@ implementation 'com.bihe0832.android:lib-gson:+'
3434

3535
- 对于特殊字段,支持不解析,直接返回String(Gson)添加 ` @JsonAdapter(RawStringJsonAdapter.class)` 设置字段不解析。例如:
3636

37+
- 对于Bollean,支持添加 ` @JsonAdapter(BooleanTypeAdapter.class)` 设置解析。例如:
38+
39+
3740
```java
3841
public class JsonTest {
3942

4043
@SerializedName("key")
4144
private int key;
4245

43-
@SerializedName("value")
46+
@SerializedName("value1")
4447
@JsonAdapter(RawStringJsonAdapter.class)
45-
private String data = "";
48+
private String data1 = "";
49+
50+
@SerializedName("value2")
51+
@JsonAdapter(BooleanTypeAdapter.class)
52+
private boolean data2 = false;
4653

4754
public int getKey(){
4855
return key;
@@ -51,6 +58,15 @@ public class JsonTest {
5158
public void setKey(int key) {
5259
this.key = key;
5360
}
61+
62+
@Override
63+
public String toString() {
64+
return "JsonTest{" +
65+
"key=" + key +
66+
", data1='" + data1 + '\'' +
67+
", data2=" + data2 +
68+
'}';
69+
}
5470
}
5571
```
5672

use/libs/ui/lib-float-view.md

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# LibFloatview
2+
3+
![LibFloatview](https://img.shields.io/badge/AndroidAppFactory-LibFloatview-brightgreen)
4+
[ ![Github](https://img.shields.io/badge/Github-LibFloatview-brightgreen?style=social) ](https://github.com/bihe0832/AndroidAppFactory/tree/master/LibFloatview)
5+
[ ![Maven Central](https://img.shields.io/maven-central/v/com.bihe0832.android/lib-float-view)](https://search.maven.org/artifact/com.bihe0832.android/lib-float-view)
6+
7+
## 功能简介
8+
9+
Android 悬浮窗管理
10+
11+
## 组件信息
12+
13+
#### 引用仓库
14+
15+
引用仓库可以参考 [组件使用](./../start.md) 中添加依赖的部分
16+
17+
#### 组件使用
18+
19+
```groovy
20+
implementation 'com.bihe0832.android:lib-float-view:+'
21+
```
22+
23+
## 组件功能
24+
25+
### IconManager
26+
27+
- 悬浮窗管理,自带一个IconView,负责悬浮窗的展示、隐藏、各种定制类型等
28+
29+
### IconView
30+
31+
- 提示Icon类悬浮窗,实现了:位置跟随、自动靠边、自动虚幻、自动隐藏、红点提醒等
32+
33+
### BaseIconView
34+
35+
- 常用悬浮窗的基类,实现了手指跟随

use/libs/ui/lib-permission.md

+5-3
Original file line numberDiff line numberDiff line change
@@ -26,19 +26,21 @@ implementation 'com.bihe0832.android:lib-permission:+'
2626

2727
### PermissionDialog
2828

29-
- 检查权限的引导弹框
29+
- 检查权限的引导弹框、可配合PermissionsActivity 继承后实现自定义界面
30+
31+
- 支持同时申请单一权限或者多个权限
3032

3133
### PermissionManager
3234

3335
- 添加权限弹框时的权限说明
3436

35-
- 检查权限并弹框引导
37+
- 检查权限并弹框引导,结果回调更精细、支持相同权限不同场景的文案配置
3638

3739
- 基于 [IntentUtils](./../noui/lib-utils-apk.md#intentutils) 打开对应权限的设置页面,具体权限对应的设置页面的跳转参数可以参考 [Android 权限 及设置描述信息](https://blog.bihe0832.com/android-permission.html)
3840

3941
### PermissionsActivity
4042

41-
- 检查权限并弹框引导的中转页
43+
- 检查权限并弹框引导的中转页、可继承并定制
4244

4345
### FloatPermissionWrapper
4446

0 commit comments

Comments
 (0)