- 博客(43)
- 资源 (83)
- 收藏
- 关注
原创 getAllAPP+PopupWindow
先看布局资源activity_main.xml(就是一个ListView)<ListView xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/lv_main_apps" android:layout_width="fill_parent" android:la
2015-03-12 22:49:42 715
原创 Graphics简单汇总
1、主页面布局文件activity_main.xml(只有2个button按钮)<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_paren
2015-03-12 22:29:20 901
原创 动画综合练习(延迟进入+页面向导+文本框抖动)
1、activity_welcome.xml(界面刚加载进入欢迎界面的布局)<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/ll_welcome_root" android:layout_width="fill_parent" andr
2015-03-12 21:29:13 841
原创 360手机卫士---扫描杀雷达效果
activity_main.xml<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vert
2015-03-12 20:40:46 1367
原创 Animation动画效果简单汇总
————————————案例结构很复杂一步步来————————————1、activity_main.xml(首先看启动界面布局文件,里面有2个button)<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent"
2015-03-12 19:47:35 1114
原创 getAllContants--获取手机联系人列表
配置文件activity_main.xml(布局文件)<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:ori
2015-03-12 19:01:14 697
原创 Content Provider
1、ContentProvider是什么?ContentProvider在android中的作用是对外共享数据,你可以通过ContentProvider把应用中的数据共享给其他应用访问,其他应用可以通过ContentProvider对你应用中的数据进行添删改查。 2、ContentResolver是什么?当外部应用需要对ContentProvider中的数据进行添加、删除、修改
2015-03-12 17:07:42 3077
原创 音乐播放器
AndroidManifest.xml <application android:allowBackup="true" android:icon="@drawable/ic_launcher" android:label="@string/app_name" android:theme="@style/AppTheme" >
2015-03-12 15:57:48 574
原创 Service
AndroidManifest.xml(注册服务)<application android:allowBackup="true" android:icon="@drawable/ic_launcher" android:label="@string/app_name" android:theme="@style/AppTheme"
2015-03-12 15:51:25 606
原创 JNI-->C调用Java语言
布局文件<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:orientation="vertical" android:layout_width="match_par
2015-03-11 16:31:59 587
原创 JNI-->Java调用C语言
————————————这篇笔记不去介绍如何配置jni开发环境了,上一篇有说明——————————————activity_main.xml<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools"
2015-03-11 16:16:31 657
原创 深入剖析ndk配置环境VS简易配置jni流程
1、下载NDK, 最新版本android-ndk-r9.Windows 32-bit 版本下载地址:http://dl.google.com/android/ndk/android-ndk-r9-windows-x86.zipWindows 64-bit 版本下载地址:http://dl.google.com/android/ndk/android-ndk-r9-windows-x
2015-03-11 15:53:28 1481
原创 首次接触C语言(笔记二)
—————————————————函数指针—————————————#include#include//函数 int add(int x,int y){ return x + y;} main(){ //定义一个函数指针 int (*afu)(int x,int y); afu = add; int result
2015-03-09 22:59:06 612
原创 首次接触C语言(笔记一)
#include#include/**char, int, float, double, long,short, signed, unsigned, voidchar类型Java中占2个字节,可以表示汉字;在C语言中占1个字节long类型Java中占8个字节;在C语言中占4个字节; C语言中是没有boolean 和byte类型 signed: 有符号:-128~127 unsig
2015-03-09 21:56:41 680
原创 自定义控件---继承ViewGroup类方式(循序渐进之第3步效果----图片左右拖动+RadioGroup切换效果)
-----------------------下面这个效果只是整个效果的第三步-(目前左右拖动图片+回弹效果+RadioGroup切换效果)---一会继续更新博客-------------------------activity_main.xml<RelativeLayout xmlns:android="http://schemas.android.com/apk/res
2015-03-08 21:59:36 1274
原创 自定义控件---继承ViewGroup类方式(循序渐进之第2步效果----图片左右拖动+自动回弹效果)
-----------------------下面这个效果只是整个效果的第二步-(目前左右拖动图片+回弹效果)---一会继续更新博客-------------------------配置文件activity_main.xml(不解释,只有一个自定义控件)[html] view plaincopyRe
2015-03-08 19:30:37 1100
原创 自定义控件---继承ViewGroup类方式(循序渐进之第1步效果----图片左右拖动)
-----------------------下面这个效果只是整个效果的刚开始-(目前只可以左右拖动图片)---一会继续更新博客-------------------------配置文件activity_main.xml(不解释,只有一个自定义控件)<RelativeLayout xmlns:android="http://schemas.android.com/apk/r
2015-03-08 18:20:18 945
原创 事件机制(经典案例+宅男福利)
——————————————————效果图如上————————————————效果是:屏幕左中右都可以独立的上下拖动,前提是在高度一半的下方,在屏幕上半部分向上拖动,是整体图片向上拖动activity_main.xml<com.atguigu.pinterestlistview.MyLinearLayout xmlns:android="http://schemas.android
2015-03-08 16:53:57 2887
原创 自定义控件---继承View类方式(五彩绚烂的水波纹案例)
---------------------------------------看效果(还有动画效果哦)----------------------------------------------------activity_main.xml<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/andr
2015-03-08 14:07:27 1157
原创 自定义控件---继承View类方式(自定义属性知识点简要)
简单的效果图如下-------------------------------苍老师镇楼-------------简单代码如下------------------------activity_main.xml<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:a
2015-03-07 22:43:32 1086
原创 自定义控件---继承View类方式(自定义开关效果案例)
----------------------------------------------------简单的效果图--------------------------------------------------------------------------activity_main.xml<RelativeLayout xmlns:android="http://s
2015-03-07 22:39:22 1076
原创 自定义控件---系统控件组合式(案例三)
效果图如下--------------------------------------------------activity_main.xml<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com
2015-03-06 22:03:45 1070
原创 自定义控件---系统控件组合式(案例二)
-----------------------------------------------案例效果-------------------------------------activity_main.xml<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" andr
2015-03-06 22:02:48 1492
原创 自定义控件---系统控件组合式(案例一)
-----------------------------案例一----------------------------------------------------activity_main.xml<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layo
2015-03-06 22:00:13 1144 1
原创 event
activity_main.xml<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vert
2015-03-05 22:52:51 553
原创 Handler+Message+AsyncTask
activity_main.xml<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vert
2015-03-05 22:46:21 764
原创 downApk
activity_main.xml<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:lay
2015-03-05 22:35:35 1323
原创 Storage--5大存储一博打尽
activity_main.xml<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vert
2015-03-05 22:23:53 1721
原创 getAllAPP
activity_main.xml<ListView xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertic
2015-03-05 22:01:57 803 2
原创 adapter
----------------------------下边是ArrayAdapter--------------------------activity_main.xml<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_pa
2015-03-05 21:56:19 518
原创 layout
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical" > <Edit
2015-03-05 21:45:35 520
原创 Ui
activity_main.xml<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vert
2015-03-05 21:18:19 743
原创 startActivityForResult、onActivityResult
第一个页面(一般启动、带回调启动)button第二个页面(一般返回、带结果返回)button------------------------------------------activity_main.xml<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:la
2015-03-05 21:11:34 481
原创 CallAndSms
1、权限activity_main.xml<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="wrap_content" and
2015-03-05 21:05:37 530
原创 SensorCompass
activity_main.xml<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" > <ImageView
2015-03-04 19:52:35 675
原创 AccelerometerSensor--- shake案例
activity_main.xml<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" > <TextView
2015-03-04 19:20:47 865
原创 PinterestLikeAdapterView
布局文件actviity_main.xml<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent"> <com.hue
2015-03-04 13:26:42 1115
原创 从服务端加载图片(ImageLoader+AsyncTask)
以上是效果图------------------------------------------------先看服务端代码ShopInfo.java(只列出属性)private int id;private String name;private String imagepath;private double price;ShopListServlet.javapacka
2015-03-03 22:51:55 1947
原创 黑名单增删改
activity_main.xml<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vert
2015-03-03 20:30:01 771
原创 DoubleListView效果
以上是效果图------------------------------------代码开始-----------------------------------先上布局activity_category_list.xml<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmln
2015-03-03 18:49:22 887
捕获异常、存sd卡、自定义封装json、传log日志到服务器、app崩溃友好重启
2016-07-15
一款很实用的 字母条索引+自定义进度条 http://blog.csdn.net/u013210620/article/details/51250542
2016-04-26
Animation动画详解(六)——ValueAnimator高级进阶(二)
2016-01-27
Animation动画详解(五)——ValueAnimator高级进阶(一)
2016-01-27
SaflyMVP
2016-11-09
简封Volley、Gson和JsonObject生成Json数据、添加Volley请求头体Json参数、Gson解析返回的Json
2016-07-24
buildJSONPacketBody数组形式封装json、JsonReader解析服务器返回值、封装对象、https协议
2016-07-16
捕获异常、存sd卡、自定义封装json(含网络工具类)、生成Json格式、传log日志到服务器(https方式))、app崩溃友好重启
2016-07-15
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人