本文整理汇总了C++中IView::GetOverlay方法的典型用法代码示例。如果您正苦于以下问题:C++ IView::GetOverlay方法的具体用法?C++ IView::GetOverlay怎么用?C++ IView::GetOverlay使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类IView
的用法示例。
在下文中一共展示了IView::GetOverlay方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: StartRejectedAnimations
void EnterTransitionCoordinator::StartRejectedAnimations(
/* [in] */ IArrayList* rejectedSnapshots) //ArrayList<View>
{
Boolean bval;
if (rejectedSnapshots == NULL || (rejectedSnapshots->IsEmpty(&bval), bval)) {
return;
}
AutoPtr<IViewGroup> vg;
GetDecor((IViewGroup**)&vg);
IView* decorView = IView::Probe(vg);
if (decorView != NULL) {
AutoPtr<IViewOverlay> vo;
decorView->GetOverlay((IViewOverlay**)&vo);
IViewGroupOverlay* overlay = IViewGroupOverlay::Probe(vo);
AutoPtr<IObjectAnimator> animator;
Int32 numRejected;
rejectedSnapshots->GetSize(&numRejected);
AutoPtr<ArrayOf<Float> > args = ArrayOf<Float>::Alloc(2);
args->Set(0, 0);
args->Set(1, 0);
for (Int32 i = 0; i < numRejected; i++) {
AutoPtr<IInterface> obj;
rejectedSnapshots->Get(i, (IInterface**)&obj);
IView* snapshot = IView::Probe(obj);
overlay->Add(snapshot);
animator = ObjectAnimator::OfFloat(
snapshot, Elastos::Droid::View::View::ALPHA, args);
IAnimator::Probe(animator)->Start();
}
AutoPtr<IAnimatorListener> listener = new RejectedAnimatorListenerAdapter(
this, decorView, rejectedSnapshots);
IAnimator::Probe(animator)->AddListener(listener);
}
}