2. ListViews: Detect taps and long presses

  Рет қаралды 5,497

IJ Apps

IJ Apps

Күн бұрын

In this second tutorial, learn how to detect taps and long presses on rows in your ListView and get the row that was interacted with.
Grocery ListView App Playlist: • ListView Tutorials | G...
GitHub repo: github.com/IJ-...
Instagram: / ij_apps
Join the IJ Apps Discord! / discord
App on the Google Play Store!
play.google.co...
The E-rrigation app allows you to save money and cut down water usage by optimizing sprinkler placement before you put the sprinkler system in place.
Check it out and leave a review!
Check out my Face Analyzer app on the Google Play Store: play.google.co...
----------------
Subscribe to IJ Apps to stay up to date when new videos are released and share the channel with friends!
IJ Apps Website: ij-apps.wixsit...
*IJ Apps GitHub Page: github.com/IJ-...
*Personal GitHub Page with Cool and Complex Projects: github.com/ish...

Пікірлер: 10
@miguelhernandez9532
@miguelhernandez9532 Жыл бұрын
When I long press the message appears without problem but if I remove my finger, the other toast appears, as if I had pressed it again.
@humble_roots
@humble_roots Жыл бұрын
0:46 the "Adapter View" OnClickListener is no longer the default in Android studio now it gives you a "View.OnClickListener" when you hit enter and there's no "int i" parameter to grab the value, just "View view". If I just type the code as is it highlights errors and fixing them takes you back to the "View.OnClickListener" method in about 3 steps. Is there another way to still get it working?
@humble_roots
@humble_roots Жыл бұрын
OH I figured outwhat the problem was! For anyone else, there is a DIFFERENCE between "OnClickListener" and "OnItemClickListener" I accidentally typed the former and thus got the wrong suggested codes. Remember to put "ITEM" in there!!!
@garzuze
@garzuze Жыл бұрын
@@humble_roots Thank you so much!
@litunhellboy1996
@litunhellboy1996 3 жыл бұрын
Can you make lock and unlock functionality like "brain out" game sir
@IJApps
@IJApps 3 жыл бұрын
I am not sure what functionality you are referring to. If you want to make it so that the ListView rows are not clickable, you can add this XML attribute to your ListView: android:focusable="false"
@DARK____SIDE
@DARK____SIDE 2 жыл бұрын
awesome app bro, sir i have created a trading bot app for crypto, but i dont know how to connect binance API to my app and present the user their orders in listview, i also want that app should execute user order when the certain level comes, please help me sir
@IJApps
@IJApps 2 жыл бұрын
I have not used the Binance API before. Their documentation should be able to help you: binance-docs.github.io/apidocs
@reeshabanur6392
@reeshabanur6392 3 жыл бұрын
I'm getting error when I use toast string s in every other functions... Can you help me out to resolve ?
@IJApps
@IJApps 3 жыл бұрын
If you are getting an error, instead of calling the makeToast() function just do Toast.makeText(getApplicationContext(), name, Toast.LENGTH_SHORT).show();
3. Add Rows to ListView Dynamically
5:55
IJ Apps
Рет қаралды 19 М.
The FULL Beginner to Pro Roadmap for Android Development in 2023
10:47
Philipp Lackner
Рет қаралды 258 М.
SCHOOLBOY. Мама флексит 🫣👩🏻
00:41
⚡️КАН АНДРЕЙ⚡️
Рет қаралды 7 МЛН
Fake watermelon by Secret Vlog
00:16
Secret Vlog
Рет қаралды 16 МЛН
No, Einstein Didn’t Solve the Biggest Problem in Physics
8:04
Sabine Hossenfelder
Рет қаралды 301 М.
Hacking: What They Don't Want You to Know
2:48
AminCode
Рет қаралды 293
Molly: A More Secure Signal
8:05
Techlore
Рет қаралды 19 М.
6. Save Grocery List when App is Closed | Extension
9:12
IJ Apps
Рет қаралды 4,3 М.
1. Android Grocery List App | ListViews Tutorial
3:46
IJ Apps
Рет қаралды 20 М.