问题
in xamrin froms app, we have a tabbar, we need to add some gradient color for that tab bar in both iOS and android devices. how can we that ?
回答1:
- Make a image with gradient color by your designer;
The apply it to tabbar like:
UITabBar.Appearance.BackgroundImage = image;
Official documents: https://developer.xamarin.com/api/type/UIKit.UITabBar+UITabBarAppearance/
来源:https://stackoverflow.com/questions/48092841/xamarin-forms-how-to-add-a-gradient-color-for-tabbar