зеркало из https://github.com/DeGsoft/maui-linux.git
Add extensibility point to load tab icons from another source (using the tab.SetIcon(drawable) overload) on Android
This commit is contained in:
Родитель
d43b8a2da6
Коммит
2b4c7c7931
|
@ -383,10 +383,15 @@ namespace Xamarin.Forms.Platform.Android.AppCompat
|
|||
continue;
|
||||
|
||||
TabLayout.Tab tab = tabs.GetTabAt(i);
|
||||
tab.SetIcon(ResourceManager.IdFromTitle(icon, ResourceManager.DrawableClass));
|
||||
SetTabIcon(tab, icon);
|
||||
}
|
||||
}
|
||||
|
||||
protected virtual void SetTabIcon(TabLayout.Tab tab, FileImageSource icon)
|
||||
{
|
||||
tab.SetIcon(ResourceManager.IdFromTitle(icon, ResourceManager.DrawableClass));
|
||||
}
|
||||
|
||||
void UpdateBarBackgroundColor()
|
||||
{
|
||||
if (_disposed || _tabLayout == null)
|
||||
|
|
Загрузка…
Ссылка в новой задаче