- 博客(9)
- 资源 (2)
- 收藏
- 关注
原创 android使用NumberPicker实现自定义带时间的对话框
android使用NumberPicker实现自定义带时间的对话框布局:<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="wrap_content" android:layout_height="wrap_content" a
2015-05-27 18:19:02 1963 1
原创 android自定义ImageView实现圆形图片
android自定义ImageView实现圆形图片直接上代码,有问题大家提出来package com.ibenwang.widget;import android.content.Context;import android.content.res.TypedArray;import android.graphics.Bitmap;import android.graphics.
2015-05-21 20:14:59 692
原创 Bitmap关于图片处理笔记
Bitmap关于图片处理笔记android开发中,图片处理虽说不算是个难点,但是有时候做起来,很烦人,图片总是显示不好看,今天总结了下项目中用到的BitmapHelper类的几个方法,做好笔记,方便以后使用1,按自己定义尺寸压缩图片 // 压缩分辨率 public static Bitmap createBitmapThumbnail(Bitmap bitMap) {
2015-05-19 18:19:15 360
原创 android自定义时间控件NumberPicker
android自定义时间控件NumberPicker布局:<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="horizontal" android:layout_gravity="center_horizontal" andro
2015-05-14 19:17:02 1622
原创 android自定义带清空内容的TextView
android自定义带清空内容的TextView代码:/** * 带删除按钮的EditText * @author Administrator * */public class ClearEditText extends EditText implements OnFocusChangeListener, TextWatcher { /** * 删除按钮的引用 */
2015-05-14 19:12:14 11101
原创 android自定义弹窗PopupWindow
android自定义弹窗PopupWindow/** * 自定义弹窗 * @author Administrator * */public class MyPopup extends PopupWindow { private MyLogger mylogger = MyLogger.getLogger(); private Context mContext; //列
2015-05-14 19:05:32 752
原创 android实现A-Z排序和检索的功能
自定义了一个SideBar实现A-Z检索功能public class SideBar extends View { // 触摸事件 private OnTouchingLetterChangedListener onTouchingLetterChangedListener; // 26个字母 public static String[] b = { "A", "B", "C", "
2015-05-14 19:03:06 558
原创 获取手机通讯录加好友
获取手机通讯录加好友工作用到的在app访问通讯录,获取好友信息,发邀请给好友,请求加好友,类似微信的通讯录加好友效果,简单贴一些代码。xml布局:<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent"
2015-05-14 18:45:49 3571 1
原创 SharedPreferences偏好设置
SharedPreferences偏好设置的使用保存基本数据类型:1,保存数据 */ public static void setParam(Context context, String key, Object object, boolean isClear) { String type = object.getClass().getSimpleName(); Sh
2015-05-07 16:25:23 474
android自定义控件防百度语音水波扩散控件
2015-07-07
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人