CHECKBOX AND RADIOBUTTON - Android Fundamentals

  Рет қаралды 29,699

Philipp Lackner

Philipp Lackner

4 жыл бұрын

In this video you learn how to create simple CheckBoxes and RadioButtons
and how to use them correctly.
⭐ Get certificates for your future job
⭐ Save countless hours of time
⭐ 100% money back guarantee for 30 days
⭐ Become a professional Android developer now:
pl-coding.com/premium-courses...
Regular Android tutorials on my Instagram: / philipplackner_official
Checkout my GitHub: github.com/philipplackner

Пікірлер: 53
@bujowskis
@bujowskis 3 жыл бұрын
4 days ago, I finished your Kotlin tutorial series. since yesterday, I've been working on this one. It seems since the next one, it's going to be much more than a brief code in MainActivity and some xml. It's a good thing you provide this relatively easy introduction, so don't consider it a complaint. So far, both series are simply amazing. Although some things might have changed, I couldn't find any better tutorial and this one seems to hold up great. I don't usually comment on videos, though these series are special. 10/10, will recommend it to anyone interested in learning kotlin and AS. Thank you for your brilliant work, hope to see more!
@PhilippLackner
@PhilippLackner 3 жыл бұрын
Thanks a lot for your kind words, I'm happy that my content helps!
@divyanshusharma5614
@divyanshusharma5614 2 жыл бұрын
what are you doing know i started this series 3 days ago some tips
@johanisverius8864
@johanisverius8864 2 жыл бұрын
Mr. Philipp Lackner. I am called John, and I am a teacher at a school in Makassar, Indonesia. I first saw and learned your tutor from the video 'Build a simple android app with kotlin', and it turned out to be really simple. I am so excited to make teaching apps for my students. Thank you for your video and please continue to share through this channel.
@user-me3ex1gv8v
@user-me3ex1gv8v 2 жыл бұрын
Thank you for the awesome lesson! I am a university student from Japan, and I'm not good at English. However, your lesson is very easy to understand (because you speak slowly, use easy words, and show me coding), so I learned very useful functions!
@dylanthai6473
@dylanthai6473 Жыл бұрын
I would hit the like button 10000 times. Thank you for this great series! That helps a lot.
@tomoroid2051
@tomoroid2051 11 ай бұрын
Working through your fundamentals playlist, absolutely brilliant. Clear concise and really well structured. The book that I just bought on the subject is going straight in the garbage.
@olayiwolaosho4989
@olayiwolaosho4989 3 жыл бұрын
Thanks for this man !!!! Really making this tutorial easy to learn
@VenewebTV
@VenewebTV 3 жыл бұрын
Excellent video, regards from Venezuela
@alexgireff2180
@alexgireff2180 2 жыл бұрын
Thank you a lot. It's pleasure to learn anything with some interesting clear examples. I believe it's a highly effective way to master development skills
@mujlugun1156
@mujlugun1156 3 жыл бұрын
Great man, thanks for all this tutorial stuff 👏👏👏
@karmarinzin7695
@karmarinzin7695 3 жыл бұрын
Your tutorial helped me alot...so thanks.
@RomskieL
@RomskieL 3 жыл бұрын
Exactly what I need! Thanks!
@proficientengineers7342
@proficientengineers7342 4 жыл бұрын
I like your tutorials I hope to learn a lot from you
@yousifmmg
@yousifmmg 3 жыл бұрын
Very nice tut ! thank you very simple and easy to follow
@mariafernandasegura6836
@mariafernandasegura6836 Ай бұрын
Thank you for the explanation, very clear.
@swatikamat6305
@swatikamat6305 3 жыл бұрын
Hey, you really made complex things simpler, thanks for such nice tutorials , thumbs Up!!!
@PhilippLackner
@PhilippLackner 3 жыл бұрын
You're very welcome!
@bacanalienigena
@bacanalienigena 2 жыл бұрын
I have used to work out in my case was: if ( cheese ) " \Cheese " else { " " } )+ in case you have found any issues following along as it is in this video.
@kouskmusic
@kouskmusic 4 жыл бұрын
Awesome tutorials!
@PhilippLackner
@PhilippLackner 4 жыл бұрын
Thank you!
@daiyrkanybekov8575
@daiyrkanybekov8575 3 жыл бұрын
Very clean
@mohitmahajan1947
@mohitmahajan1947 4 жыл бұрын
great tutorial 👍
@PhilippLackner
@PhilippLackner 4 жыл бұрын
Thanks man!!
@proficientengineers7342
@proficientengineers7342 4 жыл бұрын
if possible please try to be sharing us project challenge as way to learn more on android
@marypaul9627
@marypaul9627 2 жыл бұрын
niiice
@gutic4824
@gutic4824 4 жыл бұрын
Nice!!! :)
@PhilippLackner
@PhilippLackner 4 жыл бұрын
Thanks!
@trrrmac
@trrrmac 3 жыл бұрын
Whats the name of the software to use here? am vanilla
@harshaharshi7269
@harshaharshi7269 3 жыл бұрын
Sir I have a doubt why did give true for beef radio button it is reflecting in the app which shouldn't be
@gideonshawana7950
@gideonshawana7950 Жыл бұрын
How can put text in multiple lines in andriod
@ahmadirfan7840
@ahmadirfan7840 3 жыл бұрын
Hi Philipp, I have a question about the if statement for the check box as you showed below. I don't understand of (if(cheese) " Cheese" else ""). Does it simillar with the statement below? if(cheese) "You picked cheese" else "" If yes, does it means Kotlin will returned to us an individual data, in this case, cheese when we clicked or tap it?
@michaelchristensen8350
@michaelchristensen8350 2 жыл бұрын
I am not sure if I understand your question. But the line (if(cheese) " Cheese" else "") it simply adds the text string "cheese" to the text string orderString on a new line when cheese is selected in the checkbox. That is what the backslash is for. Your example if(cheese) "You picked cheese" else "" would add the text string "You picked cheese" to the text string orderString directly after the text without a new line when cheese is selected in the checkbox.
@divyanshusharma5614
@divyanshusharma5614 2 жыл бұрын
tect view is not showing in my kt file pls help
@zensic
@zensic 3 жыл бұрын
Man, I wish there was a Java version of this tutorial.
@PhilippLackner
@PhilippLackner 3 жыл бұрын
Java is completely outdated for android, times have changed :D
@indignocat
@indignocat 10 ай бұрын
Moin Philipp! One question: how can one make the RadioGroup work with viewBinding instead of the deprecated Synthetics? I can't get the RadioButton text returned, only an Int is returned. Should I use dataBinding instead?
@scomalia
@scomalia 7 ай бұрын
any updates on this Philipp? I know everything is migrating toward jetpack, but it would be nice to know how to utilize binding functionality and not use findViewByID.
@indignocat
@indignocat 7 ай бұрын
​@@scomaliaI found the way to replace that findViewById with viewBinding: Modify Philipp's variable declarations with the following versions, provided that you've already enabled viewBinding in build.gradle: val checkedMeatRadioButtonId = binding.rgMeat.checkedRadioButtonId val meatType = binding.root.findViewById(checkedMeatRadioButtonId) It's a drop-in replacement, the rest of the code works 100% with it.
@user-jd1nz3li3m
@user-jd1nz3li3m 6 ай бұрын
bro its not working@@indignocat
@indignocat
@indignocat 6 ай бұрын
@@user-jd1nz3li3m did you enable viewBinding in build.gradle? Also, in MainActivity you need the following: private lateinit var binding: ActivityMainBinding // BEFORE override fun onCreate and binding = ActivityMainBinding.inflate(layoutInflater) // AFTER super.onCreate(savedInstanceState) If in doubt, check the implementation of viewBinding here: kzbin.info/www/bejne/sGGpY4SKdrCmjbc
@billmolloy2264
@billmolloy2264 8 ай бұрын
@ancent2123
@ancent2123 2 жыл бұрын
Why it didnt drop me the checkedButtonRadioId?
@bobrichardson3854
@bobrichardson3854 3 жыл бұрын
Hi, great video. I have one issue I was hoping you call help me with. I cannot get Android Studio to recognize my radiogroup, radiobuttons, and checkboxes created in the design. Do you know what would be causing this? I see you are using an import kotlinx which is no longer used. Do you know what I would use as a replacement?
@sb-cr4wu
@sb-cr4wu 2 жыл бұрын
did you fix this?
@mohamed_gamal6308
@mohamed_gamal6308 Жыл бұрын
@@sb-cr4wu I think you need first to find their id for example var rgMeat = findViewById(R.id.rgMeat) then it should be worked with you var checkedMeatRadioButtonId = rgMeat.checkedRadioButtonId
@user-jd1nz3li3m
@user-jd1nz3li3m 6 ай бұрын
its not working@@mohamed_gamal6308
@anirudhthimmaiah4411
@anirudhthimmaiah4411 3 жыл бұрын
can u please convert the code from Kotlin to java.
@PhilippLackner
@PhilippLackner 3 жыл бұрын
can u please learn kotlin
@anirudhthimmaiah4411
@anirudhthimmaiah4411 3 жыл бұрын
@@PhilippLackner I don't think I can do that!
@bujowskis
@bujowskis 3 жыл бұрын
@@anirudhthimmaiah4411 F for you, then
@daniel_tobi
@daniel_tobi Жыл бұрын
having issues running this? class MainActivity : AppCompatActivity() { private lateinit var binding: ActivityMainBinding override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) binding = ActivityMainBinding.inflate(layoutInflater) setContentView(binding.root) binding.btnOrder.setOnClickListener { val rice = binding.rbRice.isChecked val meat = binding.rbMeat.isChecked val cheese = binding.cbCheese.isChecked val onion = binding.cbOnion.isChecked val orderString = "You ordered a burger with: " + (if (rice) " rice" else "") + (if (meat) " meat" else "") + (if (cheese) " cheese" else "") + (if (onion) " onion" else "") binding.tvOrder.text = orderString } } }
TOASTS AND CONTEXT - Android Fundamentals
16:51
Philipp Lackner
Рет қаралды 36 М.
LAYOUT BASICS AND LINEAR LAYOUT - Android Fundamentals
16:45
Philipp Lackner
Рет қаралды 112 М.
Must-have gadget for every toilet! 🤩 #gadget
00:27
GiGaZoom
Рет қаралды 12 МЛН
Пробую самое сладкое вещество во Вселенной
00:41
Vivaan  Tanya once again pranked Papa 🤣😇🤣
00:10
seema lamba
Рет қаралды 29 МЛН
RECYCLERVIEW - Android Fundamentals
24:58
Philipp Lackner
Рет қаралды 101 М.
CONSTRAINT LAYOUT BASICS - Android Fundamentals
14:02
Philipp Lackner
Рет қаралды 76 М.
Intents & Intent Filters - Android Basics 2023
25:36
Philipp Lackner
Рет қаралды 63 М.
FRAGMENTS - Android Fundamentals
17:29
Philipp Lackner
Рет қаралды 324 М.
TEXTVIEWS - Android Fundamentals
14:09
Philipp Lackner
Рет қаралды 26 М.
The Art of Code - Dylan Beattie
1:00:49
NDC Conferences
Рет қаралды 4,7 МЛН
How to Implement RadioButton in Android
11:17
Codes Easy
Рет қаралды 4,1 М.
Must-have gadget for every toilet! 🤩 #gadget
00:27
GiGaZoom
Рет қаралды 12 МЛН