05 2018 档案

摘要:什么是AIDL 1、AIDL(Android Interface Definition Language安卓接口定义语言):让其它应用可以调用当前应用Service中的方法 2、Android系统中的进程之间不能共享内存,因此,需要提供一些机制在不同进程之间进行数据通信 3、RPC(Remote P 阅读全文
posted @ 2018-05-25 14:32 8026 阅读(179) 评论(0) 推荐(0) 编辑
摘要:package com.example.text19; import android.content.BroadcastReceiver;import android.content.Context;import android.content.Intent;import android.widge 阅读全文
posted @ 2018-05-25 14:02 8026 阅读(97) 评论(0) 推荐(0) 编辑
摘要:package com.example.text017_send; import android.app.Activity;import android.content.Intent;import android.os.Bundle;import android.view.View; public 阅读全文
posted @ 2018-05-25 13:57 8026 阅读(94) 评论(0) 推荐(0) 编辑
摘要:<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" androi 阅读全文
posted @ 2018-05-24 19:33 8026 阅读(126) 评论(0) 推荐(0) 编辑
摘要:package com.example.text12_tabhost; import android.app.Activity;import android.os.Bundle;import android.view.Menu;import android.view.MenuItem;import 阅读全文
posted @ 2018-05-23 20:22 8026 阅读(93) 评论(0) 推荐(0) 编辑
摘要:<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" androi 阅读全文
posted @ 2018-05-23 19:32 8026 阅读(174) 评论(0) 推荐(0) 编辑
摘要:private ViewPager vp_main; private TextView tv_main_title; private LinearLayout ll_main_point_group; private ArrayList<ImageView> imageViews; //图片资源 p 阅读全文
posted @ 2018-05-20 20:21 8026 阅读(124) 评论(0) 推荐(0) 编辑
摘要:package com.example.popup; public class MainActivity extends Activity { private PopupWindow pw; @Override protected void onCreate(Bundle savedInstance 阅读全文
posted @ 2018-05-17 20:40 8026 阅读(97) 评论(0) 推荐(0) 编辑
摘要:public class MainAdapter extends BaseAdapter{ private Context context; private String[] names; private int[] icons; public MainAdapter(Context context 阅读全文
posted @ 2018-05-15 16:09 8026 阅读(157) 评论(0) 推荐(0) 编辑
摘要:常用UI布局 1.LinearLayout 线性布局: 用来控制其子View以水平或垂直方式展开显示重要属性: orientation(方向)layout_weight(权重) 2.理解LinearLayout权重 layout_weight(权重)的值 =0(默认值): 指定多大空间就占据多大的空 阅读全文
posted @ 2018-05-15 14:32 8026 阅读(184) 评论(0) 推荐(0) 编辑
摘要:<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" androi 阅读全文
posted @ 2018-05-15 09:48 8026 阅读(90) 评论(0) 推荐(0) 编辑
摘要:所有应用 public class MainActivity extends Activity { private ListView lv_main;//列表控件 private List<AppInfo> data;//数据源,数据的结合 private AppAdapter adapter;// 阅读全文
posted @ 2018-05-15 09:42 8026 阅读(504) 评论(0) 推荐(0) 编辑
摘要:方式一 //准备集合数据 List<Map<String, Object>> data = new ArrayList<Map<String,Object>>(); Map<String,Object> map = new HashMap<String, Object>(); map = new H 阅读全文
posted @ 2018-05-13 20:52 8026 阅读(93) 评论(0) 推荐(0) 编辑
摘要:<?xml version="1.0" encoding="utf-8"?> <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" and 阅读全文
posted @ 2018-05-10 20:06 8026 阅读(93) 评论(0) 推荐(0) 编辑
摘要:package com.example.test05_component; import java.util.Calendar; import java.util.Date; import android.app.Activity; import android.app.AlertDialog; i 阅读全文
posted @ 2018-05-10 09:22 8026 阅读(162) 评论(0) 推荐(0) 编辑
摘要:1.UI的理解 全称user interface 意为:用户界面 UI有view和viewGroup的根基类 view在屏幕上占据一片矩形区域,并会在上面进行内容绘制 viewGroup包含一些view或viewGrorup 用于控制字view的布局事件模型 事件是什么 谁是事件源? 1.注册 >2 阅读全文
posted @ 2018-05-10 08:36 8026 阅读(166) 评论(0) 推荐(0) 编辑
摘要:public void onClick(View v) { switch (v.getId()) { case R.id.btn_main_test2://菜单 startActivity(new Intent(this,MenuActivity.class)); break; case R.id. 阅读全文
posted @ 2018-05-08 16:02 8026 阅读(156) 评论(0) 推荐(0) 编辑
摘要:public class MainActivity extends Activity { public MainActivity() { // TODO Auto-generated constructor stub Log.e("TAG","MainActivity()"); } @Overrid 阅读全文
posted @ 2018-05-08 09:23 8026 阅读(68) 评论(0) 推荐(0) 编辑
摘要:public void onClick(View v) { switch (v.getId()) { case R.id.btn_main_test1://常用简单的 startActivity(new Intent(this,SimpleComponent.class)); break; @Ove 阅读全文
posted @ 2018-05-08 08:40 8026 阅读(159) 评论(0) 推荐(0) 编辑
摘要:Activity的理解: 1).活动:四大应用组件之一 2).作用:提供能让用户操作并与之交互界面 3).组件的特点:它的类必须实现特定接口或继承 需要在配置文件中配置齐全类名 它的对象不是同new来创建的,而是系统自动创建的 它的对象具有一定的生命周期, 它的类中有对应的生命周期回调方法 4).那 阅读全文
posted @ 2018-05-07 20:43 8026 阅读(399) 评论(0) 推荐(0) 编辑
摘要://主界面public class MainActivity extends Activity { //成员的全局变量Button b1; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(sa 阅读全文
posted @ 2018-05-07 16:37 8026 阅读(135) 评论(0) 推荐(0) 编辑
摘要://初始化 et_main_num.findViewById(R.id.et_main_num); et_main_sms.findViewById(R.id.et_main_sms); btn_main_call.findViewById(R.id.btn_main_call); btn_main 阅读全文
posted @ 2018-05-07 10:48 8026 阅读(125) 评论(0) 推荐(0) 编辑
摘要://主界面MainActivity实现了OnClickListener接口public class MainActivity extends Activity implements OnClickListener { //成员里面的全局坏境变量 private EditText et_main_ms 阅读全文
posted @ 2018-05-03 14:43 8026 阅读(65) 评论(0) 推荐(0) 编辑
摘要:// 主界面MainActivitypublic class MainActivity extends Activity { //布局中的成员变量 private Button btn_main_download;//程序已启动回调用oncreate @Override protected void 阅读全文
posted @ 2018-05-02 19:23 8026 阅读(110) 评论(0) 推荐(0) 编辑