2016年2月16日

三星Android5.0系统以上 相册中选择相片后 图片旋转了90度问题

摘要: 这个问题在实际应用开发中也是无意中碰到,下面给出代码解决 其中avatar为头像地址,path为在相册中选择完的相片地址 int degree = ImageUtils.readPictureDegree(path); Bitmap bmpOk = ImageUtils.rotateToDegree 阅读全文

posted @ 2016-02-16 14:12 传统男人 阅读(390) 评论(0) 推荐(0) 编辑

android 标签view

摘要: import android.content.Context; import android.util.AttributeSet; import android.view.View; import android.widget.ImageView; import android.widget.Lin 阅读全文

posted @ 2016-02-16 13:44 传统男人 阅读(293) 评论(0) 推荐(0) 编辑

Android 加载网络图片时 宽度固定 按等比例显示

摘要: View v = LayoutInflater.from(TourBuyDetailsActivity.this ).inflate(R.layout.tour_details_header_img_item,null); final ImageView imageView = (ImageView 阅读全文

posted @ 2016-02-16 13:42 传统男人 阅读(1477) 评论(0) 推荐(0) 编辑

去除上下移动冲突,横向ListView

摘要: /* * HorizontalListView.java v1.5 * * * The MIT License * Copyright (c) 2011 Paul Soucy (paul@dev-smart.com) * * Permission is hereby granted, free of 阅读全文

posted @ 2016-02-16 09:50 传统男人 阅读(107) 评论(0) 推荐(0) 编辑

自定义圆形图片控件

摘要: import android.content.Context; import android.graphics.*; import android.util.AttributeSet; import android.widget.ImageView; /** * Created by cg on 2 阅读全文

posted @ 2016-02-16 09:40 传统男人 阅读(181) 评论(0) 推荐(0) 编辑

导航