Sadly this doesn’t work. The resource color and style is determined on compile time but we don’t know the white label color for the client until runtime
When you launch the viewer, you can show your custom download dialog, then when the document is loaded you can hide the dialog. You can listen for document loaded events using a TabHostListener as follows:
private PdfViewCtrlTabHostFragment2 mPdfViewCtrlTabHostFragment;
// ...
mPdfViewCtrlTabHostFragment.addHostListener(new PdfViewCtrlTabHostFragment2.TabHostListener() {
@Override
public void onTabDocumentLoaded(String tag) {
// Hide my custom download dialog on document loaded
}
// ...
Thank you @Branden_Fung! I actually did this exact thing! I forgot to add a comment here on this post. Your solution here works great. Thanks! Hopefully this helps others who have dynamic white label colors in their app