# HwTxtReader **Repository Path**: corffen/HwTxtReader ## Basic Information - **Project Name**: HwTxtReader - **Description**: 一款TXT阅读器. - **Primary Language**: Java - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-05-31 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ![image](https://github.com/bifan-wei/HwTxtReader/blob/master/pics/ic_txt_logo.png)
**想要快速实现文本播放显示功能么?HwTxtReader 是一个轻量级文本播放控件,能帮助你快速集成加载播放小说文本文件功能,同时内置默认的播放页面,能让你快速集成一个简洁漂亮的小说阅读器**


#### 目前实现了的功能: + 字体设置与调节。包括大小、颜色、是否加粗。
+ 页面风格设置,夜间模式等。
+ 进度跳转与当前进度获取。
+ 章节获取与章节跳转。
+ 可以滑盖翻页、平移翻页切换、剪切翻页切换,支持轻击翻页。
+ 可以进行长按滑动选择复制文字。
+ 数字与英文字符显示特点颜色。
+ 自动跳转到上次阅读进度。
+ 支持设置段落间距。
+ 支持竖向排版
#### 2019/06/30最新更新:增加剪切翻页风格,需要直接下代码。周末不陪女朋友宅宿舍更新这个,良心维护啊!!你的点赞是对我最大的支持,欢迎start issue!

![image](https://github.com/bifan-wei/bifanResource/blob/master/git/shear.gif)
#### 演示demo

**[apk下载](https://github.com/bifan-wei/HwTxtReader/tree/master/demoapk)**
![image](https://github.com/bifan-wei/bifanResource/blob/master/videos/demo_video.gif) #### 更新日志请查看 updateLog.txt文件
#### 目前demo效果图: ![image](https://github.com/bifan-wei/HwTxtReader/blob/master/pics/ic_reader1.png)

![image](https://github.com/bifan-wei/HwTxtReader/blob/master/pics/ic_show.png)

#### 使用方法:
**添加hwtxtreaderlib依赖**

```java allprojects { repositories { ... maven { url 'https://jitpack.io' } } dependencies { implementation 'com.github.bifan-wei:HwTxtReader:V2.1.1' //注意Android support 版本请使用 implementation 'com.android.support:appcompat-v7:28.0.0', } ``` **使用默认界面使用的话,只需要一句代码:** ```java HwTxtPlayActivity.loadTxtFile(this, FilePath); ``` **使用自定义view的话,直接使用TxtReaderView (详细请看Wiki)** **xml中:** ```java ``` **代码中调用loadTxtFile方法直接加载文件:**
```java mTxtReaderView.loadTxtFile(FilePath, new ILoadListener() { @Override public void onSuccess() {             //加载成功回调                initWhenLoadDone(); } @Override public void onFail(TxtMsg txtMsg) {               //加载失败回调            } @Override public void onMessage(String message) {            //加载过程信息回调            } }); ```

#### 如果你觉得还不错,欢迎start支持。