Code example for Fragment

Methods: onCreate

0
		return v;
	} 
 
	@Override 
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
 
	} 
 
	@Override 
	public void onClick(View viewClicked) {
		if (viewClicked.getId() == R.id.login_button) {
			logIn(); 
		} else if (viewClicked.getId() == R.id.registration_button) {
			signUp(); 
		} 
	} 
 
	private void logIn() { 
		if (!TextUtils.isEmpty(username.getText().toString())) {
			Intent i = new Intent(getActivity(), LoginProgress.class);