Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
这是我在这里的第一个问题,所以如果您需要更多上下文,请告诉我。我通过编译在我的应用程序中使用 PDFView:编译 'com.github.barteksc:android-pdf-viewer:2.6.1'。
我能够在我的应用程序中显示我的黑白 PDF(我将它们放在资产文件夹中,并且我只在我的程序中以它们的名称来称呼它们;例如:“file.pdf”)。现在我只需要更改背景和文本的颜色。
有人可以帮我解决吗?
添加行:android:background="@color/....."在您的 xml 文件中的 pdfview 中更改背景颜色。
android:background="@color/....."