luotext
luotext
> > > Hello, have you found the way? android? that is ok, it working.
https://github.com/ProChain/ProSDKEOS this way.
> > > 当前项目要支持的话,需要使用 StaticLayout 检测换行,在 PageLoader 的行字数检测中: > > ``` > //测量一行占用的字节数 > if (showTitle) { > wordCount = mTitlePaint.breakText(paragraph, > true, mVisibleWidth, null); > } else { >...
> > > 就是英文是按照单词来解释的,但是按照中文来计算,那么单词就被切割掉了,最后一行的单词就变得不完整了,并延申到第二行去了 所以我加了个判断 private oolean isTrue(String line) { return !line.endsWith(" ") && !line.endsWith(",") && !line.endsWith(".") && !line.endsWith("-") && !line.equals("\""); } 其实也就是在当前要绘制的行末尾判断是否以上结尾,来达到判断是否单词被切割了,但是这样判断符号的情况,感觉并不友好。
> > > > 就是英文是按照单词来解释的,但是按照中文来计算,那么单词就被切割掉了,最后一行的单词就变得不完整了,并延申到第二行去了 > > 所以我加了个判断 > private oolean isTrue(String line) { > return !line.endsWith(" ") && > !line.endsWith(",") && > !line.endsWith(".") && > !line.endsWith("-") && > !line.equals(""");...
> 心跳前acquireWakeLock > 心跳后 releaseWakeLock 那是?哪里加?