this post was submitted on
2 points (100% like it)
2 up votes 0 down votes
all 1 comments

[–]kensuke155Developer (Mobiata) 2 points3 points ago

Something like this?

public class RandomViewFlipper extends ViewFlipper {
    @Override
    public void showNext() {
        setDisplayedChild((int)(Math.random()*getChildCount()));
    }
}

Or reorder your children randomly once they're laid out.