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.
@PracticalCoding3 жыл бұрын
Thanks! Probably one of the best comments I've read
@sukanyabanerjee16663 жыл бұрын
@@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!
@PracticalCoding3 жыл бұрын
@@sukanyabanerjee1666 Hey you can check my GitHub page from the vector image if you want. here's the link github.com/Practical-Coding3/calculatorApp
@sukanyabanerjee16663 жыл бұрын
@@PracticalCoding I couldn't find it,as I checked previously also.
@PracticalCoding3 жыл бұрын
@@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
@ingyukoh2 жыл бұрын
Excellent tutorial explaining the steps in continuous improvement with "why". I learned layout really well from this lecture.
@naraksama39032 жыл бұрын
Strg + Shift + Alt + J for multiple cursors at same selections really comes in handy in this tutorial.
@novagames5712 жыл бұрын
Thanks man
@yagnakusumanchi73464 жыл бұрын
Thankyou so much this is my first app ❤️
@PracticalCoding4 жыл бұрын
That's Great! Glad I could help you make your first app!
@sabailyas96394 жыл бұрын
It's too good to learn...thank u
@PracticalCoding4 жыл бұрын
Glad you liked the video!
@enriquellerena47793 жыл бұрын
You can also control click all the buttons and change the button attributes at once by searching with the attribute name
@PracticalCoding3 жыл бұрын
Good to know. I had no idea that was even a thing. I'll have to try it out
@gautamphadnis76292 жыл бұрын
🙏thank u so much
@Dark-bj3xo2 жыл бұрын
When I use backgroundTint it doesn't update my preview. Also gives me a problem when running it
@NightEagle0013 жыл бұрын
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 ?
@CleanyBeats3 жыл бұрын
same
@PracticalCoding3 жыл бұрын
@@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
@a123etvs3 жыл бұрын
@@PracticalCoding thanks a lot, it works 🦾
@PracticalCoding3 жыл бұрын
@@a123etvs Good to hear!
@judy2953 жыл бұрын
@@a123etvs hello can u tell me how did u do it I have the same problem
@imdm4 жыл бұрын
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?
@PracticalCoding4 жыл бұрын
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: kzbin.info/www/bejne/Z6TWioyvbbGcapo
@imdm4 жыл бұрын
@@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
@PracticalCoding4 жыл бұрын
@@imdm Did you change both the normal and night them XML files? You should have modified the parent attribute in both files.
@subhamghosh53353 жыл бұрын
@@PracticalCoding yes it worked! Thank you
@eugenegaldin2222 жыл бұрын
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
@JigneshPithia3 жыл бұрын
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?
@JigneshPithia3 жыл бұрын
the backspace button takes the updated color, but the buttons in the table remain old color
@mohammedzaeem42333 жыл бұрын
Same problem, how to solve it!!?
@kubixektv2 жыл бұрын
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.
@GamesCourier2 жыл бұрын
Hi, a bit late, but I found a solution to it when googling "android studio backgroundtint not working" the trick is to rename your "
@kubixektv2 жыл бұрын
@@GamesCourier It was just in the refreshed video that this was discussed. It's here: kzbin.info/www/bejne/Z6TWioyvbbGcapo
@AKSS_-bq1wi3 жыл бұрын
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.
@alianaxelcrooc49822 жыл бұрын
it's because the primary colors are set to purple. you can change it in the themes.xml
@joannalfante60162 жыл бұрын
@@alianaxelcrooc4982 hey, do you know how to change this specifically? I have the same issue
@an2rejkk2 жыл бұрын
Hpw to mace calculator sound when press
@time40622 жыл бұрын
Button background not changing bro plz help
@jackseitz81004 жыл бұрын
@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!
@jackseitz81004 жыл бұрын
@@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!
@jackseitz81004 жыл бұрын
@@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
@jackseitz81004 жыл бұрын
@@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.
@jackseitz81004 жыл бұрын
@@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!
@jackseitz81004 жыл бұрын
@@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.
@luca7105bib3 жыл бұрын
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.
@PracticalCoding3 жыл бұрын
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: kzbin.info/aero/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!
@salabis3 жыл бұрын
@@PracticalCoding Thanks for answer . It worked for me !
@PracticalCoding3 жыл бұрын
@@salabis Sweet. Good stuff
@Brossion3 жыл бұрын
@@salabis oh did it now??!!?!
@chasepagans8612 жыл бұрын
@@PracticalCoding doing this changed all my other buttons to black
@kanagarajumk85643 жыл бұрын
Hello, please enter your code in one wordfile...It's will be very useful for us..
@shaikhnabeel64433 жыл бұрын
please make video on music player and gallery app
@3uz3 жыл бұрын
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?
@PracticalCoding3 жыл бұрын
Did you ask this in the Discord channel yesterday? I only ask because someone had the same issue last night.
@3uz3 жыл бұрын
@@PracticalCoding one minute I'll enter it .
@3uz3 жыл бұрын
@@PracticalCoding link has expired give another plz
@PracticalCoding3 жыл бұрын
@@3uz discord.gg/H2P89STbaS
@PracticalCoding3 жыл бұрын
@@3uz This one doesn't work anymore
@carlo_wr26073 жыл бұрын
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.
@PracticalCoding3 жыл бұрын
Yeah, you can use different types of buttons and apply different backgrounds to them
@almognagar56503 жыл бұрын
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?
@PracticalCoding3 жыл бұрын
Are you getting any error messages in the LogCat?
@historiapaul52884 жыл бұрын
Why is my button background did not change even though I did as you said? can you help me with this problem?
@PracticalCoding4 жыл бұрын
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?
@madinafazli83944 жыл бұрын
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?
@PracticalCoding4 жыл бұрын
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?
@stressfree97804 жыл бұрын
Nice
@arnavgujarathi87583 жыл бұрын
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?
@PracticalCoding3 жыл бұрын
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 kzbin.info/aero/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!
@godwillmonthe9954 жыл бұрын
the background color of my buttons and the background tint do not take effect they took the theme color
@godwillmonthe9954 жыл бұрын
i managed to fix it, nevermind ☺
@godwillmonthe9954 жыл бұрын
@@PracticalCoding I am using jdk 14 but the mathparser only works upto jdk 13, what do you recommend that i do?
@sergioferrergimeno1244 жыл бұрын
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:
@godwillmonthe9954 жыл бұрын
@@sergioferrergimeno124 change the buttons from to
@sergioferrergimeno1244 жыл бұрын
@@godwillmonthe995 Omg it worked, don´t know how many things I tried haha. Thanks! :)
@cameronmoreira66983 жыл бұрын
what is your themes.xml file look like?
@PracticalCoding3 жыл бұрын
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 kzbin.info/www/bejne/Z6TWioyvbbGcapo
@udemycourses7254 жыл бұрын
When I tried changing colours to red, green and dark blue, it is always purple. Why is that? Thank you for making this video. :)
@udemycourses7254 жыл бұрын
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?
@udemycourses7254 жыл бұрын
@@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.
@udemycourses7254 жыл бұрын
@@PracticalCoding You are right. Perhaps I shouldn't worry about the colours anymore.
@udemycourses7254 жыл бұрын
@@PracticalCoding pastebin.com/SXAifkVy Sorry I can't paste it into a comment as the format does not permit me to send the message.
@PracticalCoding4 жыл бұрын
@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?
@azuapps66964 жыл бұрын
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
@azuapps66964 жыл бұрын
@Practical Coding
@azuapps66964 жыл бұрын
@@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.
@PracticalCoding4 жыл бұрын
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.
@atharvamathure66103 жыл бұрын
While running it's showing error in values.xml so please help to solve that
@PracticalCoding3 жыл бұрын
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
@snisher4 жыл бұрын
my color back ground dose not changes can some on help me ?
@PracticalCoding4 жыл бұрын
Yeah, I can help you work through the problem. What version of android studio do you currently have?
@kiwifly19564 жыл бұрын
When I tried to add the input_delete icon I got the error: AAPT: error: not well-formed (invalid token). code:
@@PracticalCoding I invited you to a project on github.
@kiwifly19564 жыл бұрын
@@PracticalCoding shows me that the invitation to the github repository is still not received
@kiwifly19564 жыл бұрын
@@PracticalCoding I sent the invitation again.
@aashutoshkulakarni96144 жыл бұрын
@PracticalCoding i cant get the emulator to work im not sure why
@immortalmonsterhybrid9754 жыл бұрын
that used to be an issue for me with windows home i couldnt but the went windows pro after that it helped.
@PracticalCoding4 жыл бұрын
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: kzbin.info/www/bejne/fqGuaneGh9SiqK8 Let me know if you still can't get it to work after watching that video.
@earlkevin62284 жыл бұрын
Got an error or message in my circle.xml "Element Solid is not allowed here"
@PracticalCoding4 жыл бұрын
Can you put the code you're using in your circle.xml file so I can take a look at it?
@earlkevin62284 жыл бұрын
@@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?
@PracticalCoding4 жыл бұрын
@@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?
@earlkevin62284 жыл бұрын
@@PracticalCoding yep. After i imported it. It has grey highlight to it.
@PracticalCoding4 жыл бұрын
@@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
@abbySTAD4 жыл бұрын
When I reference “@drawable/circle” nothing happens to my button
@abbySTAD4 жыл бұрын
And when I add the text color the box turns Grey and says “Button”
@abbySTAD4 жыл бұрын
@@PracticalCoding
@udemycourses7254 жыл бұрын
@@PracticalCoding the colours stay purple even after cleaning and rebuilding the system. Do you know what is wrong? :)
@udemycourses7254 жыл бұрын
@@PracticalCoding Here. I am quite confused as I followed each step on your videos correctly. It could be a version mismatch. streamable.com/qu072z
@abbySTAD4 жыл бұрын
@@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 :(
@sharath50904 жыл бұрын
Backspace button not working
@PracticalCoding4 жыл бұрын
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?
@Beatboxbizboy4 жыл бұрын
Still having troubles getting it borderless most everything else is working
@PracticalCoding4 жыл бұрын
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!
@rudrasavani38164 жыл бұрын
Sir can you give me all codes for diffrent color pls
@PracticalCoding4 жыл бұрын
Here you go Red: #DD2C00 Green: #43A047 Dark Blue: #263238
@azuapps66964 жыл бұрын
@Practical Coding
@enolaholmes17764 жыл бұрын
İ don’t have style in android
@PracticalCoding4 жыл бұрын
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 kzbin.info/www/bejne/Z6TWioyvbbGcapo
@mantuldong3 жыл бұрын
hallo frend.. Translate bahasa indonesianya kemana teman? saya lihat di vidio sebelumnya terdapat subtitle bahasa indonesia nya.
@PracticalCoding3 жыл бұрын
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