Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
/PakePlus-AndroidPublic template

Commit0422761

Browse files
committed
Format Default_Light.json for improved readability and consistency.
1 parent26d2956 commit0422761

File tree

27 files changed

+503
-40
lines changed

27 files changed

+503
-40
lines changed
Lines changed: 35 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,36 @@
11
{
2-
"nightMode":false,
3-
"statusBarDark":true,
4-
"colors": {
5-
"colorPrimary":"#ffffff",
6-
"colorAccent":"#03DAC5",
7-
"textColorPrimary":"#444444",
8-
"textColorSecondary":"#757575",
9-
"windowBackground":"#ffffff"
10-
},
11-
"drawerStyle": {
12-
"itemTextColor":"#444444",
13-
"itemIconTint":"#757575",
14-
"dividerColor":"#bdbdbd",
15-
"avatarSize":64,
16-
"avatarCornerSize":50,
17-
"headerMainTextSize":16,
18-
"headerMainTextBold":false,
19-
"headerSecondaryTextSize":12,
20-
"width":80
21-
},
22-
"indicatorStyle": {
23-
"lineColors": [
24-
"#EFDC05",
25-
"#2b90d9",
26-
"#fe4365",
27-
"#ff7473"
28-
],
29-
"titleNormalColor":"#444444",
30-
"titleSelectedColor":"#03DAC5",
31-
"textSize":15,
32-
"background":"#ffffff"
33-
},
34-
"toolbarStyle": {
35-
"searchBarTextColor":"#757575",
36-
"searchBarBackgroundColor":"#f5f5f5",
37-
"toolbarTitleSize":20,
38-
"toolbarSubtitleSize":12,
39-
"toolbarTitleBold":false
40-
}
41-
}
2+
"nightMode":false,
3+
"statusBarDark":true,
4+
"colors": {
5+
"colorPrimary":"#ffffff",
6+
"colorAccent":"#03DAC5",
7+
"textColorPrimary":"#444444",
8+
"textColorSecondary":"#757575",
9+
"windowBackground":"#ffffff"
10+
},
11+
"drawerStyle": {
12+
"itemTextColor":"#444444",
13+
"itemIconTint":"#757575",
14+
"dividerColor":"#bdbdbd",
15+
"avatarSize":64,
16+
"avatarCornerSize":50,
17+
"headerMainTextSize":16,
18+
"headerMainTextBold":false,
19+
"headerSecondaryTextSize":12,
20+
"width":80
21+
},
22+
"indicatorStyle": {
23+
"lineColors": ["#EFDC05","#2b90d9","#fe4365","#ff7473"],
24+
"titleNormalColor":"#444444",
25+
"titleSelectedColor":"#03DAC5",
26+
"textSize":15,
27+
"background":"#ffffff"
28+
},
29+
"toolbarStyle": {
30+
"searchBarTextColor":"#757575",
31+
"searchBarBackgroundColor":"#f5f5f5",
32+
"toolbarTitleSize":20,
33+
"toolbarSubtitleSize":12,
34+
"toolbarTitleBold":false
35+
}
36+
}
231 Bytes
Binary file not shown.
213 Bytes
Binary file not shown.
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
--
2+
-- @author 寒歌
3+
-- @description Main是应用的主模块,其中注册了应用运行中UI事件的回调、Activity生命周期的回调等
4+
-- 你也可以在此编写启动事件代码,或控制应用运行逻辑、自定义应用UI等等。
5+
-- @other 本模版已为你编写好基础事件,建议在阅读注释并理解相关参数意义后再进行扩展编写
6+
--
7+
8+
-- ****默认导入包****
9+
require"import"
10+
import"android.os.*"
11+
import"android.widget.*"
12+
import"android.view.*"
13+
-- ****不需要请删除****
14+
15+
-- @param data 侧滑栏列表的全部数据
16+
-- @param recyclerView 侧滑栏列表控件
17+
-- @param listIndex 点击的列表索引(点击的是第几个列表)
18+
-- @param clickIndex 点击的项目索引(点击的第几个项目)
19+
functiononDrawerListItemClick(data,recyclerView,listIndex,itemIndex)
20+
--侧滑栏列表的数据是二维结构,所以需要先获取到点击项目所在列表的数据
21+
locallistData=data.get(listIndex);
22+
--获取到所在列表的数据后获取点击项目的数据
23+
localitemData=listData.get(itemIndex);
24+
--最后获取到点击的项目的标题
25+
localitemTitle=itemData.getTitle();
26+
27+
--TODO:
28+
print(itemTitle)
29+
end
30+
31+
-- @param keyword 搜索栏输入的文本
32+
-- @description 顶栏搜索功能回调事件
33+
functiononSearchEvent(keyword)
34+
--TODO:
35+
print("Search keyword:"..keyword)
36+
end
37+
38+
-- @param title 点击的菜单标题
39+
-- @description 顶栏菜单项目点击回调事件
40+
functiononMenuItemClick(title)
41+
switch(title)do
42+
case"OverflowButton"
43+
print("Click : Overflow Button")
44+
defaultprint("Click :"..title)
45+
end
46+
end
47+
48+
49+
--悬浮按钮点击事件
50+
functiononFloatingActionButtonClick(v)
51+
print("floating action button click")
52+
end
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
{
2+
"drawer": {
3+
"avatarEnabled":false,
4+
"enabled":false,
5+
"list": [],
6+
"wallpaperEnabled":false
7+
},
8+
"fab": {"enabled":true,"src":"add" },
9+
"toolbar": {
10+
"autoHide":false,
11+
"enabled":true,
12+
"homeButtonEnabled":true,
13+
"menus": [
14+
{"title":"Menu1","type":1 },
15+
{"title":"Menu2","type":1 },
16+
{"title":"Menu3","type":1 },
17+
{"icon":"apps","title":"OverflowButton","type":0 }
18+
],
19+
"searchEnabled":true,
20+
"style":0,
21+
"subTitle":"",
22+
"title":"AppBar"
23+
},
24+
"viewPager": {
25+
"indGravity":0,
26+
"indStyle":0,
27+
"offscreenPageLimit":0,
28+
"pages": [],
29+
"userInputEnabled":false
30+
},
31+
"webView": {
32+
"colorMode":false,
33+
"darkMode":1,
34+
"javaScriptEnabled":true,
35+
"openOtherPageWays":2,
36+
"pcMode":false,
37+
"userAgent":"default"
38+
}
39+
}
265 Bytes
Binary file not shown.
671 Bytes
Binary file not shown.
458 Bytes
Binary file not shown.
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
--
2+
-- @author 寒歌
3+
-- @description Main是应用的主模块,其中注册了应用运行中UI事件的回调、Activity生命周期的回调等
4+
-- 你也可以在此编写启动事件代码,或控制应用运行逻辑、自定义应用UI等等。
5+
-- @other 本模版已为你编写好基础事件,建议在阅读注释并理解相关参数意义后再进行扩展编写
6+
--
7+
8+
-- ****默认导入包****
9+
require"import"
10+
import"android.os.*"
11+
import"android.widget.*"
12+
import"android.view.*"
13+
-- ****不需要请删除****
14+
15+
-- @param data 侧滑栏列表的全部数据
16+
-- @param recyclerView 侧滑栏列表控件
17+
-- @param listIndex 点击的列表索引(点击的是第几个列表)
18+
-- @param clickIndex 点击的项目索引(点击的第几个项目)
19+
functiononDrawerListItemClick(data,recyclerView,listIndex,itemIndex)
20+
--侧滑栏列表的数据是二维结构,所以需要先获取到点击项目所在列表的数据
21+
locallistData=data.get(listIndex);
22+
--获取到所在列表的数据后获取点击项目的数据
23+
localitemData=listData.get(itemIndex);
24+
--最后获取到点击的项目的标题
25+
localitemTitle=itemData.getTitle();
26+
27+
--TODO:
28+
29+
end
30+
31+
-- @param keyword 搜索栏输入的文本
32+
-- @description 顶栏搜索功能回调事件
33+
functiononSearchEvent(keyword)
34+
--TODO:onSearchEvent
35+
36+
end
37+
38+
-- @param title 点击的菜单标题
39+
-- @description 顶栏菜单项目点击回调事件
40+
functiononMenuItemClick(title)
41+
--TODO:onMenuItemClick
42+
43+
end
44+
45+
--悬浮按钮点击事件
46+
functiononFloatingActionButtonClick(v)
47+
--TODO:onFloatingActionButtonClick
48+
49+
end
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"drawer":{"avatarEnabled":false,"enabled":false,"list":[],"wallpaperEnabled":false},"fab":{"enabled":false,"src":"add"},"toolbar":{"autoHide":false,"enabled":true,"homeButtonEnabled":true,"menus":[],"searchEnabled":false,"style":0,"subTitle":"","title":"AppBar"},"viewPager":{"indGravity":1,"indStyle":4,"offscreenPageLimit":0,"pages":[{"indIcon":"home","indTitle":"Home","url":"about:blank"},{"indIcon":"dashboard","indTitle":"Dashboard","url":"about:blank"},{"indIcon":"favorite","indTitle":"Favorites","url":"about:blank"}],"userInputEnabled":false},"webView":{"colorMode":false,"darkMode":1,"javaScriptEnabled":true,"openOtherPageWays":2,"pcMode":false,"userAgent":"default"}}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp