Skip to content
This repository was archived by the owner on Mar 5, 2020. It is now read-only.
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
24 changes: 24 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Sloth

Sloth is a Android note taking app devloped by Mobi Social Coding Team
### developed by these Collaborators:

## Getting Started with Github
First of all WELCOME! Github is an amazing tool for collaborating with people and making sure you never lose your code to life's little disaters! Here's a couple of things to help you get started:
- First thing's first: [Here's where to download git](https://git-scm.com/book/en/v1/Getting-Started-Installing-Git)
- This is a super helpful tutorial
- if you don't feel comfortable working with the command line (ie the terminal, windows powershell) [Github has a desktop version](https://desktop.github.com/)

## Making Those PRs
- Why make a PR?
-- 1st PR: Free Mobi Sticker
-- 3rd PR: Added to collaborator section on this repo, Added as a member to the Mobi Github Org
-- 100th PR: adopt a UTA Squirrel or Cat (Do not pet pls)
- [A guide to Making your first PR](https://www.thinkful.com/learn/github-pull-request-tutorial/)

## Getting Started with Android
- [Download Android Studio Here](https://developer.android.com/studio/)
- [Free Android Course](https://www.udacity.com/course/new-android-fundamentals--ud851)
- [Android Tutorials Point](https://www.tutorialspoint.com/android/)
- [Android's Documentation](https://developer.android.com/docs/)

11 changes: 11 additions & 0 deletions app/src/main/java/me/koltensturgill/sloth/MainActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
import android.support.v7.widget.Toolbar;
import android.view.Menu;
import android.view.MenuItem;
import android.widget.Button;
import android.widget.EditText;
import android.widget.Toast;

Expand All @@ -32,6 +33,16 @@ protected void onCreate(Bundle savedInstanceState) {
Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);
setSupportActionBar(toolbar);

//sean edited this
//the button id is located in content_main
Button button2 = (Button) findViewById (R.id.button2);
button2.setOnClickListener(new View.OnClickListener() {
public void onClick(View v) {
// do something
Toast.makeText(MainActivity.this, "Goodbye now!", Toast.LENGTH_SHORT).show();
}
});

FloatingActionButton fab = (FloatingActionButton) findViewById(R.id.fab);

final Intent intent = new Intent(this, Editor.class);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
package me.koltensturgill.sloth.Model;

import java.util.ArrayList;

public class Note {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.support.v7.app.AppCompatActivity;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
Expand All @@ -15,6 +16,9 @@ public class EditorFragment extends Fragment {

private EditorViewModel mViewModel;

//sean left off here, was trying to get the data the user types...
//EditText editText = (EditText) findViewById(R.id.editText);

public static EditorFragment newInstance() {
return new EditorFragment();
}
Expand All @@ -23,6 +27,11 @@ public static EditorFragment newInstance() {
@Override
public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container,
@Nullable Bundle savedInstanceState) {





return inflater.inflate(R.layout.editor_fragment, container, false);
}

Expand All @@ -33,4 +42,8 @@ public void onActivityCreated(@Nullable Bundle savedInstanceState) {
// TODO: Use the ViewModel
}





}
3 changes: 2 additions & 1 deletion app/src/main/res/layout/activity_main.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
android:layout_gravity="start"
android:fitsSystemWindows="true"
app:headerLayout="@layout/nav_header_main"
app:menu="@menu/activity_main_drawer" />
app:menu="@menu/activity_main_drawer"
/>

</android.support.v4.widget.DrawerLayout>
14 changes: 13 additions & 1 deletion app/src/main/res/layout/content_main.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,16 @@
android:layout_height="match_parent"
app:layout_behavior="@string/appbar_scrolling_view_behavior"
tools:context=".MainActivity"
tools:showIn="@layout/app_bar_main"/>
tools:showIn="@layout/app_bar_main">

<Button
android:id="@+id/button2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
tools:layout_editor_absoluteX="161dp"
tools:layout_editor_absoluteY="413dp"
style="?android:attr/borderlessButtonStyle"
android:text="Hello again"
android:clickable="true"
/>
</android.support.constraint.ConstraintLayout>
12 changes: 11 additions & 1 deletion app/src/main/res/layout/editor_fragment.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,20 @@
android:id="@+id/message"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="EditorFragment"
android:text=""
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />


<EditText
android:id="@+id/editText"
android:inputType = "textMultiLine"
android:lines= "8"
android:gravity="top|left"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
/>

</android.support.constraint.ConstraintLayout>