I am trying to open / close my moving frame with animateOpen() and animateClose() , but it seems to open and close instantly, like open() and close() . What's wrong?
I saw that SlidingDrawer cannot be configured (cannot be animated using special animations, for example, not even with custom open / close durations). Do I need to copy SlidingDrawer code to change animation duration?
thanks
protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.home);
EDIT
Performance
final SlidingDrawer banner = (SlidingDrawer) findViewById(R.id.banner); final Animation hideBanner = AnimationUtils.loadAnimation(this, R.anim.hide_banner); banner.setAnimation(showBanner);
only the handler animates, even if I don't do banner.animateOpen() or banner.startAnimation(showbanner) !
source share