设置PDFView的RTL滚动方向-Android [英] Set RTL scroll direction for PDFView - Android

查看:389
本文介绍了设置PDFView的RTL滚动方向-Android的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用一个Github库查看PDF文件. https://github.com/barteksc/AndroidPdfViewer

I am using one Github library for view PDF file. https://github.com/barteksc/AndroidPdfViewer

我想设置滚动方向RTL.请帮助更改此库的滚动方向.

i want to set scroll direction RTL. please help to change scroll direction of this library.

我尝试了以下链接的解决方案 https://github.com/JoanZapata/android-pdfview/issues/60

I have tried solution from below link https://github.com/JoanZapata/android-pdfview/issues/60

但它对我不起作用.

推荐答案

我发现了一个黑客.将PDF旋转180度,然后在代码中添加以下行

I have found a hack. Rotate your pdf by 180 degress and then add following line in your code

pdf_activity_read_quraan.rotation = 180F

pdf_activity_read_quraan所在的位置是com.github.barteksc.pdfviewer.PDFView

这篇关于设置PDFView的RTL滚动方向-Android的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆