buihdk / todo-android

A simple To Do android app
0 stars 0 forks source link

Pre-work - ToDo App for Coderschool Android class #1

Open buihdk opened 8 years ago

buihdk commented 8 years ago

My initial submission of ToDo App with the required functionality. Thank you.

/cc @coderschoolreview

coderschoolreview commented 8 years ago

Thank you for your Android submission, buihdk!

:smiley: Everything looks good with the format of your submission. We'll be reviewing your submission soon!

hoanle commented 8 years ago

hi @buihdk

Thanks for the prework

In general:

Details & Suggestions

buihdk commented 8 years ago

hi @hoanle

I has made the following changes to the app:

I have a few questions:

Thanks!

hoanle commented 8 years ago

@buihdk

  1. You should set it in the activity/fragment. For example the button btnAddItem
Button btnAddItem = (Button) findViewById(R.id.btnAddItem);
        btnAddItem.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                //Do add item here
            }
        }); 
  1. this.finish() will close the current activity, that is the EditItemActivity
buihdk commented 8 years ago

@hoanle Thank you for your help. I has fixed the following:

Please check my work again and let me know if the issues you found still exist.

buihdk commented 8 years ago

Hi @hoanle I was able to add the due dates for each ToDo Item successfully using a custom Array Adapter. Now, I am struggling with the Delete action (using setOnItemLongClickListener on the ListView). It seems like I cannot click on the new custom list. Could you please advise?

Thanks, Khoa

hoanle commented 8 years ago

@buihdk Please add android:descendantFocusability="blocksDescendants" to the LinearLayout of your item_date. The click fails to transfer to the view The code should look like this

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:descendantFocusability="blocksDescendants"
    android:layout_height="match_parent">