摘要: 什么是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) 编辑