Selasa, 07 Februari 2017

Getting more with Android Studio

Getting more with Android Studio

Getting more with Android Studio. This article is a continuation of the article Making Project Android in Android Studio. For those who are used to using eclipse may have difficulty in using android studio. In this tutorial, we will provide a migration guide from eclipse to Android Studio IDE.

1. Layout

 
Just like eclipse, android layout is divided into two, namely design and text, by default at the open layout xml in android studio using design mode, but you can change to text mode, so it looks source code of its XML text.

Android own studio in Live Preview, so no need to commute to the design mode just to see the results of its XML code.
[AdSense-A]
 
 


2. Folder Structure

Folder structure on the Android Studio as follows.

There .idea folder, app, gradle and files - files diroot folder. Folder app / is the main folder on the android application, in it would be like this.
In the build folder sepertti gene / in eclipse, the contents of the files generated results from the IDE, so it does not need to be altered the contents of the folder. Then the folder libs / same as in eclipse. If you use the library in the form of .jar then place difolder libs. Subsequently folder src /. src is the folder where stored the Java source and layout in the form of XML, the default android studio will generate two folders namely, androidtest and play. Androidtest Folder is a special folder UnitTest, if you do not understand, just focus on the main folder, as the source and the resource is located difolder.

3. Gradle
 What's new in Android Studio is gradle, featured a build automation. More can be seen at the following website http://www.gradle.org/. Gradle file contains libraries used, version of the application, signed key properties, etc. repository location. Files that will often we change is build.gradle file located in the folder app / following. android-studio-build.gradle We can see, this file contains the settings for the SDK version in compaile, build version is used, the name of the application package, minSDK used, versionCode, versionName and dependencies are used.

Thus Getting more posts by Android Studio. May be useful, if you have questions about this post, can ask in the comment box. Thanks.



  

0 komentar

Posting Komentar