DevLog - adamthill/Todo GitHub Wiki

##2016-03-10## Still not working...

More links:

http://www.webplusandroid.com/creating-listview-with-edittext-and-textwatcher-in-android/ http://androidtechnicalblog.blogspot.com/2014/04/quick-trick-of-week-edittext-inside.html http://stackoverflow.com/questions/7875179/how-to-put-editable-edittext-within-a-listview https://vikaskanani.wordpress.com/2011/07/27/android-focusable-edittext-inside-listview/ http://stackoverflow.com/questions/8115800/android-handling-many-edittext-fields-in-a-listview

Maybe we give up on this for now - make the list read-only and open another fragment to enter the details

##2016-03-03## Still have not resolved the issue. Jamie got closer, but the toasts are still coming on the initial view loading.

Two more random links:

  1. http://stackoverflow.com/questions/8115800/android-handling-many-edittext-fields-in-a-listview
  2. http://stackoverflow.com/questions/20958223/edittext-in-listview-is-updated-by-ontextchanged-when-scrolling

##2016-02-04## Jamie: The middle answer on this one might help (suggested removing and re-adding a text watcher every time the view is recycled): http://stackoverflow.com/questions/19666752/edittext-in-a-list-adapter-how-to-save-the-value

##2016-01-25## This seems like the best implementation of TextWatcher I've seen (mostly because it doesn't rely on knowing the EditText inputs like the [stackoverflow] (http://stackoverflow.com/questions/11134144/android-edittext-onchange-listener) [questions] (http://stackoverflow.com/questions/5702771/how-to-use-single-textwatcher-for-multiple-edittexts) I saw).

##2016-01-21## Gradle seems to be independent of our project files (the .gradle folder isn't in github). Not sure how to update gradle inside Android Studio.

We created a new menu item to populate our sample data. We started down the path of finding what we would need to keep track of EditText changes. Signs point to TextWatcher, but this looks overly complicated compared to what we are able to use for checkboxes.

I think our architecture may be at fault here. I will be searching for how others who use the ViewHolder handle updates.

##2015-11-02## We got the checkbox status to save to file by setting tags appropriately.
Next time, we need to do something (add another event listener) to get the edit text to save as well.

##2015-10-19## We accomplished reading the file inside DataProvider, and removed that code from MainActivity. We deleted the MockDataProvider. Wahoo! We were not able to save the updated data. We need to synch the list items inside the fragment with what has changed in the adapter.

##2015-10-12## I must have not committed my changes from 8/31 to github. Also, the project is a mess with hardcoded data.

Today, we made the DataProvider class a singleton (like MockDataProvider is). We also reimplemented writing from the DataProvider class using Gson to format the data to a string. We actually advanced a bit by using the data from the fragment (or possibly from the adapter). However, changing the data on the view is not currently writing updated data.

Goals for next time:

  1. Move the read functionality into DataProvider
  2. Write the updated data
  3. Kill MockDataProvider

Future Goals:

  1. Add and remove line items - not just hardcoded 3 items!

##2015-10-05## We forked the TodoClone repo and setup local copies using: https://help.github.com/articles/fork-a-repo/

I made a change to README.md and then everyone else synched using instructions from https://help.github.com/articles/syncing-a-fork/

We created local branches, and everything seemed to work.

For next time, everyone will fork the original Todo following the above instructions. We will continue working on the original Repo using the Atlassian Forking workflow (see link from last time).

Vim Cheatsheet -> http://www.fprintf.net/vimCheatSheet.html

Git Cheatsheet -> http://www.git-tower.com/blog/git-cheat-sheet/

##2015-09-25## Excuse the brain dump, I will try to clean up later.

We have spent the last two or three sessions working with git, trying to get my changes out to the other forks.

Some time after 8/31, I had committed my updates to my branch on origin (I think) but not master.

We then had the usual problem of synchronizing those changes among the other branches.

Angie and Jamie got a Git book in kindle format.

During the last session, we reviewed the workflows here -> https://www.atlassian.com/git/tutorials/comparing-workflows

And I think decided that Feature Branch may be the way to go.

There is some concern whether our existing origin git repo is "bare", so I made a bare clone (TodoClone) following instructions here -> https://help.github.com/articles/duplicating-a-repository/

It appears that the clone copied over all the branches, but I think we need to remove them as well to follow the Feature Branch work flow.

-Adam

##2015-08-31## Following instructions here to add GSON to project: http://blog.ajduke.in/2013/07/28/getting-started-with-google-gson/ (actually, just copied the compile line; didn't need to add repositories).

We got the read/write working from DataProvider class. We didn't need to add any extra code - GSON was able to map our class to JSON as is.

Next up will be interfacing with the view to grab real data.

2015-08-24

Created DataProvider and List class to facilitate saving/reading files. Looking into stringifying and parsing JSON. Potential resource to check out: Use Gson to work with JSON in your Android apps

Changes pushed to AdamBranch on GitHub.

2015-07-27

We wrote a simple JSON object to file in the group session, but we couldn't find it in the Android File Explorer. After most people left, I read the file and displayed the content as a Toast. Our file save had worked. Later, I searched the internet for an answer to why we couldn't see the file. As it turned out, Android File Explorer does not have root access to the device so it cannot see the files.

2015-07-20

###Next feature - Persisting Data###

  1. Save to file as JSON
  • UI needs a save button
  • UI needs a way to add new list items
  1. Read from file

Filename: ‘TodoLists.js'

###JSON Structure### ####List object#### { title: ‘list’, items: [item objects] }, …] } ####Item object#### { itemText: ‘item1’, isDone: false }

2015-04-13

Learned about merge conflicts with git. Now that we have all forked the repo, if we develop in our own branches, it will make rebasing the repo easier. All new features will be created in a local branch. Android Studio can create and switch branches under VCS -> Git -> Branches.

Started (loosely) following this tutorial to create a replacement for using simple_list_item_1. The goal is to get a list item preceded by checkbox.

Next time: Need to finish up the code to use our new stuff.

2015-04-06

Our goal is to get a custom list view working with hard-coded data. The data right now consists of a list item and a checkbox. We created a singleton MockDataProvider to replace the ArrayList hardcoded in the main activity. This might be a useful class later for testing, or it might just be throw away.

Next time: Start working on the presentation

⚠️ **GitHub.com Fallback** ⚠️