When a layout is loaded into the activity it is animated in an eye-catching manner, sweeping in from the top-left hand corner of the screen. It looks pretty good.
I recently modified a project to add some 'clear' controls to the EditText boxes rather like the ones used in iOS. An image of a clear button and a panel to catch the click event are added in code over each EditText. The panel 'click' event is captured by a generic click sub using the Sender/Tag method to find the view that was clicked.
Unfortunately when the layout is loaded the views added in code appear immediately in their final positions...... long before the animation of the layout is complete so it all looks rather scrappy.
I presume there is a method to suppress the animation on layout loading?
If I want to keep the layout animation.... how to keep the clear buttons hidden until the animation is complete?
I recently modified a project to add some 'clear' controls to the EditText boxes rather like the ones used in iOS. An image of a clear button and a panel to catch the click event are added in code over each EditText. The panel 'click' event is captured by a generic click sub using the Sender/Tag method to find the view that was clicked.
Unfortunately when the layout is loaded the views added in code appear immediately in their final positions...... long before the animation of the layout is complete so it all looks rather scrappy.
I presume there is a method to suppress the animation on layout loading?
If I want to keep the layout animation.... how to keep the clear buttons hidden until the animation is complete?