[intro music] hey, what's going on guys? welcome to the brand new android app development series: 1 so, today we're going to learn about
Android programming, android app development from the scratch to the professional level this is your host sabith, and i will be taking you directly from
nothing to something when i say 'nothing', i mean... you didn't need any kind of experience in any kind of programming languages because everything is much way easier when i learned, it was... i don't even know 'how to change a textview' and replace it with my name so
i will teach you all the things required to be a professional android developer and finally we'll be uploading our application into the google play store so, let's get started. i hope you guys have installed the android studio and... also ready with the jdk (java development kit) so, let's gets started, i am opening my android studio
if you have any trouble while installing android studio, you can comment below this video and i will be i'll be happy to serve you with the solution. anyway, let's gets started to the android app development so we have the android studio 2.3, i am using the latest version what you have to do is just click on the 'start a new android studio project' this is the button to start a new android application. at the first, you can see this is the application name
i am giving it as sample or first app so, fiiirst aaaaapp :) in the company name you have to give a package name, so probably you have seen many package names we'll be discussing 'what is a package name' after installing the android app in the android device... let's skip it if you have a domain name, that's better in my case, i have to techcetro.com
i am giving it as techcetro.com itself... aycs, the package name now turned into 'com.techcetro.firstapp' once you've done, we have to give the project location in my case, i want to change the project location into the main folder i am using my location, go ahead use what your pc shows you :) you can use any location, even the 'desktop' blah blah blah finally press 'next'
where you can select the minimum sdk version i have chosen api 17 (jellybean) and the reason is ,,, api -9 to api -25 api -9 : less features, api-25 maximum features api -17 : support almost every features required for a normal application. you can also choose api 15 if you want to... i am going with api -17 (android 4.2) uncheck all other device categories hit the 'next'
select the activity type needed we have the 'no activity' basic, bottom navigation activity and so on... means... in empty activity we get a blank workspace area. this is called 'action bar' this is the workspace... in 'basic activity', you will get a action bar with back button and menu.... and here's a floating action button
here are some more activities available for us... as it is our first tutorial, we gonna be going with the empty activity selecting.. > clicking 'next' name the activity, by default it is called 'mainactivity' and the layout name is 'activity_main' activity = java class & layout_main = xml discuss later on this video without having any changes, we are hitting the 'finish' let's see what will happen now...
[starting build process] [gradle building] android studio + gradle = nice android app !! loading depends on pc specs... (i don't want to bother you while my pc taking too much time :) ..:::skipped loading time:::.. }no use at all{ simply, gradle building completed! android, android, android, android, x 10
~seen now is called android framework!!~ }| all over, there are something to fill the screen |{ at the top side,,, buttons = open, save, restart, refresh, redo, undo, find, buttons = run, debug, avd (android virtual device) buttons = sdk (standard development kit), many other buttons to ruin your life :) at the top - two different tabs that are,, mainactivity.java & activity_main.xml both are already opened
<-- this is project tab app: main folder, contains are required files... [introduction to other files and resources inside 'app' folder] [java: class files are in...] [res(resources): ui designing files, text and graphics files in...] colors: adjust colors in the theme strings: add, remove & edit texts used in the app styles: selecting preferred theme to android app. [and our gradle :)]
let's start by the workspace area... a short explanation of activity class file. a short explanation of xml (ui designing) area. component tree design transformation... zooooom + | zooooom - [text] xml (extensible markup language) is somewhat same as that of html (hyper text markup language) [something was written for us!]
'preview' clicked... z+, z++, z+++ nice looking textview delete textview ? 'textview' deleted!! textview has gone, just ctrl + z textview is back..! changing the textview text ....right?
android:text="hello world!" changing textview then, "hello world" & now, "my first app" android:text="hello world!" into android:text="my first app" changes can be seen at the same time but, some of the widget may not show at the same time. but.. you can find the changes on your android device moving to 'design' window
[design] clicked selecting any widget shows the x & y axis to adjust positions. we gonna be going with relativelayout so,, the constraint layout: hard to understand, suggested for experts. for this case, we'll be replacing constraint layout with relative layout.. typing : relativelayout ... aycs
the textview changes it's position..! replacing constraintlayout with relativelayout cause errors with existing widgets in the activity. no changes at all can be noticed.. trying to replace the lines inside the textview replacing 'wrap_content' with 'match_parent' on both lines three types: wrap_contant, match_parent & fill_parent now i moved the wrap_content into match_parent as a result, textview stretches it's width into both ends. also, replaced the height...
textview takes all the area available on the app screen (layout) even at this time too, we can see ... textview still remains at the top left corner just a add a new line to bring the widget into the center of the screen. which says: android:gravity="center" wow..! textview jumps from top to the center of the screen.. selecting textview [textview selected] constraintlayout replaced with relativelayout
layout has a textview here the properties to adjust without writing any codes --> [thank you !] like this video? give it a big thumbs up > subscribe for more tutorials error? trouble? doubts? questions? do comment if you have any queries ...
i happy to serve you solutions...
thanks for watching.. ~stay tuned~ // peace out \\