![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Android
zhangfeilong1848
这个作者很懒,什么都没留下…
展开
-
移动 view 的位置
view.layout(left , top + deltaY, right , bottom + deltaY)原创 2014-07-02 22:25:46 · 390 阅读 · 0 评论 -
Shape 画圆形
android:shape="oval" > android:height="10dp" android:width="10dp" /></shape原创 2014-11-21 22:26:25 · 465 阅读 · 0 评论 -
状态栏高度
Rect frame = new Rect();getWindow().getDecorView().getWindowVisibleDisplayFrame(frame);int statusBarHeight = frame.top;原创 2015-06-25 19:57:00 · 330 阅读 · 0 评论 -
获取view x y 坐标
view.getLocationInWindow(location); int x = location[0]; int y = location[1];原创 2015-06-25 19:55:00 · 309 阅读 · 0 评论 -
截屏
hotelCouponView.setDrawingCacheEnabled(true); hotelCouponView.buildDrawingCache(); Bitmap bitmap = Bitmap.createBitmap(hotelCouponView.getDrawingCache());原创 2015-06-25 19:54:23 · 230 阅读 · 0 评论 -
Android 开源项目备忘
备忘记录以便后续使用GitHub上最火的74个Android开源项目(三)http://www.360doc.com/content/13/0701/14/12890102_296781676.shtml开源ImageFilter库v0.3:新增22种图片效果http://www.cnblogs.com/daizhj/楼主好厉害啊。也推荐原创 2015-07-16 13:06:18 · 393 阅读 · 0 评论 -
Android 屏幕适配
转载以备后查看http://blog.csdn.net/zhaokaiqiang1992/article/details/45419023转载 2015-12-20 14:27:00 · 440 阅读 · 0 评论 -
Appium 学习之路
Appium 学习之路 初窥自动化测试 Appium是什么 Appium的特点 Appium支持的平台及语言框架 Appium工作原理 Appium环境安装 Appium案例演示Appium是什么•Appium是一个移动端的转载 2018-01-08 13:51:06 · 12294 阅读 · 1 评论 -
画个圆环
android:innerRadius="0dp" android:shape="ring" android:useLevel="false" > android:height="100dp" android:width="100dp" /> android:width="1d原创 2014-11-21 22:36:32 · 395 阅读 · 0 评论 -
ListView item 复用
public abstract class MyAdapter extends BaseAdapter { /** * 此类将List封装起来 */ private List itemList; public MyAdapter() { itemList = new ArrayList(); }转载 2014-08-02 00:08:22 · 349 阅读 · 0 评论 -
获取画到到view上的bitmap
view.destroyDrawingCache(); view.setDrawingCacheEnabled(true); Bitmap bitmap = Bitmap.createBitmap(view.getDrawingCache());原创 2014-07-02 22:15:53 · 331 阅读 · 0 评论 -
BottomLine 动画
public class BottomLineImageView extends ImageView { private static int COUNT = 3; private int position; private float offset; private float bottom_line_width; public Bottom原创 2014-07-02 22:40:49 · 1337 阅读 · 0 评论 -
将bitmap按newWidth newHeight 裁剪
public static Bitmap fitBitmapToShare(Bitmap bitmap, int newWidth, int newHeight) { Bitmap newBitmap = scaleBitmap(bitmap, newWidth, newHeight); if (newBitmap == null || newBitmap.isRecycled())原创 2014-07-04 09:39:56 · 524 阅读 · 0 评论 -
Android Drawable 转化为 Bitmap
Bitmap drawable2Bitmap(Drawable drawable) { if (drawable instanceof NinePatchDrawable) { NinePatchDrawable npd = (NinePatchDrawable) drawable; Bitmap output_bitmap = Bitmap.createBitmap(npd原创 2014-07-02 14:06:48 · 407 阅读 · 0 评论 -
将bitmap按newWidth newHeight放大缩小
public static Bitmap scaleBitmap(Bitmap bitmap, int newWidth, int newHeight) { if (bitmap == null || bitmap.isRecycled()) { return null; } if (newWidth == 0 || newHeight == 0) { thro原创 2014-07-04 09:36:26 · 442 阅读 · 0 评论 -
打印 Log
STACK_LEVEL = private static String getLineNumber() { return "L" + Thread.currentThread().getStackTrace()[STACK_LEVEL].getLineNumber(); } private static String getMet原创 2014-09-27 09:36:52 · 330 阅读 · 0 评论 -
将logcat 重定向到log文件
adb logcat -s comm_data>1.log原创 2014-07-09 11:06:21 · 1902 阅读 · 0 评论 -
Android 创建图像倒影
public void createReflectedImages() { int reflectionGap = 4; Bitmap originalImage = BitmapFactory.decodeResource(getResources(), R.drawable.qq); int width = originalImage.getWidth(); int height...原创 2013-10-20 20:25:20 · 91 阅读 · 0 评论