Category Archives: development

View.startAnimation Delays Execution for Empty Container Views

androidUnable to sleep, I got hacking at our upcoming release of Wheel of Yum this morning only to get totally stuck on a bug in how Android animates empty container views. In our particular case we have a custom view derived from FrameLayout that adds a single LinearLayout as it’s only child view upon construction. At runtime, our custom view listens for Touch events and dynamically addsremoves various ImageView instances to the inner LinearLayout. When a given Touch event is complete (i.e. MotionEvent.ACTION_UP) the LinearLayout starts a fade-out style animation:
Continue reading View.startAnimation Delays Execution for Empty Container Views