重构应用主界面
#199
Replies: 1 comment
-
|
放手去做 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
应用主界面的一些操作和UI不是很合理。
#135
如果要修改或者增加新的功能的话,会增加很多看不懂的无用代码。所以我提议要重构主界面。
重命名
首先就是首页的 adapter 名字从“按页面起名”改为“按功能起名”,也就是
HomeAdapter改为PagerAdapter或者TabAdapter,PagerAdapter改为AppsAdapter功能方法抽离
把原
PagerFragment的长按菜单这些抽离出来,做成单个方法,降低代码理解难度以及方便以后复用这些代码。@aistra0528
Beta Was this translation helpful? Give feedback.
All reactions