Тёмный

CHECKBOX AND RADIOBUTTON - Android Fundamentals 

Philipp Lackner
Подписаться 181 тыс.
Просмотров 31 тыс.
50% 1

Опубликовано:

 

15 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 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 3 года назад
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!
@tomoroid2051
@tomoroid2051 Год назад
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.
@swatikamat6305
@swatikamat6305 4 года назад
Hey, you really made complex things simpler, thanks for such nice tutorials , thumbs Up!!!
@PhilippLackner
@PhilippLackner 4 года назад
You're very welcome!
@dylanthai6473
@dylanthai6473 2 года назад
I would hit the like button 10000 times. Thank you for this great series! That helps a lot.
@mariafernandasegura6836
@mariafernandasegura6836 3 месяца назад
Thank you for the explanation, very clear.
@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.
@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
@proficientengineers7342
@proficientengineers7342 4 года назад
I like your tutorials I hope to learn a lot from you
@olayiwolaosho4989
@olayiwolaosho4989 3 года назад
Thanks for this man !!!! Really making this tutorial easy to learn
@VenewebTV
@VenewebTV 3 года назад
Excellent video, regards from Venezuela
@yousifmmg
@yousifmmg 3 года назад
Very nice tut ! thank you very simple and easy to follow
@kouskmusic
@kouskmusic 4 года назад
Awesome tutorials!
@PhilippLackner
@PhilippLackner 4 года назад
Thank you!
@karmarinzin7695
@karmarinzin7695 4 года назад
Your tutorial helped me alot...so thanks.
@mujlugun1156
@mujlugun1156 3 года назад
Great man, thanks for all this tutorial stuff 👏👏👏
@RomskieL
@RomskieL 3 года назад
Exactly what I need! Thanks!
@indignocat
@indignocat Год назад
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 9 месяцев назад
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 9 месяцев назад
​@@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 8 месяцев назад
bro its not working@@indignocat
@indignocat
@indignocat 8 месяцев назад
@@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: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-z0F2QTAKsWU.html
@mohitmahajan1947
@mohitmahajan1947 4 года назад
great tutorial 👍
@PhilippLackner
@PhilippLackner 4 года назад
Thanks man!!
@daiyrkanybekov8575
@daiyrkanybekov8575 3 года назад
Very clean
@gutic4824
@gutic4824 4 года назад
Nice!!! :)
@PhilippLackner
@PhilippLackner 4 года назад
Thanks!
@proficientengineers7342
@proficientengineers7342 4 года назад
if possible please try to be sharing us project challenge as way to learn more on android
@trrrmac
@trrrmac 3 года назад
Whats the name of the software to use here? am vanilla
@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 3 года назад
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.
@harshaharshi7269
@harshaharshi7269 4 года назад
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
@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 2 года назад
@@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 8 месяцев назад
its not working@@mohamed_gamal6308
@marypaul9627
@marypaul9627 2 года назад
niiice
@divyanshusharma5614
@divyanshusharma5614 2 года назад
tect view is not showing in my kt file pls help
@ancent2123
@ancent2123 2 года назад
Why it didnt drop me the checkedButtonRadioId?
@billmolloy2264
@billmolloy2264 11 месяцев назад
@zensic
@zensic 4 года назад
Man, I wish there was a Java version of this tutorial.
@PhilippLackner
@PhilippLackner 4 года назад
Java is completely outdated for android, times have changed :D
@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
@DanielTobi00
@DanielTobi00 Год назад
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
Просмотров 37 тыс.
PERMISSIONS - Android Fundamentals
19:00
Просмотров 46 тыс.
УГОСТИЛ БЕЛКУ МОРОЖЕНЫМ#cat #cats
00:14
Intents & Intent Filters - Android Basics 2023
25:36
Просмотров 72 тыс.
BUTTONS - Android Fundamentals
13:07
Просмотров 36 тыс.
PASSING DATA BETWEEN ACTIVITIES - Android Fundamentals
18:44
FRAGMENTS - Android Fundamentals
17:29
Просмотров 329 тыс.
IMAGEVIEWS - Android Fundamentals
10:14
Просмотров 24 тыс.
IMPLICIT INTENTS - Android Fundamentals
9:57
Просмотров 27 тыс.
CONSTRAINT LAYOUT BASICS - Android Fundamentals
14:02