Android Mobile SDK Light Toolbar
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.
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!
Hi, we have the same problem, ex: in zs_activity_view_article,
is private so we can't override the layout.
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).
Greg Katechis Any update on this?
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.
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?
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?
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.
Vous devez vous connecter pour laisser un commentaire.