From d98ae14825ad27d0c73c32a8756e301f1a2ab72d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=BE=90=E8=B5=9B=E8=B5=9B?= <15868191030@163.com>
Date: Thu, 26 Aug 2021 14:23:24 +0800
Subject: [PATCH 1/2] =?UTF-8?q?pref:=E5=9C=A8README=E4=B8=AD=E8=AF=A6?=
=?UTF-8?q?=E7=BB=86=E8=AF=B4=E6=98=8Exml=E8=AE=BE=E7=BD=AE=E6=96=87?=
=?UTF-8?q?=E5=AD=97=E5=86=85=E5=AE=B9=E4=B8=BB=E5=8A=A8=E6=8D=A2=E8=A1=8C?=
=?UTF-8?q?=EF=BC=8C=E9=9C=80=E8=A6=81=E4=BD=BF=E7=94=A8=E2=80=99
?=
=?UTF-8?q?=E2=80=98=E3=80=82?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
README.md | 34 +++++++++++++++----
.../resources/base/layout/ability_grid.xml | 2 +-
.../resources/base/layout/ability_list.xml | 20 +++++------
3 files changed, 39 insertions(+), 17 deletions(-)
diff --git a/README.md b/README.md
index a6c6f82..f1dd3ba 100644
--- a/README.md
+++ b/README.md
@@ -26,7 +26,8 @@
```
# 用法
- `XML` init:
+ ###`XML` init:
+打坦克游戏例子
```xml
```
+打砖块游戏例子(在xml里设置text文字内容时,主动换行只能使用`
`,而不是\n)
+```xml
+
+
+
+
+```
-初始化控件,设置文字描述
+### 初始化控件,设置文字描述
```java
refreshView = (FunGameRefreshView) findComponentById(ResourceTable.Id_refresh_fun_game);
refreshView.setLoadingText("玩个游戏解解闷");
@@ -55,7 +77,7 @@
```
-监听刷新事件
+### 监听刷新事件
```java
refreshView.setOnRefreshListener(new FunGameRefreshView.FunGameRefreshListener() {
@Override
@@ -76,14 +98,14 @@ refreshView.setOnRefreshListener(new FunGameRefreshView.FunGameRefreshListener()
| middle_model_color | 动画中间运动的小球颜色 |
| right_model_color |动画右边部位颜色 |
| game_type | 游戏种类(0为打砖块,1为打坦克) |
-| mask_top_text | 上边帷幕中的文字 |
-| mask_bottom_text | 下边帷幕中的文字 |
+| mask_top_text | 上边帷幕中的文字(在xml里设置text文字内容时,主动换行只能使用`
`,而不是\n) |
+| mask_bottom_text | 下边帷幕中的文字 (在xml里设置text文字内容时,主动换行只能使用`
`,而不是\n)|
| text_loading | 加载开始文字 |
| text_loading_finished | 加载结束文字 |
| text_game_over | 游戏结束文字|
| top_text_size | 上边帷幕中的文字大小 |
| bottom_text_size | 下边帷幕中的文字大小 |
-| block_horizontal_num | 挡板长度 |
+| block_horizontal_num | 挡板横向排列的数目 |
| ball_speed | 小球速度(默认为medium(6),速度为固定的三种:low、medium、fast) |
# Licence
diff --git a/entry/src/main/resources/base/layout/ability_grid.xml b/entry/src/main/resources/base/layout/ability_grid.xml
index 1e32365..49eaf65 100644
--- a/entry/src/main/resources/base/layout/ability_grid.xml
+++ b/entry/src/main/resources/base/layout/ability_grid.xml
@@ -2,8 +2,8 @@
-
+
+
-
+
\ No newline at end of file
--
Gitee
From 04cc9a22d7b13231edbb4a58649190a9c04cf4fe Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=BE=90=E8=B5=9B=E8=B5=9B?= <15868191030@163.com>
Date: Thu, 26 Aug 2021 06:30:29 +0000
Subject: [PATCH 2/2] =?UTF-8?q?update=20README.md.=20=E8=AE=BE=E7=BD=AE?=
=?UTF-8?q?=E5=B0=8F=E6=A0=87=E9=A2=98?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
README.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/README.md b/README.md
index f1dd3ba..1af3ba8 100644
--- a/README.md
+++ b/README.md
@@ -26,7 +26,7 @@
```
# 用法
- ###`XML` init:
+ ### `XML` init:
打坦克游戏例子
```xml