Frameworks
React Native
Flutter
Package samples
Cookbook
Version 11
Version 10
Version 9
Version 8
Version 7
Version 6
Version 5
The theme of PdfViewCtrlTabHostFragment2
can be set by calling the following method when creating the fragment using ViewerBuilder2
:
Theme supplied to ViewerBuilder2.usingTheme(int)
is recommended to extend PDFTronAppThemeBase
. If you cannot extend PDFTronAppThemeBase
and is extending an AppCompat
theme, then you will need to define custom theme attributes for the theme to work properly. Custom attributes are listed in the table below. PDFTronAppThemeBase
contains a number of attributes which can be used to define the style for certain UI components. A full list of theme attributes can be found below:
Attribute | Description |
---|---|
| Used to style the options menu toolbar. See |
| Used to style the popup menu in the toolbar. See |
| Used to style the options menu toolbar background. See |
| Used to style the quick menu. See |
| Used to style the outline/user bookmark/annotation list dialog. See |
| Used to style the stamp dialog tab layout. See |
| Used to style the bottom navigation bar. See |
| Used to style the annotation preset bar. See |
| Used to style the annotation toolbar. See |
| Used to style the toolbar switcher popup dialog. See |
| Used to style the toolbar switcher menu button. See |
| Used to style the tab action button. See |
| Used to style the page slider. See |
| Used to style the document tabs. See |
| Used to style the floating action buttons. See |
| Used to style the sound annotation dialog. See |
| Used to style the page indicator. See |
| Used to style the sticky note dialog. See |
| Used to style the signature creation dialog. See |
| Used to style the toolbar editor dialog. See |
| Used to style the annotation style dialog. See |
| Used to style the annotation filter dialog. See |
| Used to style the stamp creation dialog. See |
| Used to style the add page dialog. See |
| Used to style the tab switcher dialog. See |
| Used to style the outline dialog. See |
A full list of attributes can be found in the styles.xml
file in the Apryse Android SDK Tools package.
The built-in default toolbars can be customized using the ViewerConfig
and ToolManagerBuilder
classes. To hide a specific toolbar, call ViewerConfig.Builder.hideToolbars(String[])
with the toolbar's tag. For example to hide the annotate toolbar:
To hide certain tool buttons, you can disable tool modes using ToolManagerBuilder
as described in this guide.
The options toolbar can be customized using a similar method as described in this guide, however the ViewerBuilder2
class will be used instead of ViewerBuilder
.
Did you find this helpful?
Trial setup questions?
Ask experts on DiscordNeed other help?
Contact SupportPricing or product questions?
Contact Sales