From d1b66693a70d874fbbc853b39f9ecd112242684c Mon Sep 17 00:00:00 2001 From: Myue <30486389+qxwlmz@users.noreply.github.com> Date: Mon, 26 Jul 2021 19:55:33 +0800 Subject: [PATCH] Upload files online First Commit For Source Code --- UI.js | 333 ++++++++++++++ challengeAnswer.js | 79 ++++ collectCommentShare.js | 71 +++ competition.js | 179 ++++++++ dailyAnswer.js | 76 ++++ floating.js | 129 ++++++ main.js | 7 + project.json | 26 ++ questionCommon.js | 955 +++++++++++++++++++++++++++++++++++++++++ readme.md | 21 + tikuCommon.js | 255 +++++++++++ 11 files changed, 2131 insertions(+) create mode 100644 UI.js create mode 100644 challengeAnswer.js create mode 100644 collectCommentShare.js create mode 100644 competition.js create mode 100644 dailyAnswer.js create mode 100644 floating.js create mode 100644 main.js create mode 100644 project.json create mode 100644 questionCommon.js create mode 100644 readme.md create mode 100644 tikuCommon.js diff --git a/UI.js b/UI.js new file mode 100644 index 0000000..c56c73f --- /dev/null +++ b/UI.js @@ -0,0 +1,333 @@ +"ui"; +//auto("fast"); +importClass(android.view.View); +var tikuCommon = require("./tikuCommon.js"); +let deviceWidth = device.width; + +let margin = parseInt(deviceWidth * 0.02); + +//记录集数组 重要!!! +let qaArray = []; + +ui.layout( + + + + + + + + +