本文整理匯總了C#中Android.JavaCast方法的典型用法代碼示例。如果您正苦於以下問題:C# Android.JavaCast方法的具體用法?C# Android.JavaCast怎麽用?C# Android.JavaCast使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Android
的用法示例。
在下文中一共展示了Android.JavaCast方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。
示例1: DestroyItem
public override void DestroyItem(Android.Views.ViewGroup container, int position, Java.Lang.Object objectValue)
{
base.DestroyItem (container, position, objectValue);
var myview = objectValue as Android.Views.View;
var viewPager = container.JavaCast<Android.Support.V4.View.ViewPager> ();
viewPager.RemoveView (myview);
myview = null;
}
示例2: DestroyItem
/// <summary>
/// Destroys the item.
/// </summary>
/// <param name="container">The container.</param>
/// <param name="position">The position.</param>
/// <param name="object">The object.</param>
public override void DestroyItem(Android.Views.View container, int position, Java.Lang.Object @object)
{
//activePickerViews[position].OnDateSelected -= HandleOnDateSelected;
//activePickerViews.Remove(position);
var monthView = @object.JavaCast<MonthView>();
(container.JavaCast<Android.Support.V4.View.ViewPager>()).RemoveView(monthView);
_reusableMonthView = monthView;
_activeMonthViews.Remove(position);
}