Calculator App Tutorial E01 - Creating a Simple Calculator Layout in Android Studio 2.3

  Рет қаралды 513,227

Professor DK

Professor DK

7 жыл бұрын

In this video, we will see how we can create a simple calculator layout using the latest Android Studio 2.3!
A part of the tutorial series on creating the calculator app!
Link to next video E02: • Simple Calculator App ...
Link to E03: • Simple Calculator App ...

Пікірлер: 211
@mertkarabay1102
@mertkarabay1102 3 жыл бұрын
Thanks a lot my friend. You did helped a lot. Greetings from Turkey. I hope you are safe and healthty.
@AnkitSharma-ez9js
@AnkitSharma-ez9js 8 ай бұрын
Started my mobile development journey from this video 5.5 years ago. Now working in one of the top Indian product based company as an android developer Thanks Professor DK
@ProfessorDK
@ProfessorDK 8 ай бұрын
Happy the videos have had such a profound impact on your life. Congratulations! :)
@divjyotsinghkhanuja1546
@divjyotsinghkhanuja1546 4 жыл бұрын
For me, when I create a new button, it is not aligning with the previous button. Did you do something previously for that or is there something I am missing?
@ljpvlogs7911
@ljpvlogs7911 4 жыл бұрын
it is so educational for IT student like me.. thank you for this video
@sarfarazengineer5083
@sarfarazengineer5083 4 жыл бұрын
kzfaq.info/get/bejne/kNmnZtKFyKnTpWQ.html
@esraamohamed5601
@esraamohamed5601 6 жыл бұрын
great!,thank you!
@Kermitthesatan
@Kermitthesatan 7 жыл бұрын
thx for tutorial helps a lot
@shriumate1336
@shriumate1336 4 жыл бұрын
very helpfull. thank u sir great work
@turboromy
@turboromy 6 жыл бұрын
If text for the ConstraintLayout looks different from what Prof is doing, you can right click on the preview and change layout there as well. Found it the hard way.
@supersonusourav
@supersonusourav 3 жыл бұрын
Very well explained man
@tarachandra8015
@tarachandra8015 6 жыл бұрын
Simple and lucid..
@dhanushreddy4367
@dhanushreddy4367 3 жыл бұрын
Bro, If I use the scanner And give user inputs, and if I want to collect the details entered by them, what I have to do.whether I should create a database for that or else android studio will automatically collects the data from the users??
@samraasghar4185
@samraasghar4185 7 жыл бұрын
Thank u :)
@aadeshn4816
@aadeshn4816 5 жыл бұрын
thanks na bhava 💗.... video chan aahe.....
@supervirus5831
@supervirus5831 7 жыл бұрын
Add more and more tutorials bro.!! You are good.
@ProfessorDK
@ProfessorDK 7 жыл бұрын
+TechoBomb thank you. Sure man. :)
@mayuri4957
@mayuri4957 5 жыл бұрын
how to solve this error "cannot resolve symbol 'R' in the activity_main.xml".
@premchand5411
@premchand5411 4 жыл бұрын
When I actually tried to drag the buttons, I was not getting the buttons to the place I want. Instead all the buttons are placed to the right left corner. Please help me in resolving the issue.
@chaariwadie1478
@chaariwadie1478 4 жыл бұрын
I guess you found a solution, but that's because they are by default dragged there, link them to the other sides using that circle on each side, it will make a blue arrow
@bhumikasindhav1489
@bhumikasindhav1489 4 жыл бұрын
@@chaariwadie1478 still not able to solve they goes tom to[p corner
@Deepak-xw3vy
@Deepak-xw3vy 5 жыл бұрын
sir after installed andriod studio. gradle sync is failed showing.how to correct it
@manasiarya77
@manasiarya77 4 жыл бұрын
What is the Api used in the beginning??
@alenthomas1534
@alenthomas1534 5 жыл бұрын
Love your work
@kunaltrivedi11
@kunaltrivedi11 6 жыл бұрын
I am trying to add button 🔳 but it is not visible in my android studio, same for Hello World text, it is also not visible
@abidrahman8946
@abidrahman8946 5 жыл бұрын
In relative layout the buttons are not stable. After dragging a button it gathered in the left upper corner but in Constraint Layout the buttons are stable . Any suggestions ?
@leroybenjamin1640
@leroybenjamin1640 2 жыл бұрын
i dont mean to be offtopic but does anybody know of a method to log back into an Instagram account?? I was stupid lost the login password. I would love any help you can offer me.
@bobbybrantley8298
@bobbybrantley8298 2 жыл бұрын
@Leroy Benjamin instablaster =)
@leroybenjamin1640
@leroybenjamin1640 2 жыл бұрын
@Bobby Brantley Thanks for your reply. I found the site through google and I'm waiting for the hacking stuff now. I see it takes quite some time so I will get back to you later when my account password hopefully is recovered.
@leroybenjamin1640
@leroybenjamin1640 2 жыл бұрын
@Bobby Brantley It worked and I now got access to my account again. Im so happy! Thank you so much, you saved my ass!
@bobbybrantley8298
@bobbybrantley8298 2 жыл бұрын
@Leroy Benjamin happy to help =)
@javapro7693
@javapro7693 7 жыл бұрын
thanks
@a1t0rmenta
@a1t0rmenta Жыл бұрын
3:00 when placing buttons inside relative layout it doesnt leave them where you want. It places them on the top left corner of the screen. What kind of magic did you do? I know this is from 2017 but still... it doesnt work.
@prashanthreddyguduru1030
@prashanthreddyguduru1030 5 жыл бұрын
I couldn't found buttons like ok button on palette why it so
@farhanbhutto6657
@farhanbhutto6657 6 жыл бұрын
Text view will not displayed why??
@manjulas4946
@manjulas4946 Жыл бұрын
not able to place the button in the specified location..relative layout only i chooses..kindly help..
@hemantheadalada7596
@hemantheadalada7596 5 жыл бұрын
hardcoded text as error???
@sandeepmaurya5262
@sandeepmaurya5262 5 жыл бұрын
Why every button automatically set to left upper corner in relative layout..plz help
@bubbles2588286
@bubbles2588286 5 жыл бұрын
click the magnet button
@sandeepmaurya5262
@sandeepmaurya5262 5 жыл бұрын
@@bubbles2588286 I will try
@jounaidzouiten8533
@jounaidzouiten8533 5 жыл бұрын
@@bubbles2588286 Thanks camarade :D
@josephifs6493
@josephifs6493 5 жыл бұрын
am eagerly waiting for home automation app
@littleninjas18
@littleninjas18 2 жыл бұрын
I have it on my KZfaq Channel
@07-vrushabhdhond29
@07-vrushabhdhond29 6 жыл бұрын
👍 great!!
@kotabiotech
@kotabiotech 5 жыл бұрын
How much cost? For making a caculator app
@poornimabadgi9594
@poornimabadgi9594 5 жыл бұрын
I am not getting that design and test options down
@muhammaduzair8794
@muhammaduzair8794 4 жыл бұрын
Same problem here. If you resolved that so please tell me
@apoorvpandey457
@apoorvpandey457 3 жыл бұрын
What is the processor and version of ur pc??... Software running so fast!!
@Fwspie
@Fwspie 2 жыл бұрын
This is what i needed.Thx this guide help me a lot :)
@imranali-dk9zd
@imranali-dk9zd 5 жыл бұрын
plz more and more apps making series
@techshare0417
@techshare0417 5 жыл бұрын
Hi! Proffesor DK Could u make a video about Calculator app include the admob advertising banner and Intertitial
@nikhilsetty3451
@nikhilsetty3451 7 жыл бұрын
nice..👍
@sehunoh1429
@sehunoh1429 2 жыл бұрын
THIS TUTORIAL IS ALMOST PERFECT BUT I JUST HAVE PROBLEMS HOW DID YOU DRAG EASILY THOSE BUTTONS IN RELATIVELAYOUT
@afreensworld786
@afreensworld786 3 жыл бұрын
Need logic help guideline one point, how to deposit driver their commission to ride sharing company; and amount will be deduct from wallet amount.
@dibyanandadas7251
@dibyanandadas7251 5 жыл бұрын
And also zoom a little
@abdullahsaleem8471
@abdullahsaleem8471 6 жыл бұрын
can you tell me plz why you are using relative layout instead of Linear or Constraint?
@ProfessorDK
@ProfessorDK 6 жыл бұрын
You can use constraint layout too, you just need to contrain it each time. Relative layout provides lot of customizations for spacing relatively with respect to other elements. Its just personal comfort :)
@Fridge_Incubator
@Fridge_Incubator 6 жыл бұрын
very good work keep it up
@09_aimandalvi29
@09_aimandalvi29 5 жыл бұрын
I have Android studio but of different version im trying to do drag and drop button at relative layout but the button always go to top start instead of placing like you do.Please help me.
@sandipjha5252
@sandipjha5252 5 жыл бұрын
Define id's and position of the layouts .......
@Cartoonvideos1301
@Cartoonvideos1301 6 жыл бұрын
wow
@arbazali611
@arbazali611 6 жыл бұрын
i cant drag buttons once i've put them. Have to delete them to edit them. Am i missing something ?
@ravi_pandey2815
@ravi_pandey2815 5 жыл бұрын
select a button and press delete button on keyboard.To edit click on button editing tools should be on the right
@blogownia
@blogownia 6 жыл бұрын
I created similar app with 3 textedit fields and if any of them is empty the app is crashing, is there is a way to avoid it and give the use info "please fill all the field's" or so ?
@ProfessorDK
@ProfessorDK 6 жыл бұрын
Check if all the text fields are empty or not. U should do this: .isEmpty() inside a if loop.
@blogownia
@blogownia 6 жыл бұрын
Thanks sorted :-)
@theinquisitor18
@theinquisitor18 5 жыл бұрын
In the future it would be very helpful if you could zoom the view. I have vision issues and it's hard to see. Thank you!
@ProfessorDK
@ProfessorDK 5 жыл бұрын
Noted. Appreciate the feedback :)
@tanveerwarraich2613
@tanveerwarraich2613 5 жыл бұрын
Kjjjhjlkhljlklljk I miss youluyjh
@satyaabhinayabushala3885
@satyaabhinayabushala3885 Жыл бұрын
Jacob! May the KZfaq has listened your comment after so many years . As the youtube provided a feature to zoom in and zoom out according to the user's requirements.
@gajalakshmipandiarajan6039
@gajalakshmipandiarajan6039 3 жыл бұрын
I can't see res tab in the application
@maruboyinasriramya7084
@maruboyinasriramya7084 4 жыл бұрын
Why are u using relative layout what is the use
@PVPDS
@PVPDS 5 жыл бұрын
Sir great video, but my question is, will this support different screensizes?
@adityajha7841
@adityajha7841 3 жыл бұрын
Yes most of the time it will do becuase andoid studio adjusts programs to different screen size... But the video does lack some qualities and it missed some details so it will not work on some screens like flip phones
@alliswell9436
@alliswell9436 4 жыл бұрын
app nae kasae scale up down left and right tha laya tha main nae sarae menu main serach kiya hai lakin nahi mila kasae app drag kr rahae thae maira nahi ho raha so plz help
@mdarthur888
@mdarthur888 4 жыл бұрын
Can u make a video making an excel spreadsheet into app.
@thingstoknow8068
@thingstoknow8068 4 жыл бұрын
Any what's app group is the for Android studio app
@Sai-----Atole
@Sai-----Atole 2 жыл бұрын
Buttons not working in calculator app
@jcorr014
@jcorr014 5 жыл бұрын
quedo pegado al momento de diseño.... no puedo arrastrar los objetos a la pantalla =(
@haveanicetime
@haveanicetime 6 жыл бұрын
Vielen Dank!
@subhodipdatta6774
@subhodipdatta6774 4 жыл бұрын
Bro when I did addition the app didn't work it went out
@superiorspider-man1261
@superiorspider-man1261 4 жыл бұрын
if it's went out, you should use function try{}catch
@AbdulMominCosTheta
@AbdulMominCosTheta 4 жыл бұрын
@@superiorspider-man1261 how can I use try{}catch function?
@gebregewergsmezgebe727
@gebregewergsmezgebe727 7 жыл бұрын
thank u for ur tutor how abt the next step
@ProfessorDK
@ProfessorDK 7 жыл бұрын
+Gebregewergs Mezgebe will be uploaded today. Do subscribe.
@devamshah2214
@devamshah2214 6 жыл бұрын
How to make button invisible and then visible after the user has set values?
@ProfessorDK
@ProfessorDK 6 жыл бұрын
Use the button.isEnabled("true"). Change it to true or false wherever u require.
@Fridge_Incubator
@Fridge_Incubator 6 жыл бұрын
google map application ka tutorial upload kero plz
@ruthraprakash2776
@ruthraprakash2776 5 жыл бұрын
Sir design button where
@panditdareboy
@panditdareboy 7 жыл бұрын
Video kab upload karo ge
@HergerTheJoyous
@HergerTheJoyous 5 жыл бұрын
I know absolutely nothing about app development. I started here because I wanted to make an app. The problem I'm having is I made it to where you start moving the button and when I tried the same it would just move back to it original location. I'm not sure what I'm missing. I did everything you do up to that point.
@KingOPTM
@KingOPTM 4 жыл бұрын
same here
@TnInventor
@TnInventor 4 жыл бұрын
i have gradel no java :o xD help
@MiteshPatel-oe8ic
@MiteshPatel-oe8ic 6 жыл бұрын
Good afternoon sir ji... Sir android studio ke liye intel i3 processor sahi rahega.... Plz sir answer the question....
@ProfessorDK
@ProfessorDK 6 жыл бұрын
+Mitesh Patel My laptop uses i3 and 8GB RAM. No issues. It works smoothly :)
@stazyxtnom4514
@stazyxtnom4514 7 жыл бұрын
I thought you would do this app using ConstraintLayout . Not really helpful.
@khatri.navdeep
@khatri.navdeep 6 жыл бұрын
Sir I have a app i want to debug how can i do
@mr.creato537
@mr.creato537 3 жыл бұрын
Bhai mujhe insta par bhejde mai kar deta hun shivamg_76
@knowledgeKnockerRishabh
@knowledgeKnockerRishabh 6 жыл бұрын
Please zoom the screen unable to see clear
@ProfessorDK
@ProfessorDK 6 жыл бұрын
Sure. Will do. Appreciate the feedback.
@Deepak-ch1cc
@Deepak-ch1cc 5 жыл бұрын
Kya sir hum kisi app Ko android me dekh sakte hai
@reshmasharma2931
@reshmasharma2931 4 жыл бұрын
sir i have install android,is it necessary to run it on bluestack,it is ahowing error HAXM is not installed,please provide link to install android for window 7 64 bit
@ProfessorDK
@ProfessorDK 4 жыл бұрын
You don't need BlueStack. You can use your android phone to run apps.
@reshmasharma2931
@reshmasharma2931 4 жыл бұрын
@@ProfessorDK thanks , how android phone can be used
@abdulmuhaimin7319
@abdulmuhaimin7319 3 жыл бұрын
Connect your phone via usb cable
@pranavputta2835
@pranavputta2835 6 жыл бұрын
When I try to drag a button to the design screen, the button isn't visible. Plz reply quickly of how I can fix this.
@mehakmalik7324
@mehakmalik7324 6 жыл бұрын
go to build.gradle(module:app) . here in dependencies, you find a line " implementation 'com.android.support:appcompat-v7:28.0.0-rc01'". change it to " implementation 'com.android.support:appcompat-v7:28.0.0-alpha1'". hope so it will work.
@farhanbhutto6657
@farhanbhutto6657 6 жыл бұрын
Not Working
@ravi_pandey2815
@ravi_pandey2815 5 жыл бұрын
connect to internet and see if there is any error in logs just click fix
@koredeoguntuga3717
@koredeoguntuga3717 5 жыл бұрын
hii are you still having that problem?
@AnuragKumar-rw2zi
@AnuragKumar-rw2zi 2 жыл бұрын
how to change calculator coding in mobile
@praminisha5432
@praminisha5432 2 жыл бұрын
I need a coding for this application Pls
@brahmareddy2470
@brahmareddy2470 6 жыл бұрын
I'm not able to get buttons by dragging can anyone help. I'm using for first time so please be clear
@ProfessorDK
@ProfessorDK 6 жыл бұрын
Go to Tools > SDK Manager and install all the recommended packages. Then u should get the drag and drop
@ghibli5111
@ghibli5111 5 жыл бұрын
could you send me the code of that calculator please?
@riteshsuvarna8345
@riteshsuvarna8345 6 жыл бұрын
after I installed the apk I get "Unfortunately calculator has stopped" ? can I have your email so that I could send you my apk and you could check whats wrong?
@ProfessorDK
@ProfessorDK 6 жыл бұрын
+Ritesh Suvarna Use the logcat to find out the error. It might be a simple logical error or a typo. If u don't know how to, watch my video on "How to run the app on your phone". I guide you on how to debug the app.
@Gracovitz
@Gracovitz 5 жыл бұрын
how in hell dows he get the relative layout from the start to work as it does?? I did the same and it doesn`t do anything for me.
@divjyotsinghkhanuja1546
@divjyotsinghkhanuja1546 4 жыл бұрын
I have the same question! Did you find a way around it?
@prathamcbh
@prathamcbh 6 жыл бұрын
Can you please give the code and help me by saying that how to use a percentage and a decimal feature in this calculator
@ProfessorDK
@ProfessorDK 6 жыл бұрын
+Pratham Cbh Code is given in the third episode of Calculator Series. Percentage function should calculate the value divided by 100 and store it in val1. Decimal Feature should include your val1 and val2 variables declared as float values :=
@prathamcbh
@prathamcbh 6 жыл бұрын
Thank you sir but for the decimal function we have already declared them as double which is an extension of float so it might work.. But I want a decimal button as I am trying to create a STOCK calculator so when the user clicks on the decimal button the decimal point should come on the display so can you help me in detail sir PLEASE......
@umamageswaris3309
@umamageswaris3309 4 жыл бұрын
Design not show how do
@panditdareboy
@panditdareboy 7 жыл бұрын
Make Android App with Ms SQL DataBase Connection soon
@ProfessorDK
@ProfessorDK 7 жыл бұрын
Sure bro, glad to make it! :)
@ajithsdevadiga1603
@ajithsdevadiga1603 6 жыл бұрын
Is it possible with LinearLayout?
@ProfessorDK
@ProfessorDK 6 жыл бұрын
Yes it is. But it will be very lengthy and complex as linear layout allows widgets to be placed either below or horizontal only :)
@ajithsdevadiga1603
@ajithsdevadiga1603 6 жыл бұрын
thank you for your valuable advice
@MiteshPatel-oe8ic
@MiteshPatel-oe8ic 6 жыл бұрын
Sir android studio chala ney ke liye konsa laptop buy kare....
@ProfessorDK
@ProfessorDK 6 жыл бұрын
+Mitesh Patel Any laptop with 4GB ram will do. But you can't open any other big application along with Android Studio on 4GB RAM. Basically you can't multitask smoothly. I recommend you to have 8GB RAM for smooth functioning of Android Studio and you can also multitask. Toh 8GB laptop behtar rahega :)
@MiteshPatel-oe8ic
@MiteshPatel-oe8ic 6 жыл бұрын
Professor DK Thank you sir... Sir processor intel i3 kesa rahega...
@kimjohn7409
@kimjohn7409 5 жыл бұрын
can you give me Premeire pro Editor ?
@cnk2212
@cnk2212 3 жыл бұрын
the first tutorial on windows and not FREAKING MAC OS
@mahabirneogy7195
@mahabirneogy7195 2 жыл бұрын
if you can't drag the buttons, click on the magnet button.
@dibyanandadas7251
@dibyanandadas7251 5 жыл бұрын
You are moving the cursor so randomly and so fast it's difficult to follow you
@ProfessorDK
@ProfessorDK 5 жыл бұрын
Sure will do :)
@MichaelFlares
@MichaelFlares 4 жыл бұрын
@@ProfessorDK that not a good thing that's a bad thing, another thing I will point out, you didn't do any of the programmings to at least teach some of the new developers that are coming in. I felt like I wasted my life wasting you when I could have someone that can explain better, not only do a layout of a program but also do the actual programming.
@jessemcnitt2955
@jessemcnitt2955 3 жыл бұрын
@@MichaelFlares theres part 2 smh
@MichaelFlares
@MichaelFlares 3 жыл бұрын
@@jessemcnitt2955 and? I watched it, still the same results. Good night tagging me for this dumbass reply. Lmao
@juhikumari4243
@juhikumari4243 5 жыл бұрын
Sir l need to do this app but l can not see
@shahidmehmood9471
@shahidmehmood9471 5 жыл бұрын
Contact me if u want 00923215580256
@amanjethaniya7011
@amanjethaniya7011 5 жыл бұрын
Same problem 😶
@jeevanrajput3445
@jeevanrajput3445 5 жыл бұрын
Something missing 😢
@superiorspider-man1261
@superiorspider-man1261 4 жыл бұрын
if it's went out, you should use function try{}catch
@utsavponkiya9869
@utsavponkiya9869 5 жыл бұрын
Sir give me apk file
@ankuranand4244
@ankuranand4244 6 жыл бұрын
How to add constraints to each button??
@ProfessorDK
@ProfessorDK 6 жыл бұрын
Use the design tab and then drag each point to the different sides of the parent layout
@ankuranand4244
@ankuranand4244 6 жыл бұрын
+Professor DK thanks!
@lukahkamande6826
@lukahkamande6826 6 жыл бұрын
Okey
@GamingVasta
@GamingVasta 4 жыл бұрын
Good tutorial rly! but why not letting the user not use his own keyboard.. or numpad*
@mr.creato537
@mr.creato537 3 жыл бұрын
Tere calculator mein wo words daldega achha lagega?
@hasanalkumaish6940
@hasanalkumaish6940 6 жыл бұрын
when i write relativeLayout nothing happend
@ProfessorDK
@ProfessorDK 6 жыл бұрын
Sorry I didn't get you, what do you mean nothing happened?
@tanvirhassananik9980
@tanvirhassananik9980 6 жыл бұрын
the r should be in capital
@Kermitthesatan
@Kermitthesatan 7 жыл бұрын
hello dude
@ProfessorDK
@ProfessorDK 7 жыл бұрын
+The Random Guys hello! :)
@Kermitthesatan
@Kermitthesatan 7 жыл бұрын
whens next ep
@indiashere6375
@indiashere6375 6 жыл бұрын
Kya aap mere liye ek app batayenge aap ki kya fees Hogi
@Kermitthesatan
@Kermitthesatan 7 жыл бұрын
When is next ep
@ProfessorDK
@ProfessorDK 7 жыл бұрын
+The Random Guys this Sunday :)
@jeevanrajput3445
@jeevanrajput3445 5 жыл бұрын
6 & 4 not working 😭😕😖😔😛
@Anshul_Sharma_1474
@Anshul_Sharma_1474 2 жыл бұрын
Is this not clear video plzz clear video send me
@sportsandstudy6985
@sportsandstudy6985 5 жыл бұрын
Result is nothing
@callforpapers_
@callforpapers_ 6 жыл бұрын
anyone from uottawa is watching this :D
@ProfessorDK
@ProfessorDK 6 жыл бұрын
Yes :)
@jeetkumar5399
@jeetkumar5399 4 жыл бұрын
Video quality is not good.... 🧐
Llegó al techo 😱
00:37
Juan De Dios Pantoja
Рет қаралды 59 МЛН
Получилось у Миланы?😂
00:13
ХАБИБ
Рет қаралды 5 МЛН
How to make a Calculator in Android Studio | 2024
21:24
Easy Tuto
Рет қаралды 251 М.
Simple Calculator App Tutorial E03 - Full Code Android 2.3
22:39
Professor DK
Рет қаралды 125 М.
RecyclerView | Everything You Need to Know
25:07
Practical Coding
Рет қаралды 132 М.
Creating First Application In Android Studio in 2024
9:59
Codes Easy
Рет қаралды 1 МЛН
MVVM vs. MVI - Understand the Difference Once and for All
18:40
Philipp Lackner
Рет қаралды 36 М.
Simple Calculator in Android Studio Java
12:38
ProgrammingGeek
Рет қаралды 98 М.
Calculator App Example Android Studio Tutorial
12:33
Code With Cal
Рет қаралды 87 М.
Create a Calculator App in Minutes - Android Studio Tutorial
19:29