官术网_书友最值得收藏!

Installing development tools

In order to get started creating your own custom views, you only need what you'll normally need to develop Android mobile applications. In this book, we will be using Android Studio, as it's the tool recommended by Google.

We can get the latest version of Android Studio from its official site:
https://developer.android.com/studio/index.html.

Once we've downloaded the package for our computer, we can proceed with the installation:

Now, we can create a new project that we'll use to take our first baby steps on custom views.

After selecting the Application name, the Company Domain, which will be reversed into the application Package name and the Project location, Android Studio will ask us what type of project we want to create:

For this example, we don't need anything too fancy, just phone and tablet and API 21 support is more than enough. Once we've done that, we can add an Empty Activity:

In the case you need help installing Android Studio, there is a step by step guide on the Learning Android Application Development, Packt Publishing or there is always plenty of information on the Android developer documentation site. For more information, refer to:
https://www.packtpub.com/application-development/learning-android-application-development

Now, we are ready to run this app on a device emulator or on a real device.

主站蜘蛛池模板: 古丈县| 黄山市| 兰西县| 文成县| 兴义市| 水城县| 桑植县| 瑞昌市| 海宁市| 榕江县| 江达县| 诸暨市| 大港区| 阜新市| 延吉市| 九寨沟县| 陇西县| 邢台市| 合作市| 伊春市| 黔西县| 稻城县| 榕江县| 白玉县| 泾阳县| 阿勒泰市| 四会市| 嵊州市| 新乐市| 上饶市| 宜春市| 宜兴市| 伊吾县| 习水县| 十堰市| 唐山市| 鸡东县| 高碑店市| 宝兴县| 沙坪坝区| 湖州市|