自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(8)
  • 问答 (1)
  • 收藏
  • 关注

转载 android图片压缩

http://104zz.iteye.com/blog/1694762第一:我们先看下质量压缩方法:private Bitmap compressImage(Bitmap image) { ByteArrayOutputStream baos = new ByteArrayOutputStream(); image.compress(Bitmap.CompressFormat

2015-03-09 22:36:56 256

原创 android软键盘相关

1、设置进入activity不自动进入编辑框在它的父控件中添加如下两行代码即可 android:focusable="true" android:focusableInTouchMode="true"2、设置弹出模式第一种情况如下,会改变屏幕区域的大小android:windowSoftInputMode="adjustResize"第二种情况如下

2015-03-09 22:13:23 313

转载 一些有关Android图片的操作,判断方向,旋转,根据uri获取绝对路径,缩放与移动

//获取图片方向public static int readPictureDegree(String path) { int degree = 0; try { ExifInterface exifInterface = new ExifInterface(path); int orientation = exifInterface.getAttributeInt( ExifI

2015-01-28 17:15:11 1509

转载 在非UI线程中使用Toast

public void showToast(String msg){          Looper.prepare();          Toast.makeText(getApplicationContext(), msg, Toast.LENGTH_SHORT).show();          Looper.loop();      }  public void showToas

2015-01-27 21:53:09 536

原创 android客户端与sae交互中文处理 gb2312

1、sae中的mysql数据库使用字符集:gb2312_chinese_ci2、在调用mysql的php中设置字符集:$mysql->setCharset('gb2312') ;3、在java中,发起post请求,附带的内容应进行gb2312编码,同时,接收到的数据也应进行gb2312解码,即可获得正确的中文结果HttpEntity entityp = new UrlEncodedFo

2015-01-27 21:41:25 491

原创 继承BaseAdapter构建变化的listview

public class DiaryAdapter extends BaseAdapter { private List> coll;//list作为容器,存储需要放置的数据 private LayoutInflater mInflater;//layout private Context context; public DiaryAdapter(Context context, Lis

2014-12-19 13:35:30 295

原创 android在edittext中对回车键进行改变

使用imeoption属性xml中的用法为android:imeOptions="actionSend"android:imeOptions="actionDone"动态调用方法为etx.setImeOptions(EditorInfo.IME_ACTION_DONE);etx.setOnEditorActionListener(new OnEditor

2014-12-13 20:30:53 586

原创 一些简单的android与sae服务器数据库交互代码

android端

2014-09-11 14:13:42 430

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除