зеркало из 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,11 +383,16 @@ namespace Xamarin.Forms.Platform.Android.AppCompat
|
|||
continue;
|
||||
|
||||
TabLayout.Tab tab = tabs.GetTabAt(i);
|
||||
tab.SetIcon(ResourceManager.IdFromTitle(icon, ResourceManager.DrawableClass));
|
||||
SetTabIcon(tab, icon);
|
||||
}
|
||||
}
|
||||
|
||||
void UpdateBarBackgroundColor()
|
||||
protected virtual void SetTabIcon(TabLayout.Tab tab, FileImageSource icon)
|
||||
{
|
||||
tab.SetIcon(ResourceManager.IdFromTitle(icon, ResourceManager.DrawableClass));
|
||||
}
|
||||
|
||||
void UpdateBarBackgroundColor()
|
||||
{
|
||||
if (_disposed || _tabLayout == null)
|
||||
return;
|
||||
|
|
Загрузка…
Ссылка в новой задаче