Git Product home page Git Product logo

reader's Issues

自定义布局的点击事件

大神,当前页面有自定义布局,先想左翻页,再向右翻页回来,点击事件无效,然而当前页面的上一页响应点击事件,view界面则在当前页面。这个问题怎么解决啊

Gradle Sync Issues(构建时有警告)

当前grdle版本:
com.android.tools.build:gradle:3.3.1
distributionUrl=https://services.gradle.org/distributions/gradle-4.10.1-all.zip

警告内容如下:
WARNING: API 'variantOutput.getPackageLibrary()' is obsolete and has been replaced with 'variant.getPackageLibraryProvider()'.
It will be removed at the end of 2019.
For more information, see https://d.android.com/r/tools/task-configuration-avoidance.
To determine what is calling variantOutput.getPackageLibrary(), use -Pandroid.debug.obsoleteApi=true on the command line to display a stack trace.
Affected Modules: reader

关于排版重叠的解决办法

在ReaderResolve文件中的drawLineText方法中,有个这样的判断

if(showLine.isFullLine && !showLine.endWithWrapMark)

如果条件成立了,就会强制把这一行横向拉伸占满,导致了普通文本重叠排版错乱

因此一个解决方法是只使用false中的方法,如图
image

你好*哦

翻页效果有了,不过常见的单击屏幕中心呼出菜单的功能还未集成在DEMO中,暗中观察

添加自定义布局

wechatimg6
您好,您这个支持添加其他布局吗》类似这样的,然后进行一些交互

文字选中功能

查看代码发现,有一个selected(文字是否选中)属性,但是没有任何地方用到。请问这块功能是自己实现吗

适配Android9.0

SDK28 报java.lang.IllegalArgumentException: Invalid Region.Op - only INTERSECT and DIFFERENCE are allowed。

我发现有些字会挤在一起,我是这样解决的

TextBreakUtils里面的breakText这个方法测量每个字的宽度的时候,遇到英文或者数字就会挤在一起。
比如:“一”的宽度是60,“y”的宽度是34,这样这行文字就会挤在一起
image
目前我是这样解决的,运行之后没有发现挤在一起的问题。

秀啊大兄弟

能不能讲讲翻页特效咋做的,具体思路是什么?

大佬们都是怎么用的?

不知道大佬们有没有遇到这个问题
加载第一章数据,就算本地数据测试第一章在download都会返回null,能不能刷新这个已经返回的第一章?
大佬们有什么使用经验吗?

关于阅读器的一个疑惑,大佬看过来

现在的阅读器界面逻辑是获取章节列表,然后会按顺序去取章节内容,有个问题是如果我的业务是直接进入到特定章节,这样好像没法实现,还是有其他的方法?
谢谢大佬

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.