As you suggested in
my last request
, I changed my PDFReaderAct class to use the new PDFViewAct class. It works great and fix the zoom bug in landscape, thank you very much for this.
Now I have few problems with the PDFTopBar behaviour (that I control in the PDFViewController class): when I add custom icons in bar_cmd.xml, they are not displayed. It is like they are "GONE" or transparent, I don't know. The place of the icons is used and I can click them, but it is just a blank space. Do you know what could fix the problem?
Also, I would like to know how I can quit my PDFViewAct after a click in PDFViewController.
Make sure that you are using an icon with a compatible color and that you are initializing it as the other buttons, you may need to check the SetBtnEnabled which changes the background color basen on it's status.
What do you mean by quit my PDFViewAct after a click in PDFViewController?
It doesn't come from the compatible colors of my icon because I have the problem even if I try using your native icons.
Only "ic_action_search" is displaying, and I guess it is a problem with SetBtnEnabled but if I try to put these methods in the PDFViewController constructor, it is still not working:
In this case, it might be a license activation problem...
please check the license check part (if(Global.isLicenseActivated())) in PDFViewController constructor.
For the back button, you can add it to the bar_cmd, and add a new method to the PDFLayoutListener (onPDFClose) to be handled by the activity..
Then in the on click listener of the back button call the new created method (onPDFClose)