Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions app/build.gradle
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
apply plugin: 'com.android.application'

android {
compileSdkVersion 23
buildToolsVersion "23.0.2"
compileSdkVersion 22
buildToolsVersion "22.0.1"

defaultConfig {
applicationId "nyc.c4q.android"
minSdkVersion 19
targetSdkVersion 23
targetSdkVersion 22
versionCode 1
versionName "1.0"
}
Expand All @@ -23,9 +23,9 @@ dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])

testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:23.1.1'
compile 'com.android.support:support-v4:23.1.1'
compile 'com.android.support:recyclerview-v7:23.1.1'
compile 'com.android.support:design:23.1.1'
compile 'com.android.support:appcompat-v7:22.0.0'
compile 'com.android.support:support-v4:22.0.0'
compile 'com.android.support:recyclerview-v7:22.0.0'
compile 'com.android.support:design:22.2.1'
compile 'com.squareup.picasso:picasso:2.5.2'
}
5 changes: 4 additions & 1 deletion app/src/main/java/nyc/c4q/android/ui/LoginActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
import android.widget.Button;
import android.widget.EditText;

import nyc.c4q.android.R;

public class LoginActivity extends Activity {

private EditText emailField;
Expand All @@ -20,8 +22,9 @@ public LoginActivity() {
@Override protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
// TODO - load view hierarchy in R.layout.activity_login
setContentView(R.layout.activity_login);

// TODO - get references to views, and other setup
// TODO - get references to views, and other setup

// TODO - call checkCredentials via OnClickListener
}
Expand Down
7 changes: 6 additions & 1 deletion app/src/main/res/layout/activity_login.xml
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
>

<TextView
android:id="@+id/mail_title"
android:text="@string/app_name"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
Expand All @@ -18,9 +20,12 @@

<ImageView
android:id="@+id/logo"
android:src="@drawable/c4q"
android:layout_width="80dp"
android:layout_height="80dp"
android:layout_marginTop="100dp"
android:layout_alignTop="@+id/mail_title"
android:layout_centerInParent="true"
/>

<EditText
Expand Down