Created
March 28, 2016 14:00
-
-
Save DonHuskini/8904e6194c6fcaf483af to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
xmlns:tools="http://schemas.android.com/tools" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
android:paddingBottom="@dimen/activity_vertical_margin" | |
android:paddingLeft="@dimen/activity_horizontal_margin" | |
android:paddingRight="@dimen/activity_horizontal_margin" | |
android:paddingTop="@dimen/activity_vertical_margin" | |
tools:context="com.gabrielm.assignmenttracker.addAssignment"> | |
<LinearLayout | |
android:orientation="vertical" | |
android:layout_width="match_parent" | |
android:layout_height="fill_parent" | |
android:id="@+id/linearLayout" | |
android:weightSum="1" | |
android:layout_marginTop="26dp" | |
android:layout_below="@+id/textView" | |
android:layout_alignParentRight="true" | |
android:layout_alignParentEnd="true"> | |
<EditText | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:inputType="textPersonName" | |
android:ems="10" | |
android:id="@+id/etName" | |
android:hint=" Name" | |
android:textSize="17sp" | |
android:background="#ffffff" | |
android:textColorHint="#000000" | |
android:layout_weight="0.06" /> | |
<EditText | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:inputType="textPersonName" | |
android:ems="10" | |
android:id="@+id/etDueDate" | |
android:hint=" Due date" | |
android:textSize="17sp" | |
android:textColorHint="#000000" | |
android:background="#ffffff" | |
android:layout_marginTop="25sp" | |
android:layout_weight="0.06" /> | |
<EditText | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:inputType="textPersonName" | |
android:ems="10" | |
android:id="@+id/etCourse" | |
android:hint=" Course/Class" | |
android:textSize="17sp" | |
android:background="#ffffff" | |
android:textColorHint="#000000" | |
android:layout_marginTop="25sp" | |
android:layout_weight="0.06" /> | |
<EditText | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:inputType="textPersonName" | |
android:ems="10" | |
android:id="@+id/etNotes" | |
android:hint=" Notes" | |
android:textSize="17sp" | |
android:background="#ffffff" | |
android:textColorHint="#000000" | |
android:layout_marginTop="25sp" | |
android:layout_weight="0.48" /> | |
<LinearLayout | |
android:orientation="horizontal" | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:layout_marginTop="25sp" | |
android:gravity="center"> | |
<Button | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:text=" Add assignemnt " | |
android:id="@+id/bAddAssignment" | |
android:layout_gravity="bottom" | |
android:textAllCaps="false" | |
android:textColor="#000000" | |
android:background="#ffffff" /> | |
<Button | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:text=" View Assignment " | |
android:id="@+id/bViewAssignment" | |
android:layout_gravity="bottom" | |
android:textAllCaps="false" | |
android:textColor="#000000" | |
android:background="#ffffff" | |
android:layout_marginLeft="10sp"/> | |
</LinearLayout> | |
</LinearLayout> | |
<TextView | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:text="Assignement tracker" | |
android:id="@+id/textView" | |
android:textColor="#ffffff" | |
android:textSize="20sp" | |
android:layout_alignParentTop="true" | |
android:layout_centerHorizontal="true" | |
android:layout_marginTop="31dp" /> | |
</RelativeLayout> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
xmlns:tools="http://schemas.android.com/tools" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
android:paddingBottom="@dimen/activity_vertical_margin" | |
android:paddingLeft="@dimen/activity_horizontal_margin" | |
android:paddingRight="@dimen/activity_horizontal_margin" | |
android:paddingTop="@dimen/activity_vertical_margin" | |
tools:context="com.gabrielm.assignmenttracker.assignmentTracker"> | |
<Button | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:text=" Add assignment " | |
android:id="@+id/bAddAsign" | |
android:textAllCaps="false" | |
android:textColor="#000000" | |
android:background="#ffffff" | |
android:layout_alignParentBottom="true" | |
android:layout_centerHorizontal="true" | |
android:layout_marginBottom="66dp" /> | |
</RelativeLayout> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.gabrielm.assignmenttracker; | |
import android.animation.ArgbEvaluator; | |
import android.animation.ObjectAnimator; | |
import android.animation.ValueAnimator; | |
import android.content.Intent; | |
import android.graphics.Color; | |
import android.support.v7.app.AppCompatActivity; | |
import android.os.Bundle; | |
import android.view.View; | |
import android.widget.Button; | |
import android.widget.EditText; | |
import android.widget.Toast; | |
public class addAssignment extends AppCompatActivity { | |
EditText etName, etDueDate, etCourse, etNotes; | |
Button bAddAssignment, bViewAssignment; | |
@Override | |
protected void onCreate(Bundle savedInstanceState) { | |
super.onCreate(savedInstanceState); | |
setContentView(R.layout.activity_add_assignment); | |
etName = (EditText) findViewById(R.id.etName); | |
etDueDate = (EditText) findViewById(R.id.etDueDate); | |
etCourse = (EditText) findViewById(R.id.etCourse); | |
etNotes = (EditText) findViewById(R.id.etNotes); | |
bAddAssignment = (Button) findViewById(R.id.bAddAssignment); | |
bViewAssignment = (Button) findViewById(R.id.bViewAssignment); | |
bAddAssignment.setOnClickListener(new View.OnClickListener() { | |
@Override | |
public void onClick(View v) { | |
bAddAssignment.setBackgroundColor(Color.YELLOW); | |
// bAddAssignment.setBackgroundColor(Color.WHITE); | |
etName.setText(""); | |
etDueDate.setText(""); | |
etCourse.setText(""); | |
etNotes.setText(""); | |
Toast.makeText(addAssignment.this, "Assignment added", Toast.LENGTH_SHORT).show(); | |
} | |
}); | |
bViewAssignment.setOnClickListener(new View.OnClickListener() { | |
@Override | |
public void onClick(View v) { | |
startActivity(new Intent(addAssignment.this, assignmentTracker.class)); | |
} | |
}); | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | |
package="com.gabrielm.assignmenttracker"> | |
<application | |
android:allowBackup="true" | |
android:icon="@mipmap/ic_launcher" | |
android:label="@string/app_name" | |
android:supportsRtl="true" | |
android:theme="@style/AppTheme"> | |
<activity android:name=".assignmentTracker"> | |
<intent-filter> | |
<action android:name="android.intent.action.MAIN" /> | |
<category android:name="android.intent.category.LAUNCHER" /> | |
</intent-filter> | |
</activity> | |
<activity android:name=".addAssignment"></activity> | |
</application> | |
</manifest> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.gabrielm.assignmenttracker; | |
import android.app.Application; | |
import android.test.ApplicationTestCase; | |
/** | |
* <a href="http://d.android.com/tools/testing/testing_android.html">Testing Fundamentals</a> | |
*/ | |
public class ApplicationTest extends ApplicationTestCase<Application> { | |
public ApplicationTest() { | |
super(Application.class); | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.gabrielm.assignmenttracker; | |
import android.content.Intent; | |
import android.support.v7.app.AppCompatActivity; | |
import android.os.Bundle; | |
import android.view.View; | |
import android.widget.Button; | |
public class assignmentTracker extends AppCompatActivity { | |
Button bAddAsign; | |
@Override | |
protected void onCreate(Bundle savedInstanceState) { | |
super.onCreate(savedInstanceState); | |
setContentView(R.layout.activity_assignment_tracker); | |
bAddAsign = (Button) findViewById(R.id.bAddAsign); | |
bAddAsign.setOnClickListener(new View.OnClickListener() { | |
@Override | |
public void onClick(View v) { | |
startActivity(new Intent(assignmentTracker.this, addAssignment.class)); | |
} | |
}); | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.gabrielm.assignmenttracker; | |
import android.animation.ArgbEvaluator; | |
import android.animation.ObjectAnimator; | |
import android.animation.ValueAnimator; | |
import android.content.Intent; | |
import android.graphics.Color; | |
import android.support.v7.app.AppCompatActivity; | |
import android.os.Bundle; | |
import android.view.View; | |
import android.widget.Button; | |
import android.widget.EditText; | |
import android.widget.Toast; | |
public class addAssignment extends AppCompatActivity { | |
EditText etName, etDueDate, etCourse, etNotes; | |
Button bAddAssignment, bViewAssignment; | |
@Override | |
protected void onCreate(Bundle savedInstanceState) { | |
super.onCreate(savedInstanceState); | |
setContentView(R.layout.activity_add_assignment); | |
etName = (EditText) findViewById(R.id.etName); | |
etDueDate = (EditText) findViewById(R.id.etDueDate); | |
etCourse = (EditText) findViewById(R.id.etCourse); | |
etNotes = (EditText) findViewById(R.id.etNotes); | |
bAddAssignment = (Button) findViewById(R.id.bAddAssignment); | |
bViewAssignment = (Button) findViewById(R.id.bViewAssignment); | |
bAddAssignment.setOnClickListener(new View.OnClickListener() { | |
@Override | |
public void onClick(View v) { | |
bAddAssignment.setBackgroundColor(Color.YELLOW); | |
// bAddAssignment.setBackgroundColor(Color.WHITE); | |
etName.setText(""); | |
etDueDate.setText(""); | |
etCourse.setText(""); | |
etNotes.setText(""); | |
Toast.makeText(addAssignment.this, "Assignment added", Toast.LENGTH_SHORT).show(); | |
} | |
}); | |
bViewAssignment.setOnClickListener(new View.OnClickListener() { | |
@Override | |
public void onClick(View v) { | |
startActivity(new Intent(addAssignment.this, assignmentTracker.class)); | |
} | |
}); | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.gabrielm.assignmenttracker; | |
import android.app.Application; | |
import android.test.ApplicationTestCase; | |
/** | |
* <a href="http://d.android.com/tools/testing/testing_android.html">Testing Fundamentals</a> | |
*/ | |
public class ApplicationTest extends ApplicationTestCase<Application> { | |
public ApplicationTest() { | |
super(Application.class); | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.gabrielm.assignmenttracker; | |
import android.content.Intent; | |
import android.support.v7.app.AppCompatActivity; | |
import android.os.Bundle; | |
import android.view.View; | |
import android.widget.Button; | |
public class assignmentTracker extends AppCompatActivity { | |
Button bAddAsign; | |
@Override | |
protected void onCreate(Bundle savedInstanceState) { | |
super.onCreate(savedInstanceState); | |
setContentView(R.layout.activity_assignment_tracker); | |
bAddAsign = (Button) findViewById(R.id.bAddAsign); | |
bAddAsign.setOnClickListener(new View.OnClickListener() { | |
@Override | |
public void onClick(View v) { | |
startActivity(new Intent(assignmentTracker.this, addAssignment.class)); | |
} | |
}); | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apply plugin: 'com.android.application' | |
android { | |
compileSdkVersion 23 | |
buildToolsVersion "23.0.2" | |
defaultConfig { | |
applicationId "com.gabrielm.assignmenttracker" | |
minSdkVersion 15 | |
targetSdkVersion 23 | |
versionCode 1 | |
versionName "1.0" | |
} | |
buildTypes { | |
release { | |
minifyEnabled false | |
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' | |
} | |
} | |
} | |
dependencies { | |
compile fileTree(dir: 'libs', include: ['*.jar']) | |
testCompile 'junit:junit:4.12' | |
compile 'com.android.support:appcompat-v7:23.2.1' | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<resources> | |
<color name="colorPrimary">#3F51B5</color> | |
<color name="colorPrimaryDark">#303F9F</color> | |
<color name="colorAccent">#FF4081</color> | |
</resources> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<resources> | |
<!-- Default screen margins, per the Android Design guidelines. --> | |
<dimen name="activity_horizontal_margin">16dp</dimen> | |
<dimen name="activity_vertical_margin">16dp</dimen> | |
</resources> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Project-wide Gradle settings. | |
# IDE (e.g. Android Studio) users: | |
# Gradle settings configured through the IDE *will override* | |
# any settings specified in this file. | |
# For more details on how to configure your build environment visit | |
# http://www.gradle.org/docs/current/userguide/build_environment.html | |
# Specifies the JVM arguments used for the daemon process. | |
# The setting is particularly useful for tweaking memory settings. | |
# Default value: -Xmx10248m -XX:MaxPermSize=256m | |
# org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 | |
# When configured, Gradle will run in incubating parallel mode. | |
# This option should only be used with decoupled projects. More details, visit | |
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects | |
# org.gradle.parallel=true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
�PNG | |