Android Android Studio Googlehttp developer android comsdkindex html

  • Slides: 27
Download presentation

Android开发环境搭建 安装Android Studio Google官方网站http: //developer. android. com/sdk/index. html Android Studio中文社区:http: //forum. androidstudio. org/forum. php

Android开发环境搭建 安装Android Studio Google官方网站http: //developer. android. com/sdk/index. html Android Studio中文社区:http: //forum. androidstudio. org/forum. php

实战演练 — 向医患用户致问候语 package com. example. yeyongfei. hellohoney; import android. support. v 7. app.

实战演练 — 向医患用户致问候语 package com. example. yeyongfei. hellohoney; import android. support. v 7. app. App. Compat. Activity; import android. os. Bundle; public class Main. Activity extends App. Compat. Activity { } @Override protected void on. Create(Bundle saved. Instance. State) { super. on. Create(saved. Instance. State); set. Content. View(R. layout. activity_main); }

实战演练 — 向医患用户致问候语 <? xml version="1. 0" encoding="utf-8"? > <android. support. constraint. Constraint. Layout

实战演练 — 向医患用户致问候语 <? xml version="1. 0" encoding="utf-8"? > <android. support. constraint. Constraint. Layout xmlns: android="http: //schemas. android. com/apk/res/android" xmlns: app="http: //schemas. android. com/apk/res-auto" xmlns: tools="http: //schemas. android. com/tools" android: layout_width="match_parent" android: layout_height="match_parent" tools: context="com. example. yeyongfei. hellohoney. Main. Activity"> <Text. View android: layout_width="wrap_content" android: layout_height="wrap_content" android: text="Hello Honey!" app: layout_constraint. Bottom_to. Bottom. Of="parent" app: layout_constraint. Left_to. Left. Of="parent" app: layout_constraint. Right_to. Right. Of="parent" app: layout_constraint. Top_to. Top. Of="parent" /> </android. support. constraint. Constraint. Layout>