会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
不要让昨天的沮丧 让今天的梦想黯然失色 成功的人总是修改方法而不修改目标
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
下一页
2015年10月26日
android学习——popupWindow 在指定位置上的显示
摘要: 先看效果图,免得浪费大家时间,看是不是想要的效果 。直接上代码 ,核心方法。privatevoidshowPopupWindow(Viewparent){if(popupWindow==null){LayoutInflaterlayoutInflater=(LayoutInflater)getSys...
阅读全文
posted @ 2015-10-26 14:58 蜗牛眼里的世界
阅读(897)
评论(0)
推荐(0)
2015年10月23日
android中handler用法总结
摘要: 一、Handler的定义: Handler主要接收子线程发送的数据, 并用此数据配合主线程更新UI,用来跟UI主线程交互用。比如可以用handler发送一个message,然后在handler的线程中来接收、处理该消息,以避免直接在UI主线程中处理事务导致影响UI主线程的其他处理工作,Androi...
阅读全文
posted @ 2015-10-23 17:43 蜗牛眼里的世界
阅读(351)
评论(0)
推荐(0)
抓取视频缩略图
摘要: publicBitmapgetVideoThumbnail(StringfilePath){Bitmapbitmap=null;MediaMetadataRetrieverretriever=newMediaMetadataRetriever();try{retriever.setDataSourc...
阅读全文
posted @ 2015-10-23 12:03 蜗牛眼里的世界
阅读(201)
评论(0)
推荐(0)
android权限大全
摘要: 访问登记属性android.permission.ACCESS_CHECKIN_PROPERTIES ,读取或写入登记check-in数据库属性表的权限获取错略位置android.permission.ACCESS_COARSE_LOCATION,通过WiFi或移动基站的方式获取用户错略的经纬度信息...
阅读全文
posted @ 2015-10-23 11:51 蜗牛眼里的世界
阅读(107)
评论(0)
推荐(0)
android打开相关系统应用
摘要: 1 Intent intent=new Intent(); 2 /*打开相册*/ 3 intent.setType("image/*"); 4 // 兼容4.4以下及4.4以上 5 if (android.os.Build.V...
阅读全文
posted @ 2015-10-23 11:37 蜗牛眼里的世界
阅读(321)
评论(0)
推荐(0)
2015年10月22日
图片加载
摘要: package com.bdkj.gmys.utils;import java.io.File;import android.content.Context;import com.nostra13.universalimageloader.cache.disc.impl.ext.LruDiscCac...
阅读全文
posted @ 2015-10-22 16:58 蜗牛眼里的世界
阅读(176)
评论(0)
推荐(0)
listview嵌套gridview
摘要: 在开发的过程中可能需要用到listview嵌套gridview的场景,但是在android中,不能在一个拥有Scrollbar的组件中嵌入另一个 拥有Scrollbar的组件,因为这不科学,会混淆滑动事件,导致只显示一到两行数据。那么就换一种思路,首先让子控件的内容全部显示出来,禁用了它的 滚动。如...
阅读全文
posted @ 2015-10-22 15:32 蜗牛眼里的世界
阅读(189)
评论(0)
推荐(0)
图片放大缩小移动
摘要: /** * @ClassName: MatrixImageView * @Description: 带放大、缩小、移动效果的ImageView * @author LinJ * @date 2015-1-7 上午11:15:07 * */public class MatrixImageV...
阅读全文
posted @ 2015-10-22 15:22 蜗牛眼里的世界
阅读(303)
评论(0)
推荐(0)
android几种alertdialog
摘要: 1、退出 在用户退出的时候提示用户是否退出,含有“确定”和“退出”两个按键。 1 btnExit.setOnClickListener(new View.OnClickListener() { 2 @Override 3 public ...
阅读全文
posted @ 2015-10-22 14:51 蜗牛眼里的世界
阅读(312)
评论(0)
推荐(0)
BaseResposeHandler与加载弹出框
摘要: package com.bdkj.gmys.utils;import org.apache.http.Header;import org.json.JSONArray;import org.json.JSONException;import org.json.JSONObject;import an...
阅读全文
posted @ 2015-10-22 14:40 蜗牛眼里的世界
阅读(246)
评论(0)
推荐(0)
上一页
1
2
3
4
下一页
公告