Android Programming Tutorials

(Romina) #1

TUTORIAL 26


Now Your Friends Seem


Animated


Most of the time, we are reading status updates, not updating our own


status. Hence, having the status entry widgets always around takes up a lot


of screen space. It would be nice to have them appear or disappear at the


user's request.


This tutorial will cover that very process. We will give the user an option


menu choice to show or hide the status entry widgets. Initially, we will


simply hide and show the widgets without any animation. Then, we will use


an AlphaAnimation to have the widgets fade in or out.


Step-By-Step Instructions........................................................................


First, you need to have completed the previous tutorial. If you are


beginning the tutorials here, or if you wish to not use your existing work,


you can download a ZIP file with all of the tutorial results, and you can copy


the 25-AdvWebKit edition of Patchy to use as a starting point.


Step #1: Set Up the Option Menu


Let us start by giving the user the option to show and hide the status entry


row. That can be handled by just another entry in our option


263
Free download pdf