Android 在AppWidgetProvider子类的ViewFlipper中更改无动画和outAnimation
我有一个带有appwidgetPrvider类的小部件,在这个类中我有一个带有viewFlipper的RemoteView,当我想更新RemoteView时,我需要动态更改无动画和outAnimation; 我该怎么做?我无法访问viewFlipper 我写了这些代码,但没有任何影响Android 在AppWidgetProvider子类的ViewFlipper中更改无动画和outAnimation,android,Android,我有一个带有appwidgetPrvider类的小部件,在这个类中我有一个带有viewFlipper的RemoteView,当我想更新RemoteView时,我需要动态更改无动画和outAnimation; 我该怎么做?我无法访问viewFlipper 我写了这些代码,但没有任何影响 View view = remoteViews.apply(context,null); ViewFlipper flipper =(ViewFlipper)view.findViewById(R.
View view = remoteViews.apply(context,null);
ViewFlipper flipper =(ViewFlipper)view.findViewById(R.id.myViewFlipper_smal);
flipper.setInAnimation(animateIn());
flipper.setOutAnimation(animateOutTo());
remoteViews.reapply(context.getApplicationContext(), view);