Skip to content
Snippets Groups Projects
Commit 0bc42564 authored by Putu Gery Wahyu Nugraha's avatar Putu Gery Wahyu Nugraha
Browse files

Merge branch 'login' into 'login'

Login

See merge request wargamobile/warga-mobile-android!1
parents 4f8db84d 9c7588da
Branches
No related merge requests found
...@@ -4,6 +4,7 @@ import android.support.v7.app.AppCompatActivity; ...@@ -4,6 +4,7 @@ import android.support.v7.app.AppCompatActivity;
import android.os.Bundle; import android.os.Bundle;
import com.wargamobile.android.R; import com.wargamobile.android.R;
import com.wargamobile.android.login.LoginContract.Presenter; import com.wargamobile.android.login.LoginContract.Presenter;
import com.wargamobile.android.session.Session;
public class LoginActivity extends AppCompatActivity implements LoginContract.View { public class LoginActivity extends AppCompatActivity implements LoginContract.View {
...@@ -14,7 +15,7 @@ public class LoginActivity extends AppCompatActivity implements LoginContract.Vi ...@@ -14,7 +15,7 @@ public class LoginActivity extends AppCompatActivity implements LoginContract.Vi
super.onCreate(savedInstanceState); super.onCreate(savedInstanceState);
setContentView(R.layout.activity_login); setContentView(R.layout.activity_login);
// Initiate presenter // Initiate presenter
new LoginPresenter(this); new LoginPresenter(this, new Session(this));
} }
@Override @Override
......
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" <android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools" xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent">
tools:context=".login.LoginActivity">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingTop="20dp"
android:paddingLeft="20dp"
android:paddingRight="20dp"
android:paddingBottom="20dp"
android:orientation="vertical">
<ImageView
android:id="@+id/imageView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
tools:srcCompat="@tools:sample/avatars[0]" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="587dp"
android:orientation="vertical"
tools:layout_editor_absoluteX="8dp"
tools:layout_editor_absoluteY="136dp"
android:paddingTop="50dp">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<ImageView
android:id="@+id/imageView2"
android:layout_width="100dp"
android:layout_height="100dp"
tools:srcCompat="@tools:sample/avatars[2]" />
<EditText
android:id="@+id/editText"
android:layout_width="fill_parent"
android:layout_height="match_parent"
android:ems="10"
android:inputType="textEmailAddress" /></LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<ImageView
android:id="@+id/imageView3"
android:layout_width="100dp"
android:layout_height="100dp"
tools:srcCompat="@tools:sample/avatars[2]" />
<EditText
android:id="@+id/editText2"
android:layout_width="fill_parent"
android:layout_height="match_parent"
android:ems="10"
android:inputType="textPassword" /></LinearLayout>
<Button
android:id="@+id/button"
android:layout_width="100dp"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:text="LOGIN" />
</LinearLayout>
</LinearLayout>
</android.support.constraint.ConstraintLayout> </android.support.constraint.ConstraintLayout>
\ No newline at end of file
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment