Creating a Simple To-Do List Android App | List View and Array Adapter

แชร์
ฝัง
  • เผยแพร่เมื่อ 14 ธ.ค. 2024

ความคิดเห็น • 28

  • @sandralarsen7139
    @sandralarsen7139 5 ปีที่แล้ว +3

    Could you please add a delete button?

  • @ankitbhatia2717
    @ankitbhatia2717 4 ปีที่แล้ว +1

    How can I add a counter for how many tasks are active?

  • @olievarodrigo4510
    @olievarodrigo4510 3 ปีที่แล้ว +1

    I can't open the phone preview. 🤔

  • @simpleJoee
    @simpleJoee 5 ปีที่แล้ว +3

    Nice .great help for people who are new to add development.
    Thank you.

    • @jedidiaheddie4370
      @jedidiaheddie4370 3 ปีที่แล้ว

      You prolly dont care but if you're stoned like me during the covid times you can stream pretty much all of the latest movies and series on instaflixxer. I've been watching with my gf recently xD

    • @callumfabian9240
      @callumfabian9240 3 ปีที่แล้ว

      @Jedidiah Eddie definitely, been watching on InstaFlixxer for since november myself :D

  • @Xx-nd1rs
    @Xx-nd1rs 3 ปีที่แล้ว

    My app has form to add and when the user click “add” I redirect them to mainPage .. where I put array in the main or in the form page ? + additemtolist method from which button I call?

  • @arbajraza637
    @arbajraza637 5 ปีที่แล้ว +2

    Please add delete button in this app

  • @anupamdungdung9417
    @anupamdungdung9417 4 ปีที่แล้ว

    I wanted to know how to make the strikethrough permanent? Because when I am changing the view, the strikethrough disappears.

  • @halasfil
    @halasfil 4 ปีที่แล้ว

    Hi, can you answer with an example how to include the reverse strike_thru_text_flag ? Basically I am looking for a that when the user clicks task it gets striked-thru or reverced

  • @pwr6706
    @pwr6706 3 ปีที่แล้ว

    i just have the add button but i dont have the edit text i cant add any text like in 7:23

    • @pwr6706
      @pwr6706 3 ปีที่แล้ว

      idk why does this problem keep happening to me because the code i did is the same as yours

  • @2051joha
    @2051joha 4 ปีที่แล้ว

    unfortenly from Row 22 Time 5:24 / 9:11 after the toDoList = new ArrayList(); in the next file i get just Errors. // . I don´t know what the Problem is between the the Programm say cannot infer arguments and intelly suggest after it, goes more in red.

    • @shaheershukur
      @shaheershukur  4 ปีที่แล้ว

      Could you please check whether the java in your machine is latest or not?

    • @2051joha
      @2051joha 4 ปีที่แล้ว

      @@shaheershukur hi, this could be a possible reason, in this case i used old version of android 1.5 i have also the latest version. thank you so much for your help i will check out later and give you a feedback, thanks lot.

  • @funzone9462
    @funzone9462 5 ปีที่แล้ว +1

    Sir please upload tutorial on quote aap every 5-6 next button or previous button click show interstitial ad .

    • @shaheershukur
      @shaheershukur  5 ปีที่แล้ว +1

      will create a playlist on admob monetization if possible..will notify you once done.

    • @shaheershukur
      @shaheershukur  5 ปีที่แล้ว +1

      Meanwhile you may use this admob guide to learn, if you have basic programming knowledge:
      play.google.com/store/apps/details?id=com.shaheershukur.admobguide

  • @InezAtalika
    @InezAtalika 4 ปีที่แล้ว

    sir could you add a delete button? thankyou sir

    • @melakut849
      @melakut849 4 ปีที่แล้ว

      (name of your list item here).setOnItemLongClickListener(new AdapterView.OnItemLongClickListener() {
      @Override
      public boolean onItemLongClick(AdapterView parent, View view, int position, long id) {
      final int which_item = position;
      new AlertDialog.Builder(MainActivity.this)
      .setIcon(android.R.drawable.ic_delete)
      .setTitle("Are you sure?")
      .setMessage("You want to delete this item?")
      .setPositiveButton("Yes", new DialogInterface.OnClickListener() {
      @Override
      public void onClick(DialogInterface dialog, int which) {
      (name of your single item here).remove(which_item);
      adapter.notifyDataSetChanged();
      }
      })
      .setNegativeButton("No", null)
      .show();
      return true;
      }
      });
      The dialog is optional

    • @iqinsmr6267
      @iqinsmr6267 4 ปีที่แล้ว

      @@melakut849 hi, may I know the (name of your single item here) is from where

    • @ghostaka7405
      @ghostaka7405 4 ปีที่แล้ว

      with long click u can remove item from the list
      public boolean onItemLongClick(AdapterView adapterView, View view, int i, long l) {
      todoList.remove(i);
      arrayAdapter.notifyDataSetChanged();
      return true;
      }
      });

  • @simpleJoee
    @simpleJoee 5 ปีที่แล้ว

    texts added arent visible .help me please

    • @shaheershukur
      @shaheershukur  5 ปีที่แล้ว +1

      Didn't get you.. could you elaborate please

    • @simpleJoee
      @simpleJoee 5 ปีที่แล้ว

      @@shaheershukur I did some changes in the code .
      What I did is
      I created a onClick method on button and wrote down
      to do list.add(edittext.gettect().to string()); array adapter.notifydatasetchanged(); edit text.settext("");
      (Ignore the cases)
      Although the program is working but when I leave the text field empty and press add.an empty blank space is being created in the list.
      .so my request is how to set up the code in case someone tries to add a blank text.

    • @simpleJoee
      @simpleJoee 5 ปีที่แล้ว

      @@shaheershukur thanks I fixed the issue.

  • @chiengeugene2540
    @chiengeugene2540 4 ปีที่แล้ว

    I modify it
    Link:
    play.google.com/store/apps/details?id=com.pixel.profilestat