What's the standard way of swapping between UI elements in an activity in Android? -
i have activity has several views. of views remain constant, there's 1 area has different views based on actions of user. in other words, might start out 3 buttons , switch countdown timer when 1 clicked. don't think makes sense create different activities, since of ui (and logic) shared.
what's standard approach in android? i'm new platform.
use viewflipper or viewswitcher these best methods switch between ui elements in android. can put animation animate ui switching.
user :
// viewflipper private viewflipper flipview; // set flipper flipview = (viewflipper) findviewbyid(r.id.flipview); //to show next ui element flipview.shownext();
Comments
Post a Comment