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

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.

主站蜘蛛池模板: 勐海县| 萍乡市| 嘉黎县| 盐源县| 五河县| 屏东市| 淮南市| 师宗县| 乌鲁木齐市| 天等县| 水富县| 台安县| 太湖县| 泸定县| 鄯善县| 通州市| 双城市| 永嘉县| 玉山县| 宁陵县| 宝兴县| 陇川县| 慈利县| 远安县| 无棣县| 金乡县| 仪陇县| 旅游| 平凉市| 达尔| 新干县| 锡林浩特市| 滦南县| 乳源| 永川市| 寿宁县| 华蓥市| 新巴尔虎右旗| 清水县| 奉贤区| 革吉县|