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/