勤能补拙是良训,一分辛劳一分才。
本讲内容:通知 Notification 和 通知管理器 NotificationManager
我们通过一个例子实现一个可更新进度的通知,代码的讲解都写在注释里了
下面是res/layout/activity_main.xml 布局文件:
<LinearLayout xmlns:android="http://schemas....
分类:
移动开发 时间:
2014-11-22 17:33:16
阅读次数:
191
第一组方式:res/laoyout/activity_main.xml 代码: MainActivity.java 代码:package com.example.testbutton;import android.app.Activity;import android.os.Bundle;im...
分类:
移动开发 时间:
2014-11-21 20:15:20
阅读次数:
220
界面文件activity_main.xml<Button
android:id="@+id/createButton"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_below="@id/hello_world"
android:text="createdatabase"/>
<Button
android:id="@+id/updateButton"
a..
分类:
移动开发 时间:
2014-11-19 18:54:14
阅读次数:
303
界面activity_main.xml<RelativeLayoutxmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingBottom="@dimen/activity_..
分类:
移动开发 时间:
2014-11-17 12:31:37
阅读次数:
295
关于Button按钮的四种事件监听方法总结首先我们在activity_main.xml里面先定义一个Button空间 好,现在要我们来看点击事件的四种写法:1.最常见的一种写法——匿名的内部类做为事件监听器类package com.basillee.blogdemo;import androi...
分类:
移动开发 时间:
2014-11-16 13:16:51
阅读次数:
213
界面文件activity_main.xml<RelativeLayoutxmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingBottom="@dimen/activ..
分类:
移动开发 时间:
2014-11-13 07:13:53
阅读次数:
240
界面activity_main.xml<RelativeLayoutxmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingBottom="@dimen/activity_..
分类:
移动开发 时间:
2014-11-13 07:13:43
阅读次数:
253
界面文件activity_main.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
...
分类:
移动开发 时间:
2014-11-12 23:08:43
阅读次数:
426
界面activity_main.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29...
分类:
其他好文 时间:
2014-11-12 23:08:19
阅读次数:
546
1.布局文件: activity_main.xml 2.MainActivity.java package com.itheima.callphone; import android.content.Intent;
import android.net.Uri;
import android.os....
分类:
移动开发 时间:
2014-11-12 00:25:10
阅读次数:
294