Giter Club home page Giter Club logo

dawnisland's People

Contributors

yudanhezhongweijie avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

azdoordie

dawnisland's Issues

增加功能:在板块界面支持sage显示

xml的实现支持过这个功能,后来使用代码重构卡片的时候忘了。
对标设计稿,SAGE的显示是一个白色渐变的TextView,白色渐变已经放到drawable里了

待重构:抽取板块标签生成

#51
为了实现所描述的效果,需要实现一个工具类,传入fid后传回一个Spanned对象,可以直接设置到Textview中,以便复用。

增加功能:板块标签用不同渐变色作为背景

按照原设计稿,不同的板块标签有不用的渐变色。
这个设计具有实际作用,例如避免跑团的串被误认为综一的串而被阴阳。因此决定加入。
已经为这个功能留好了位置,RoundBackgroundSpan就是为这个特性编写的,不过还需要一些修改才能支持不同的颜色。挑选时需要注意保证白色文字在渐变色上便于阅读
这里是两个渐变色网站,
https://uigradients.com/
https://webgradients.com/

增加功能:缓存读取串内容

在板块读取串的时候,应该已经能读取到串内第一页回复的内容。
可以提前存储第一页内容,点开串后预读后面的内容;在看第二页,预读第三页。以此类推

目前默认保存所有下载的串内容,需要增加读取内存机制,本地数据和服务器数据冲突的处理机制

新增功能:自定义板块序号

这是一个隐藏特性,原因是板块序号为122的板块为测试版,这个板块理论上应该只有红名可见。但是为了方便团主在手机端方便的开团,所以可以考虑提供。

待修复:在SeriesContentActivity中连续下滑导致崩溃

当拥有饼干的时候a岛会随机在看串界面插入广告,这将导致截取新串时
items.addAll(items.size() - 1, contentItems.subList(lastPageCount, contentItems.size()));
出现参数错误,因为下一次加载可能不会出现广告,lastpagecount将比size大1

全局变量:DB类成员

  1. fid->name:用一个Map将fid与forumName对应,由于该map只能通过json获得并且多处需要使用,因此设为全局变量。
  2. cookie:如果拥有饼干则应当让所有请求都附带饼干,以便获得:去除广告、搜索、翻看99页以后内容等功能。

添加设置

设置有两个功能:

  1. 保存订阅id
  2. 修改时间显示方式

待修复:fragment导致的内存泄漏

Snipaste_2020-03-22_20-09-55
由于fragment切换时只保留相邻的两个页面,fragment会销毁并重建,其中的view会在fragment销毁后仍然持有fragment对象,造成内存泄漏。

重要:架构更新

目前使用的MVP模式有几率导致严重的内存泄漏+崩溃问题,可能的情况是异步加载完成时Activity已销毁,需要迁移到ViewModel+LiveData来获取更好的生命周期

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.