Recent searches
No recent searches
Android Mobile SDK Light Toolbar
Posted May 16, 2022
Our app is trying to use the Zendesk Support UI with a white toolbar and dark text, but this doesn't seem to be possible at the moment.
I've read all the documentation for Customizing The Look for Android Support SDK, so I have tried changing `colorPrimary`, `colorPrimaryDark`, and `colorAccent` but nothing seems to change the toolbar text color. I have also tried overriding the XML layout like described, but I lose access to the package restricted custom XML views. Please let me know if there is something else we can try to change the toolbar text color.
Any help would be greatly appreciated.
3
9
9 comments
Greg Katechis
Hi Josh! I'm happy to bring this to our SDK team to see what thoughts they have, but I just want to confirm that you've followed this step before I do so. I have a feeling they'll want confirmation of that first. If you could provide the actual file as well, that would be super helpful. Thanks!
0
Zendesk PhotoSì
Hi, we have the same problem, ex: in zs_activity_view_article,
zendesk.support.guide.ArticleVotingView
is private so we can't override the layout.
0
Josh Nelson
Greg Katechis Yes I have followed the step of copying over the XML file (zs_activity_request.xml), but the app will not run a because the custom views: RequestViewLoading, RequestViewConversationsDisabled, RequestViewConversationsEnabled, and ViewAlmostRealProgressBar are only available for use from within the SDK's package (zendesk.support.request).
0
Josh Nelson
Greg Katechis Any update on this?
0
Kelly Hilton
Hello,
Set up the app bar. On this page Add a toolbar to an activity. Use app bar utility methods. In its most basic form, the action bar displays.
Cheers
0
Josh Nelson
Kelly Hilton How do I add a toolbar to this activity if I can't replace the xml file (zs_activity_request.xml) for this activity?
0
Tommy Jackson
Greg Katechis Hi, we're still facing this problem. Specifically we need to be able to change the toolbar text color, but its hardcoded to #ffffff (white) in zs_request_toolbar_content.xml, which is included in zs_activity_request.xml.
We've tried following the steps here, but as stated above by Josh it seems like every custom UI component in those files is marked with @RestrictTo(LIBRARY), which prevents us from accessing and using them. We can't copy the layouts like your docs say to do without those components or the functionality would break.
Messing with the theme doesn't do anything either because the text color is fully hardcoded to be white, and we can't even replace that single xml file because it uses zendesk.support.request.ViewToolbarAvatar which is one of those classes restricted to the library.
How can we change the toolbar's text color?
2
Steve Rabino
Greg Katechis - we're also facing the same problem as detailed by others in this thread.
I think it might also be necessary to remove RequestActivity and RequestActivityList from the section "Change the look of each component" in the Customizing the look document; as Tommy Jackson and Josh Nelson have alluded to, these now use custom UI components that are restricted to use within the library and so this approach is not possible for these files.
0
Langston Smith
Did anyone figure this out?
0