How can I make the Portrait to follow the landscape Ui topNavToolBar Layout

The View mode is showing the search and thumbnails at the bottomToolBar in portrait but the landscape mode in android or ios is showing on the topToolBar. I want that portrait follows the landscape mode and show all tools on top.

1 Like

Hello, I’m AiRon, an automated tech support bot :robot:
While you wait for one of our customer support representatives, I can help you with your question.


It seems that you want to customize the toolbar layout in your PDF viewer to have a consistent UI across both portrait and landscape modes. This involves modifying the layout settings of the toolbar to ensure all tools are displayed at the top in both orientations.

Some things you can try:

  • Check the current layout configuration for both portrait and landscape modes. You may need to adjust the layout XML or the programmatic configuration to ensure consistency.

  • Use the Apryse SDK to customize the toolbar position by setting the same layout attributes for both orientations. This might involve overriding default styles or setting custom themes.

  • Ensure that your UI components are responsive and adjust their positions based on orientation changes.

  • Explore the viewer theme guide provided by Apryse to understand how to apply consistent styles across different orientations.




Here are some resources that might help you:

  • Annotation toolbar customization in Android: This guide explains how to customize the appearance and layout of UI elements in the annotation toolbar, which can help you align the toolbar layout across orientations.

  • React Native PDF Library: If you’re using React Native, this document provides insights on how to customize native components, which might include toolbar layout adjustments.




Hopefully, this helps you solve your problem while you wait for a human to get back to you.

1 Like

We offer different frameworks, and you tagged this question for both iOS and Android.

Are you using Xamarin, or React Native?

1 Like

This is currently not supported; Landscape can have the portrait UI, but not the other way around. You can create a custom toolbar to achieve what you need for your use case. Here is a guide for toolbar customization

1 Like