Example usage for android.widget ViewSwitcher reset

List of usage examples for android.widget ViewSwitcher reset

Introduction

In this page you can find the example usage for android.widget ViewSwitcher reset.

Prototype

public void reset() 

Source Link

Document

Reset the ViewSwitcher to hide all of the existing views and to make it think that the first time animation has not yet played.

Usage

From source file:com.tweetlanes.android.core.view.DirectMessageActivity.java

@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);

    configureActionBarView();//from w ww.  j av a  2  s  .  c om

    ViewSwitcher viewSwitcher = (ViewSwitcher) findViewById(R.id.rootViewSwitcher);
    viewSwitcher.reset();
    viewSwitcher.setDisplayedChild(1);

    setDirectMessageOtherUserScreenName(getOtherUserScreenName());
}