Code example for ViewSwitcher

Methods: showPrevious

0
		TextView changeToRegister = (TextView) v.findViewById(R.id.login_change_to_register);
 
		changeToLogin.setOnClickListener(new OnClickListener() {
			@Override 
			public void onClick(View arg0) {
				viewSwitcher.showPrevious();
			} 
		}); 
 
		changeToRegister.setOnClickListener(new OnClickListener() {
			@Override 
			public void onClick(View arg0) {
				viewSwitcher.showNext();
			} 
		}); 
 
		return v;
	} 
 
	@Override 
Contextual code suggestions in your IDE  Get Codota for Java