in

General Information About Android Studio

Hello everyone. We will get to know the Android Studio in this article.

I opened our first project in Android Studio. On the Android Studio, you will see a design page. This page looks like a phone screen.

 Whatever we design here, our application will look exactly the same on the android phone. Everything we design in this page will be saved as an XML file. We can see XML codes by clicking the text button at the bottom. You can see XML codes on this page. Everything on the front is actually generated using XML codes at the background.

I will click the design button again and we can see the design page.

Everything we need on the Android Application, for example, buttons, texts, images and etc, we will put this design page. But how we will do this? We will do this in the form of drag and drop. We will choose whatever we want to put on the left side and we will drag it and drop to the page.

After we put the component on the page, Android Studio will produce its XML codes in the background. Also, we can do the same thing by writing XML codes ourselves in the background. This is up to you. But drag and drop is the easiest way for designing an application.

For example, I will drag a text view on the page and you can see when I drop it, XML codes for this text view will be generated in the background. If I delete this text view on the front page, the XML codes will be deleted by the Android Studio. So, this is the design page.

Also, there is another page that is java code page. We will write java programming language codes on this page. After you design front page that users will see, you need to write its java codes on the java page. This page is the MainActivity.java file. You can see java codes on this page.

I need to say something in here that Android Studio separates the design part and Java Programming part of each other. It gives us convenience when we develop an Android Application. So what is the convenience?

If you want, two-person can work on a project together. For example, a designer can design the first part, and a coder can write the java code part. These two sections are separated in most large projects. But if you want to be a good Android Developer,  you need to learn two parts.

These two parts are also important. Because if your application does not have a good design,  people will not use them. Your application needs a good UX/UI design. UX means user experience, UI means user interface. We will explain these topics in the next articles. But even you have a good design, you also need to write java codes smoothly. Because if your codes are not well written, your application will not work properly. It will crush somewhere.

After we explain these topics, we can continue to the Android Studio. You can see menus on the top. Also, there is a run button on the top.

On the left side, you can see the manifest folder. This folder is important. I will explain it in another article.

Also, you can see the java folder on the left side and inside the java folder, there is MainActivity.java file.

Our design page is under the res folder and layout folder. You will see the activity_main.xml file.

 

Also, you will see android components on the left side between the folders and the design page. They are buttons, text views, radio buttons, image views, etc.

So, this article was about to know the Android Studio. I hope that it was useful.

 

Written by Kadir Yapar

I am an Android Developer. I graduated from Sakarya University Physics Department in 2006. I completed my master degree in computer engineering between 2009 and 2011. I started my PhD education in the field of COMPUTER ENGINEERING IN SELÇUK UNIVERSITY INSTITUTE OF SCIENCE IN 2018. Between the years of 2015-2016, I worked as a research assistant at the Department of Computer Engineering at Bursa Orhangazi University. I have been working in mobile application development for the last 3 years. I published mobile application development courses on the Udemy platform. Also I published many android applications on Google Play.