本文整理汇总了C#中ImageView.AlphaAnimate方法的典型用法代码示例。如果您正苦于以下问题:C# ImageView.AlphaAnimate方法的具体用法?C# ImageView.AlphaAnimate怎么用?C# ImageView.AlphaAnimate使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ImageView
的用法示例。
在下文中一共展示了ImageView.AlphaAnimate方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: LoadMap
internal async void LoadMap (GeoPoint point, FavoriteView view, ImageView mapView, long version)
{
var url = MakeMapUrl (point);
var bmp = await LoadInternal (url, MapCache);
if (bmp != null && view.VersionNumber == version) {
mapView.AlphaAnimate (0, duration: 150, endAction: () => {
mapView.SetImageDrawable (new RoundCornerDrawable (bmp));
mapView.AlphaAnimate (1, duration: 250);
});
}
}
示例2: LoadStreetView
internal async void LoadStreetView (LatLng location, HubwayMapFragment frag, long stationID, ProgressBar spinner, ImageView img)
{
var url = MakeStreetViewUrl (img, location);
var bmp = await LoadInternal (url, StreetViewCache);
if (bmp != null && frag.CurrentShownId == stationID) {
img.SetImageDrawable (new RoundCornerDrawable (bmp, cornerRadius: 3));
img.Visibility = Android.Views.ViewStates.Visible;
spinner.AlphaAnimate (0, duration: 250);
img.AlphaAnimate (1, duration: 250);
}
}