How to make a calculator in Android Studio 2020 | Part 2

  Рет қаралды 66,827

Practical Coding

Practical Coding

Күн бұрын

In this video, learn how to make a calculator in Android Studio using Java. This calculator will be able to perform many functions like calculating exponentials, basic arithmetic, and you will also be able to use parentheses. All of this will be made possible through the use of a math parser called Mxparser. You will learn how you can download the Mxparser library and use it in your Android Studio projects.
We will be covering some of the core functions and techniques used for app development in Android Studio. This tutorial is designed for beginners trying to get started in app development with Android devices being the primary target.
Android Studio is a great platform for creating apps that can be deployed on the google play store. If you're new to the series I'd go and check out the Android Studio Playlist. There you will be able to see how to create basic apps so you can become a developer.
Join the Discord Server!!!
/ discord
Check out the Android development playlist for more videos like this!
• Android App Developmen...
How to make a calculator in Android Studio 2020 | Part 1
• How to make a calculat...
#androidstudio #appdevelopment #PracticalCoding

Пікірлер: 163
@ingyukoh
@ingyukoh 2 жыл бұрын
Excellent tutorial explaining the steps in continuous improvement with "why". I learned layout really well from this lecture.
@viniciomonge3960
@viniciomonge3960 3 жыл бұрын
Fucking love your channel. This is the first channel that sintesizes the information you need and goes straight to the point. If I could subscribe twice i'd do it. Keep going. You're gold, man.
@PracticalCoding
@PracticalCoding 3 жыл бұрын
Thanks! Probably one of the best comments I've read
@sukanyabanerjee1666
@sukanyabanerjee1666 3 жыл бұрын
@@PracticalCoding Hey! Would you please share the drawable/ic_input_delete file as I'm unable to set backspace key on button due to large size image !!! It doesn't show the round corners on backspace button,which I've made. Hope, You get my point. Share it ASAP,as I have to submit this assignment on Monday. Otherwise everything works fine!
@PracticalCoding
@PracticalCoding 3 жыл бұрын
@@sukanyabanerjee1666 Hey you can check my GitHub page from the vector image if you want. here's the link github.com/Practical-Coding3/calculatorApp
@sukanyabanerjee1666
@sukanyabanerjee1666 3 жыл бұрын
@@PracticalCoding I couldn't find it,as I checked previously also.
@PracticalCoding
@PracticalCoding 3 жыл бұрын
​@@sukanyabanerjee1666 The drawable file that we created should be there. here's the link to it github.com/Practical-Coding3/calculatorApp/blob/master/app/src/main/res/drawable/backspace.xml And for the vector image, Android Studio could have changed what it looks like or even the name. There's nothing I can really do about that if they did. There should be other vectors you could choose from. Or worst comes to worst you could always make one
@sabailyas9639
@sabailyas9639 3 жыл бұрын
It's too good to learn...thank u
@PracticalCoding
@PracticalCoding 3 жыл бұрын
Glad you liked the video!
@naraksama3903
@naraksama3903 2 жыл бұрын
Strg + Shift + Alt + J for multiple cursors at same selections really comes in handy in this tutorial.
@novagames5719
@novagames5719 2 жыл бұрын
Thanks man
@gautamphadnis7629
@gautamphadnis7629 Жыл бұрын
🙏thank u so much
@yagnakusumanchi7346
@yagnakusumanchi7346 3 жыл бұрын
Thankyou so much this is my first app ❤️
@PracticalCoding
@PracticalCoding 3 жыл бұрын
That's Great! Glad I could help you make your first app!
@stressfree9780
@stressfree9780 3 жыл бұрын
Nice
@enriquellerena4779
@enriquellerena4779 3 жыл бұрын
You can also control click all the buttons and change the button attributes at once by searching with the attribute name
@PracticalCoding
@PracticalCoding 3 жыл бұрын
Good to know. I had no idea that was even a thing. I'll have to try it out
@carlo_wr2607
@carlo_wr2607 2 жыл бұрын
Hello, is it possible to use an image in every buttons? Like background image or something?, I have a laboratory exercise that we need to build a calculator in android studio, i havent use android studio yet but theres a criteria on the design, so i think i should exel more on the design since most of us will share the source code.
@PracticalCoding
@PracticalCoding 2 жыл бұрын
Yeah, you can use different types of buttons and apply different backgrounds to them
@aaaaaa-rd8vd
@aaaaaa-rd8vd 3 жыл бұрын
Hey I'm having an issue setting the color of the drawable circles. The circles file is set up properly, and I introduced the drawable/circle to each button but the color isn't changing.
@aaaaaa-rd8vd
@aaaaaa-rd8vd 3 жыл бұрын
@@PracticalCoding Sure, Heres a link to the image of the code for a button i.imgur.com/PwoiGu8.png
@PracticalCoding
@PracticalCoding 3 жыл бұрын
Can you put the code you're using for one of your buttons in a comment so I can take a look at it? Sometimes, some of the attributes you add to buttons can override the drawable and prevent it from showing up.
@Dark-bj3xo
@Dark-bj3xo 2 жыл бұрын
When I use backgroundTint it doesn't update my preview. Also gives me a problem when running it
@madinafazli8394
@madinafazli8394 3 жыл бұрын
Hi The backgroundTint attribute does not change the color of the clear and equal buttons for me. They still have the blue color we defined in our circle.xml file. Can you please help?
@PracticalCoding
@PracticalCoding 3 жыл бұрын
I saw that you made it to the end of the video series. Did you end up getting this problem worked out = or do you still need help?
@JigneshPithia
@JigneshPithia 3 жыл бұрын
hi, i used the same color you did for the background. but after that i went to change the color, but it does not change the color in activity_main.xml. i delelted the circle.xml, and deleted all the lines under button, then again created the new circle.xml, and added the new lines to all the buttons, but it still takes the old color, which seems to be stuck in its memory. how to change to color of the background?
@JigneshPithia
@JigneshPithia 3 жыл бұрын
the backspace button takes the updated color, but the buttons in the table remain old color
@mohammedzaeem4233
@mohammedzaeem4233 3 жыл бұрын
Same problem, how to solve it!!?
@kubixektv
@kubixektv 2 жыл бұрын
I found that buttons just taking primary color defined in themes.xml. Maybe is there a way to override the primary color, but I don't know how to do it. Any suggestions? Or probably I can define my own style for each button in themes.xml, but I don't know how to do it either. Edit: I know this comment is old.
@GamesCourier
@GamesCourier 2 жыл бұрын
Hi, a bit late, but I found a solution to it when googling "android studio backgroundtint not working" the trick is to rename your "
@kubixektv
@kubixektv 2 жыл бұрын
​@@GamesCourier It was just in the refreshed video that this was discussed. It's here: kzfaq.info/get/bejne/Z9mjjLyqnbLNZGw.html
@eugenegaldin222
@eugenegaldin222 Жыл бұрын
Hello, thank you for your lessons. They were very useful. However, i am not able to receive identical application. Text not visible on buttons. I am trying to attach image to this post, but it doesn't allow. i am asking for help, but cannot find any different communication
@jackseitz8100
@jackseitz8100 3 жыл бұрын
@PracticalCoding I have been tasked with making an app for my coding class, and this is my first time using android studio. Your video has been awesome to help with that. My question is: When I reference "@drawing/circle", nothing changes with my buttons, and if I hover over it, it says "Empty Statelist". Is this something that can be fixed, or can I just ignore it and assume the buttons will change when the code actually runs? Thanks a lot!
@jackseitz8100
@jackseitz8100 3 жыл бұрын
@@PracticalCoding I do have the code you sent at the top of my activity_main.xml file. Here's the code for one of my butons: android:id="@+id/clearBTN" style="@style/Widget.AppCompat.Button.Borderless" android:layout_width="0dp" android:layout_height="wrap_content" android:layout_weight="1" android:text="@string/clear" android:background="@drawable/circle" android:textColor="#FFFFFF" android:layout_margin="5dp" android:textSize="24sp" android:backgroundTint="#DD2C00"/> and here's the code for the circle.xml file: also, if this information helps: my buttons started out as purple rectangles with slightly curved edges, rather than just the plain white that yours did. I just ignored that originally thinking it would just go away after the code, but they're still the purple even when I @drawing/circle (hence the problem). The only button that has changed to the navy blue/proper shape has been the delete button. Not sure if that information helps at all. Thanks for responding!
@jackseitz8100
@jackseitz8100 3 жыл бұрын
@@PracticalCoding I tried rebuilding the project but the buttons are still the same. I actually am having difficulties even running the phone emulator, but I think that may be an issue with my computer more than the code and I'm looking into it. I'm kind of running out of things to try even after doing my own research, so if we could maybe try the GitHub thing that would be awesome, thanks
@jackseitz8100
@jackseitz8100 3 жыл бұрын
@@PracticalCoding Sorry it took some time for me to actually upload it to Github, it's there now. I shared the repository with you, my username is: jackseitz I actually finished the videos in this series so the entire code from the calculator should be there. If you could just take a look at your earliest convenience, I would really appreciate it! By the way, your videos in the series were super easy to understand and super helpful. Keep up the great work.
@jackseitz8100
@jackseitz8100 3 жыл бұрын
@@PracticalCoding Thanks a lot for taking a look at it. I'm really sorry but I'm not exactly sure what you mean by looking at the comment... This is my first time using GitHub so I don't know all the vocabulary yet, or if it's something to do with the code. Sorry thanks!
@jackseitz8100
@jackseitz8100 3 жыл бұрын
@@PracticalCoding Ohh okay, I didn't even realize that. Thanks. And sounds good, I really appreciate all the help. Looking forward to hearing how it runs on yours.
@historiapaul5288
@historiapaul5288 3 жыл бұрын
Why is my button background did not change even though I did as you said? can you help me with this problem?
@PracticalCoding
@PracticalCoding 3 жыл бұрын
You know sometimes weird stuff like this happens. Can you put the code you're using for both the button and the drawable resource file in a comment so I can take a look at what you have?
@an2rejkk
@an2rejkk Жыл бұрын
Hpw to mace calculator sound when press
@shaikhnabeel6443
@shaikhnabeel6443 3 жыл бұрын
please make video on music player and gallery app
@AKSS_-bq1wi
@AKSS_-bq1wi 2 жыл бұрын
Hi, thanks for your helpful videos. I did try the same colour code #26328 but I got purple colour 🟣 and then i change the colours of clear and equal to red and green but still purple colour the code shows red dot and on the other green dot on front of the code. I don't know if the problem from the table layout or what. Because the colour work on backspace BTN only.
@alianaxelcrooc4982
@alianaxelcrooc4982 2 жыл бұрын
it's because the primary colors are set to purple. you can change it in the themes.xml
@joannalfante6016
@joannalfante6016 2 жыл бұрын
@@alianaxelcrooc4982 hey, do you know how to change this specifically? I have the same issue
@NightEagle001
@NightEagle001 2 жыл бұрын
my buttons have other constant color when i am trying to change it by background and backgroundTint, but backspace color changing, how can i fix it ?
@CleanyBeats
@CleanyBeats 2 жыл бұрын
same
@PracticalCoding
@PracticalCoding 2 жыл бұрын
@@CleanyBeats Hey when I made this video series, Android Studio wasn't using Material Design as the default theme for the views. What you'll have to do is go into your themes folder (the light and night themes) and change the parent attribute to Theme.AppCompat.Light.NoActionBar And you should be good to go. Let me know if you're still running into any issues once you change that If you're having trouble with anything, you can always join this channel's Discord server to get help too. Here's the link if you wanna check it out discord.gg/H2P89STbaS
@a123etvs
@a123etvs 2 жыл бұрын
@@PracticalCoding thanks a lot, it works 🦾
@PracticalCoding
@PracticalCoding 2 жыл бұрын
@@a123etvs Good to hear!
@judy295
@judy295 2 жыл бұрын
@@a123etvs hello can u tell me how did u do it I have the same problem
@kanagarajumk8564
@kanagarajumk8564 2 жыл бұрын
Hello, please enter your code in one wordfile...It's will be very useful for us..
@azuapps6696
@azuapps6696 3 жыл бұрын
Hey. I'm green in xml. When I tried to run the application it gave me an error that strings.xml has a bad end. Finally, I have Enter in a value
@azuapps6696
@azuapps6696 3 жыл бұрын
@Practical Coding
@azuapps6696
@azuapps6696 3 жыл бұрын
@@PracticalCoding Thanks! Indeed I forgot to close the resources tag. Now everything is fine. It's a pity that so few people are watching you.
@PracticalCoding
@PracticalCoding 3 жыл бұрын
Just adding this comment back. I changed to a brand account and for some reason all of my comments are gone At a quick glance, that line of code that defines the displays string looks fine. What I would do is take a look at the other strings you defined and make sure that the other string tags don't have any typos in them. Also, make sure that the "resources" tag is closed. Let me know if that helps.
@3uz
@3uz 2 жыл бұрын
12:49 When I uploaded the program to the drive and downloaded it to my mobile, all the buttons did not appear, how do I solve it?
@PracticalCoding
@PracticalCoding 2 жыл бұрын
Did you ask this in the Discord channel yesterday? I only ask because someone had the same issue last night.
@3uz
@3uz 2 жыл бұрын
@@PracticalCoding one minute I'll enter it .
@3uz
@3uz 2 жыл бұрын
@@PracticalCoding link has expired give another plz
@PracticalCoding
@PracticalCoding 2 жыл бұрын
@@3uz discord.gg/H2P89STbaS
@PracticalCoding
@PracticalCoding 2 жыл бұрын
@@3uz This one doesn't work anymore
@arnavgujarathi8758
@arnavgujarathi8758 3 жыл бұрын
I cannot find the styles.xml file. Despite making the circle.xml file, I am not getting the round buttons. Can someone pls help me here?
@PracticalCoding
@PracticalCoding 3 жыл бұрын
Hey! The problem is likely because you're using the newest version of android. When I made this, Material Design wasn't the default theme. I actually made a new calculator series to make up for the update. Here's the link if you'd rather just watch that video series instead kzfaq.info/sun/PLcSIMAULmMycI309W6uMMaQX1ePy8_1iV If you want to keep plugging away with this series, all you'd have to do is go into your themes folder and open up both the default theme and the night theme XML files. In both of those files, you should see a "style" tag with a parent attribute. You need to set the parent attribute equal to this: Theme.AppCompat.Light.NoActionBar Hope that helps!
@snisher
@snisher 3 жыл бұрын
my color back ground dose not changes can some on help me ?
@PracticalCoding
@PracticalCoding 3 жыл бұрын
Yeah, I can help you work through the problem. What version of android studio do you currently have?
@cameronmoreira6698
@cameronmoreira6698 3 жыл бұрын
what is your themes.xml file look like?
@PracticalCoding
@PracticalCoding 3 жыл бұрын
When I made this video, I hadn't updated Android Studio yet so I didn't have a themes folder. I made a newer calculator series that has the themes folder if you want to watch that series instead here's the link kzfaq.info/get/bejne/Z9mjjLyqnbLNZGw.html
@time4062
@time4062 Жыл бұрын
Button background not changing bro plz help
@luca7105bib
@luca7105bib 3 жыл бұрын
I love the series so far but I have a problem. When I try to change the color of the background nothing happens. When I look at the attributes it says that it has the backgroundcolor but it doesn't show it. I hope you get what I try to say and that you can help me.
@PracticalCoding
@PracticalCoding 3 жыл бұрын
You're probably using the newest version of Android Studio. When I made this series, I was using an older version. They changed a few of the defaults around for their views so that's why it's not changing the background as you'd expect. There are two things you can do about this though. I'd recommend taking a look at the updated series I made last month. The video quality is infinitely better and I used the newest version of Android Studio. Here's the link to the playlist if you want to swap over to the newer series: kzfaq.info/sun/PLcSIMAULmMycI309W6uMMaQX1ePy8_1iV If you want to keep plugging away with this series, all you'd have to do is go into your themes folder and open up both the default them and the night them XML files. In both of those files, you should see a "style" tag with a parent attribute. You need to set the parent attribute equal to this: Theme.AppCompat.Light.NoActionBar Hope that helps!
@salabis
@salabis 3 жыл бұрын
@@PracticalCoding Thanks for answer . It worked for me !
@PracticalCoding
@PracticalCoding 3 жыл бұрын
@@salabis Sweet. Good stuff
@Brossion
@Brossion 3 жыл бұрын
@@salabis oh did it now??!!?!
@chasepagans861
@chasepagans861 2 жыл бұрын
@@PracticalCoding doing this changed all my other buttons to black
@aashutoshkulakarni9614
@aashutoshkulakarni9614 3 жыл бұрын
@PracticalCoding i cant get the emulator to work im not sure why
@immortalmonsterhybrid975
@immortalmonsterhybrid975 3 жыл бұрын
that used to be an issue for me with windows home i couldnt but the went windows pro after that it helped.
@PracticalCoding
@PracticalCoding 3 жыл бұрын
That's weird. I would make sure that you have an emulator installed and that one is selected in the dropdown where you pick the device you want to run your app on. Should be next to the play button. I also made a video on getting an emulator setup if you want to check it out. I think it's like 3 minutes. Here's the link if you wanna check it out: kzfaq.info/get/bejne/ftZ7bKeBt9XTooE.html Let me know if you still can't get it to work after watching that video.
@atharvamathure6610
@atharvamathure6610 3 жыл бұрын
While running it's showing error in values.xml so please help to solve that
@PracticalCoding
@PracticalCoding 3 жыл бұрын
Hey! Yeah, I'd be happy to help you out. Is there any way you could possibly join this channel's Discord server and post your question in the Android Studio channel? It's just easier to solve problems when you can send pictures and videos of what's going on. Here's the link: discord.gg/H2P89STbaS
@imdm
@imdm 3 жыл бұрын
So i did everything u said and the background on the buttons is not working. i have the latest android studio version and the code i used in @drawable/circle was Could you help me out?
@PracticalCoding
@PracticalCoding 3 жыл бұрын
So Android Studio updated to a new version not too long ago which changed a few of the defaults when creating a new project. One of the changes affects the way that we change the background of our buttons. What you need to do is go into your themes folder. Open both the default them along with the night theme. There should be a style tag with a parent attribute. You need to change that attribute to Theme.AppCompat.Light.NoActionBar I started a new calculator series to account for the update. If you want to check out what I've posted so far, just follow this link: kzfaq.info/get/bejne/Z9mjjLyqnbLNZGw.html
@imdm
@imdm 3 жыл бұрын
@@PracticalCoding it worked, but it has an issue still. when i started the app on my phone the colors were purple because i have dark mode activated, but once i turned it off the button were back to the colors they were supposed to be
@PracticalCoding
@PracticalCoding 3 жыл бұрын
@@imdm Did you change both the normal and night them XML files? You should have modified the parent attribute in both files.
@subhamghosh5335
@subhamghosh5335 2 жыл бұрын
@@PracticalCoding yes it worked! Thank you
@nipplesniper
@nipplesniper 3 жыл бұрын
for some reason I don't know, setting the background attribute of my buttons won't change. The clue I noticed is it used the color of the background tint attribute instead because it said when I hovered in the background tint attribute, it showed default: @color/mtrl_btn_bg_color_selector. Does anyone know how to fix this?
@PracticalCoding
@PracticalCoding 3 жыл бұрын
What version of Android Studio do you have? If you have the newest version, you're gonna have to change a few things in the themes folder to get the backgrounds to change correctly. I can walk you through it if you want
@mlukee
@mlukee 3 жыл бұрын
@@PracticalCoding I have the same problem.. Can you walk me through it? Thanks a lot :D
@mlukee
@mlukee 3 жыл бұрын
@@PracticalCoding I think i fixed it.. I went into themes folder, then themes.xml and in stye element in class parent I changed to "Theme.AppCompat.DayNight.DarkActionBar"..I can now use android:background :D
@PracticalCoding
@PracticalCoding 3 жыл бұрын
@@mlukee That's exactly what I was gonna tell you to change. If you want to start watching the updated version of this series, just follow this link: kzfaq.info/get/bejne/Z9mjjLyqnbLNZGw.html
@fortisleo
@fortisleo 3 жыл бұрын
@@mlukee thanks vro i was also facing same prblm
@almognagar5650
@almognagar5650 2 жыл бұрын
I have a problem when I want to open the phone. I can wait for hours and the phone is still gonna be black. I press on the power button but its not working. Do you know how to solve it?
@PracticalCoding
@PracticalCoding 2 жыл бұрын
Are you getting any error messages in the LogCat?
@udemycourses725
@udemycourses725 3 жыл бұрын
When I tried changing colours to red, green and dark blue, it is always purple. Why is that? Thank you for making this video. :)
@udemycourses725
@udemycourses725 3 жыл бұрын
Btw when I remove the line which makes the shape as the background, the colour red appears though the button becomes squarish again. Do you think this is a layer issue?
@udemycourses725
@udemycourses725 3 жыл бұрын
@@PracticalCoding I fixed the issue which colours cannot be displayed by changing the buttons to image buttons. Though after changing it to image buttons, all the text are now not visible.
@udemycourses725
@udemycourses725 3 жыл бұрын
@@PracticalCoding You are right. Perhaps I shouldn't worry about the colours anymore.
@udemycourses725
@udemycourses725 3 жыл бұрын
@@PracticalCoding pastebin.com/SXAifkVy Sorry I can't paste it into a comment as the format does not permit me to send the message.
@PracticalCoding
@PracticalCoding 3 жыл бұрын
@Udemy Courses Can you put the code you're using for one of the buttons and the code for the shape of the buttons in a comment so I can take a look at it?
@Beatboxbizboy
@Beatboxbizboy 3 жыл бұрын
Still having troubles getting it borderless most everything else is working
@PracticalCoding
@PracticalCoding 3 жыл бұрын
Hey, I'm not which reply you're gonna see first but one thing I would try to do is modifying the two theme XML files. If you open them both up, you should see a style tag in both the day and night themes. In those tags, there's a parent attribute. I would change it to the following Theme.AppCompat.Light.NoActionBar If that doesn't work, you can always check out the new calculator series. Right now only one video is out but I updated Android Studio to 4.1 for the video. Let me know if that helps!
@earlkevin6228
@earlkevin6228 3 жыл бұрын
Got an error or message in my circle.xml "Element Solid is not allowed here"
@PracticalCoding
@PracticalCoding 3 жыл бұрын
Can you put the code you're using in your circle.xml file so I can take a look at it?
@earlkevin6228
@earlkevin6228 3 жыл бұрын
@@PracticalCoding Thanks for fast reply. What my real problem is in the later part of the tutorial String result = String.valueOf(exp.calculate()); got an red error on calculate, the error says " cannot resolve method 'calculate' in 'Exception'. But I think the was the JDK. Thou I was able to download and install JDK version 8 and did update the JDK location in Project structure. Of course right after putting the new library (mathparser) and put the import for it. Any clue how to fix it?
@PracticalCoding
@PracticalCoding 3 жыл бұрын
@@earlkevin6228 I'm just making sure that I understand what's going on. Android Studio is telling you that it doesn't recognize the calculate method even after you imported mXparser?
@earlkevin6228
@earlkevin6228 3 жыл бұрын
@@PracticalCoding yep. After i imported it. It has grey highlight to it.
@PracticalCoding
@PracticalCoding 3 жыл бұрын
@@earlkevin6228 Can you put the code in the equals button method in a comment so I can take a look at it? If there's not a problem with the code I think I'm going to have you try and reinstall the library again because if the JDK matches the one you have installed on your computer it should be fine
@rudrasavani3816
@rudrasavani3816 3 жыл бұрын
Sir can you give me all codes for diffrent color pls
@PracticalCoding
@PracticalCoding 3 жыл бұрын
Here you go Red: #DD2C00 Green: #43A047 Dark Blue: #263238
@sharath5090
@sharath5090 3 жыл бұрын
Backspace button not working
@PracticalCoding
@PracticalCoding 3 жыл бұрын
Can you tell me a little bit more about what's happening? Is it not erasing the correct characters, is it clearing the screen, or is it just not erasing anything? And can you copy and paste the code you're using into the comment so I can take a look at it?
@godwillmonthe995
@godwillmonthe995 3 жыл бұрын
the background color of my buttons and the background tint do not take effect they took the theme color
@godwillmonthe995
@godwillmonthe995 3 жыл бұрын
i managed to fix it, nevermind ☺
@godwillmonthe995
@godwillmonthe995 3 жыл бұрын
@@PracticalCoding I am using jdk 14 but the mathparser only works upto jdk 13, what do you recommend that i do?
@sergioferrergimeno124
@sergioferrergimeno124 3 жыл бұрын
Hey!, I´m facing the same issue, how did you manage to fix it? I see that the color in all my buttons is the one defined as primary color in the themes.xml, like if the button was unable to override that configuration. Example of the code of my buttons:
@godwillmonthe995
@godwillmonthe995 3 жыл бұрын
@@sergioferrergimeno124 change the buttons from to
@sergioferrergimeno124
@sergioferrergimeno124 3 жыл бұрын
@@godwillmonthe995 Omg it worked, don´t know how many things I tried haha. Thanks! :)
@abbySTAD
@abbySTAD 3 жыл бұрын
When I reference “@drawable/circle” nothing happens to my button
@abbySTAD
@abbySTAD 3 жыл бұрын
And when I add the text color the box turns Grey and says “Button”
@abbySTAD
@abbySTAD 3 жыл бұрын
@@PracticalCoding
@udemycourses725
@udemycourses725 3 жыл бұрын
@@PracticalCoding the colours stay purple even after cleaning and rebuilding the system. Do you know what is wrong? :)
@udemycourses725
@udemycourses725 3 жыл бұрын
​@@PracticalCoding Here. I am quite confused as I followed each step on your videos correctly. It could be a version mismatch. streamable.com/qu072z
@abbySTAD
@abbySTAD 3 жыл бұрын
@@PracticalCoding hi nothing changed but I still got my calculator to look nice. Now I’m having issues putting it on the little phone. I’m still on this tutorial. When I tell it to run on the phone it doesn’t appear :(
@kiwifly1956
@kiwifly1956 4 жыл бұрын
When I tried to add the input_delete icon I got the error: AAPT: error: not well-formed (invalid token). code:
@kiwifly1956
@kiwifly1956 4 жыл бұрын
@@PracticalCoding after pasting this code into the backspace.xml file I get an error: AAPT: error: "TODO" does not match the inputType (attr) attribute flags [data = 20, datetime = 4, none = 0, number = 2, numberDecimal = 8194 , numberPassword = 18, numberSigned = 4098, phone = 3, text = 1, textAutoComplete = 65537, textAutoCorrect = 32769, textCapCharacters = 4097, textCapSentences = 16385, textCapWords = 8193, textEmailAddress = 33, textEmailSubject = 49, textFiltermeme = 177, textFilterme = 177 = 262145, textLongMessage = 81, textMultiLine = 131073, textNoSuggestions = 524289, textPassword = 129, textPersonName = 97, textPhonetic = 193, textPostalAddress = 113, textShortMessage = 65, textUri = 17, textVisiblePersonetic = 129, textPersonetic = 97 = 193, textPostalAddress = 113, textShortMessage = 65, textUri = 17, textVisiblePebassEword = 145Webdress = 161, textWebdress = 145Webdress = 161, textWebPassword = 225, time = 36].
@kiwifly1956
@kiwifly1956 4 жыл бұрын
@@PracticalCoding What is your github username?
@kiwifly1956
@kiwifly1956 4 жыл бұрын
@@PracticalCoding I invited you to a project on github.
@kiwifly1956
@kiwifly1956 3 жыл бұрын
@@PracticalCoding shows me that the invitation to the github repository is still not received
@kiwifly1956
@kiwifly1956 3 жыл бұрын
@@PracticalCoding I sent the invitation again.
@azuapps6696
@azuapps6696 3 жыл бұрын
@Practical Coding
@enolaholmes1776
@enolaholmes1776 3 жыл бұрын
İ don’t have style in android
@PracticalCoding
@PracticalCoding 3 жыл бұрын
Hey so that most likely means that you're using the latest version of Android Studio. In one of the past updates they changed a few things around. One of the things they changed was replacing the styles.xml file with a folder called themes. This folder should have two xml files in it: one for a light theme and one for a night theme. In this series I don't think I ever add anything to the styles folder, but one thing you will have to do is change the parent attribute for each style tag in the xml files contained in your themes folder to the following Theme.AppCompat.Light.NoActionBar If you're not 100% sure on how to do that, you can check out my new updated calculator series which will how you how. Here's the link if you wanna watch that one instead kzfaq.info/get/bejne/Z9mjjLyqnbLNZGw.html
@mantuldong
@mantuldong 3 жыл бұрын
hallo frend.. Translate bahasa indonesianya kemana teman? saya lihat di vidio sebelumnya terdapat subtitle bahasa indonesia nya.
@PracticalCoding
@PracticalCoding 3 жыл бұрын
Hey, I'm not sure actually. I didn't even know there were subtitles on the last video. I know people can translate videos and upload subtitles to the video. Maybe someone did that for the first video but not the second one
How to make a calculator in Android Studio 2020 | Part 3
23:19
Practical Coding
Рет қаралды 68 М.
How to make a calculator in Android Studio 2020 | Part 1
15:38
Practical Coding
Рет қаралды 158 М.
A teacher captured the cutest moment at the nursery #shorts
00:33
Fabiosa Stories
Рет қаралды 55 МЛН
Mama vs Son vs Daddy 😭🤣
00:13
DADDYSON SHOW
Рет қаралды 49 МЛН
Secret Experiment Toothpaste Pt.4 😱 #shorts
00:35
Mr DegrEE
Рет қаралды 38 МЛН
Double Stacked Pizza @Lionfield @ChefRush
00:33
albert_cancook
Рет қаралды 117 МЛН
How to make a scientific calculator in Android Studio 2021 | Part 4
24:10
Calculator App Example Android Studio Tutorial
12:33
Code With Cal
Рет қаралды 87 М.
If your partner is using this Calculator App, RUN!
5:10
Zim Tech Guy
Рет қаралды 8 М.
How to make a scientific calculator in Android Studio 2021 | Part 2
17:58
How to make a Calculator in Android Studio | 2024
21:24
Easy Tuto
Рет қаралды 251 М.
RecyclerView | Everything You Need to Know
25:07
Practical Coding
Рет қаралды 132 М.
How to make a scientific calculator in Android Studio 2021 | Part 3
25:38
Implementing Android apps for all screen sizes
13:53
Android Developers
Рет қаралды 34 М.
Java calculator app 🖩
34:36
Bro Code
Рет қаралды 415 М.
Olha o sorvete 😲
0:13
KaLu Tv
Рет қаралды 2,7 МЛН
Пёс - Парашютист 😍
0:42
ДоброShorts
Рет қаралды 2,8 МЛН
Draw your favorite | Inside Out Graffitis
0:30
AmogusMan
Рет қаралды 21 МЛН