第一步:新建一个Android工程命名为NotificationDemo.

第二步:修改main.xml代码如下:


<?xml version="1.0" encoding="utf-8"?>
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
>
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="Welcome to Mr Wei's blog"
/>


运行Android工程,效果如下图所示:

[img]http://dl.iteye.com/upload/attachment/424103/4bcccaf7-9cf7-33d4-9fb8-21caeb51d371.gif[/img]

[img]http://dl.iteye.com/upload/attachment/424106/6e6ce857-29a4-3880-89aa-537baeebaf08.gif[/img]

[img]http://dl.iteye.com/upload/attachment/424105/94b80ebb-1d9f-3053-b982-02427a993a1e.gif[/img]

[img]http://dl.iteye.com/upload/attachment/424109/43cfe7a1-5275-30c8-ab9a-ab951463173b.gif[/img]

更多相关文章

  1. Android(安卓)自定义Progress Bar
  2. android计时demo源代码
  3. Android写文件到SDCard的一般过程和代码
  4. android 代码混淆问题解决
  5. Android中如何修改CheckBox的颜色
  6. 指定Toast显示时长
  7. Android(安卓)小代码集
  8. 【Android】App界面与顶部状态栏重叠遮盖问题
  9. Android(安卓)Bundle类

随机推荐

  1. Android精简小笔记(2):广播机制
  2. 在移动端开发中,容易遇到的问题集合。
  3. 【Android(安卓)Studio 4.0.0】高版本And
  4. 虚拟导航(NavigationBar)栏适配
  5. Android(安卓)Native内存泄漏诊断
  6. 2-3-9 RatingBar
  7. cocosCreator打包Android及更换icon
  8. 【Android】自定义Gradle Plugin实现云端
  9. Android上实现一个简单的天气预报APP(二)
  10. Memory & Threading. (Android(安卓)Perf