- 博客(4)
- 资源 (1)
- 收藏
- 关注
翻译 Android之BroadcastReceiver
Android之BroadcastReceiver BroadcastReceiver是一种全局的监听器,用于监听系统的广播消息,可以很方便的实现系统中不同组件之间的通信。 1.发送广播 调用Context的sendBroadcast(Intent intent)方法即可,这条广播将会启动Intent参数对应的BroadcastReceiver。 2.接收广播(Broadca
2015-08-28 09:14:00
247
翻译 Android之事件处理
1.基于监听的事件处理 主要做法就是为Android界面组件绑定特定的事件监听器 package com.example.monitorevent; import android.app.Activity; import android.content.res.Configuration; import android.os.Bundle; import android.view.Menu;
2015-08-17 18:03:00
206
翻译 Android之Button,ImageButton
普通按钮和图片按钮 1.布局文件<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_
2015-08-13 15:27:55
236
翻译 安卓基础
AutoCompleteTextView和MultiAutoCompleteTextView 1.AutoCompleteTextView是一个文本编辑框,但当用户输入一定字符后,它能自动匹配用户输入的字符,弹出一个下拉菜单,用户通过选择某个菜单项后,自动填写该文本框。 AutoCompleteTexView有以下几种常用属性和方法 XML属性 相关方法
2015-08-12 15:36:56
253
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人