HomeОбразованиеRelated VideosMore From: Sabith Pkc Mnr

Android Kotlin Tutorial: Using Increment & Decrement Operators in Programming

10 ratings | 142 views
#Kotlin #AndroidKotlin #KotlinTutorial Today, we are going to learn about using Increment and Decrement in Kotlin program Goal: Through this Kotlin tutorials, I aim to teach you about Kotlin and I hope I can see my students doing amazing software in Kotlin language. IntelliJ IDEA Community version for Kotlin: https://www.jetbrains.com/idea/download/ Official Website: http://www.sabithpkcmnr.com Subscribe Here: https://www.youtube.com/SabithPkcMnr?sub_confirmation=1 If you have any kind of suggestions or recommendation, feel free to let me know. Ask your doubts in the comment section below to that corresponding video and I will be answering each one of you! The official website for source codes: http://www.sabithpkcmnr.com Hope that was a great tutorial for you. Find Me : Google : https://google.com/+SabithPkcMnr Twitter : https://twitter.com/SabithPkcMnr GitHub : https://github.com/sabithpkcmnr Subscribe Me : https://www.youtube.com/SabithPkcMnr?sub_confirmation=1 The official website for source codes: http://www.sabithpkcmnr.com Your master: Tutor: Sabith Pkc Mnr Skill: Android Programming Expert Profile: http://www.google.com/+SabithPkcMnr Sabith Pkc Mnr | TechCetro Official© Mirroring is strictly restricted.
Html code for embedding videos on your blog
Text Comments (22)
as df (30 days ago)
button2.setOnClickListener { if( condition) { button222.setBackgroundColor(Color.YELLOW) val txv = findViewById<View>(R.id.textView3) as TextView val co = co + 10 txv.setText(Integer.toString(co)) } Same code is for button 3 and 4 I want to increase the value of textview on button click and I want to store previous value also and add new value on textview means one time click value will be 10 second time 20 etc..
Sabith Pkc Mnr (29 days ago)
Create sharedpreference once and use its editor in each case.
as df (29 days ago)
Sabith Pkc Mnr but for each button I have to use same code
Sabith Pkc Mnr (29 days ago)
So, as far as I understood your question, you will need to specify a SharedPreference in your program to save the data. Clear a SharedPreference in the onCreate and update its value in each button click. Your codes are isn't that bad to comment but just give a try to use the pref.
as df (30 days ago)
He bro I have take three buttons and three buttons have three onclicklistener when user click on button one then the value of textview will be increased by 10 and when when click on button2 then value will be 20 etc.. but it's not working in kotline
Sabith Pkc Mnr (30 days ago)
I will be here as long as I go for sleep ;)
as df (30 days ago)
Sabith Pkc Mnr ok bro can you wait for some time
Sabith Pkc Mnr (30 days ago)
Can you paste the code here? As this is a very short program, I can write the code within your code :)
as df (30 days ago)
Sabith Pkc Mnr yes
Sabith Pkc Mnr (30 days ago)
Are you using Kotlin in Android Studio?
Moklesur Rahman (30 days ago)
nice video
Sabith Pkc Mnr (30 days ago)
Thank you!!
Moklesur Rahman (30 days ago)
how beautiful
Sabith Pkc Mnr (30 days ago)
Yaa my boi :D
Ruwais Razack (30 days ago)
That's so cool , keep consistent
Sabith Pkc Mnr (30 days ago)
Uff!
Ruwais Razack (30 days ago)
Sabith Pkc Mnr Yeah, I know you are the man of the kodumkaat ❤️.
Sabith Pkc Mnr (30 days ago)
*Sure my bruh :)* 💪
Shivam Dubey (30 days ago)
Thanks for this video
Sabith Pkc Mnr (30 days ago)
:)

Would you like to comment?

Join YouTube for a free account, or sign in if you are already a member.