# HwTxtReader **Repository Path**: kais_coder/HwTxtReader ## Basic Information - **Project Name**: HwTxtReader - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-08-26 - **Last Updated**: 2025-08-26 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ![image](https://github.com/bifan-wei/HwTxtReader/blob/master/pics/ic_txt_logo.png)
**一分钟让你的app快速集成一个简洁漂亮的小说阅读器!**
**HwTxtReader 长期更新维护,打造一个简单易用的文本阅读控件,欢迎使用与支持!**


#### 目前实现了的功能: + 字体设置与调节。包括大小、颜色、是否加粗。
+ 页面风格设置,夜间模式等。
+ 进度跳转与当前进度获取。
+ 章节获取与章节跳转。
+ 完美翻页效果,支持滑盖翻页、平移翻页切换、剪切翻页切换,支持轻击翻页。
+ 可以进行长按滑动选择复制文字。
+ 数字与英文字符显示特点颜色。
+ 自动跳转到上次阅读进度。
+ 支持设置段落间距。
+ 支持竖向排版
+ 支持点击手机本地txt文件后,可以选择该阅读器打开
### 看不到图片?查看这里[CSDN](https://blog.csdn.net/u014614038/article/details/51062842) #### 2021/06/12 最新更新:适配Android X!凭兴趣爱好维护!如有帮助欢迎start支持!

![image](https://github.com/bifan-wei/HwTxtReader/blob/master/pics/ic_style.png)
#### 2019/06/30更新:增加剪切翻页风格!超级漂亮!

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

**[apk下载](https://github.com/bifan-wei/HwTxtReader/tree/master/demoapk)**
#### 目前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.2' } ``` **使用默认界面使用的话,只需要一句代码:** ```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) {            //加载过程信息回调            } }); ```