Android Open Source - robobook Welcome Activity






From Project

Back to project page robobook.

License

The source code is released under:

MIT License

If you think the Android project robobook listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.krazyrobot.robobook.activity;
//ww w  . j a  v  a  2s .  co m
import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.ActionBarActivity;
import android.view.View;
import com.krazyrobot.robobook.R;


public class WelcomeActivity extends ActionBarActivity {

    private View mLoginButton;
    private View mSignButton;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_welcome);

        mLoginButton = findViewById(R.id.login_button);
        mLoginButton.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                startActivity(new Intent(WelcomeActivity.this, LoginActivity.class));
            }
        });
        mSignButton = findViewById(R.id.signin_button);
        mSignButton.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                startActivity(new Intent(WelcomeActivity.this, RegistrationActivity.class));
            }
        });
    }
}




Java Source Code List

com.krazyrobot.robobook.activity.FollowRobotsActivity.java
com.krazyrobot.robobook.activity.LoginActivity.java
com.krazyrobot.robobook.activity.RegistrationActivity.java
com.krazyrobot.robobook.activity.WelcomeActivity.java
com.krazyrobot.robobook.adapter.FollowAdapter.java
com.krazyrobot.robobook.model.Robot.java