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
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?
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
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 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.
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
(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
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; } });
@@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.
Could you please add a delete button?
How can I add a counter for how many tasks are active?
I can't open the phone preview. 🤔
Nice .great help for people who are new to add development.
Thank you.
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
@Jedidiah Eddie definitely, been watching on InstaFlixxer for since november myself :D
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?
Please add delete button in this app
I wanted to know how to make the strikethrough permanent? Because when I am changing the view, the strikethrough disappears.
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
i just have the add button but i dont have the edit text i cant add any text like in 7:23
idk why does this problem keep happening to me because the code i did is the same as yours
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.
Could you please check whether the java in your machine is latest or not?
@@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.
Sir please upload tutorial on quote aap every 5-6 next button or previous button click show interstitial ad .
will create a playlist on admob monetization if possible..will notify you once done.
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
sir could you add a delete button? thankyou sir
(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
@@melakut849 hi, may I know the (name of your single item here) is from where
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;
}
});
texts added arent visible .help me please
Didn't get you.. could you elaborate please
@@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.
@@shaheershukur thanks I fixed the issue.
I modify it
Link:
play.google.com/store/apps/details?id=com.pixel.profilestat