Code example for Fragment

0
import com.newsblur.activity.LoginProgress; 
import com.newsblur.activity.RegisterProgress; 
import com.newsblur.network.APIManager; 
import com.newsblur.service.DetachableResultReceiver; 
 
public class LoginRegisterFragment extends Fragment implements OnClickListener {
 
	public APIManager apiManager;
	private EditText username, password;
	private ViewSwitcher viewSwitcher;
 
	DetachableResultReceiver receiver;
	private EditText register_username, register_password, register_email;
 
 
	@Override 
	public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
		final View v = inflater.inflate(R.layout.fragment_loginregister, container, false);
 
		final Button loginButton = (Button) v.findViewById(R.id.login_button);
		final Button registerButton = (Button) v.findViewById(R.id.registration_button);