Android状态栏提醒(Notification,NotificationManager)的使用

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

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



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]

你可能感兴趣的:(Android)