首页 文章 精选 留言 我的

精选列表

搜索[PDF查看],共10026篇文章
优秀的个人博客,低调大师

[ Android Memory] MAT查看图片资源

参考:http://stackoverflow.com/questions/12709603/mat-eclipse-memory-analyzer-how-to-view-bitmaps-from-memory-dump/12709604#12709604 以下是测试通过的,至于GIMP方式,我没有实验成功。 1: 打开mat的inspector视图,比较重要的是mBuffer, mWidth, mHeight 2: InMATfor relatedBitmapobject right clickmBufferfield and select "Copy" -> "Save Value To File", name the file with an.rgbaextension. You need to note bitmap width and height frommWidthandmHeightfields, which you can see in Bitmap object. HavingImageMagickcommand line tools installed (for Ubuntuapt-get install imagemagick), you issueconvertcommand with the following parameters. convert -size 'width'x'height' -depth 8 filename.rgba filename.png For example convert -size 680x1209 -depth 8 phone_decor.rgba phone_decor.png 分类: Android Memory 本文转自demoblog博客园博客,原文链接http://www.cnblogs.com/0616--ataozhijia/p/4013035.html如需转载请自行联系原作者 demoblog

优秀的个人博客,低调大师

如何查看域名解析是否生效?

注意,请先到阿里云官网 领取幸运券,除了价格上有很多优惠外,还可以参与抽奖。详见:https://promotion.aliyun.com/ntms/act/ambassador/sharetouser.html?userCode=2a7uv47d&utm_source=2a7uv47d 您可访问第三方IP查询网站:http://www.ip138.com/ ,输入您的域名,例如:www.abc.com 然后点后面的查询,在查询结果页面中 如果看到域名后面对应的IP地址x.x.x.x,则说明解析已生效。如果还不能访问,请找你的空间服务商处理。 如果您通过http://www.ip138.com/可以查到域名对应的IP,但在您本地PING不到IP,则说明是您本地的DNS没有更新,您可找您本地的网络服务商更新一下DNS,如果您是通过路由器上网,可以重启路由器试一下。 测试别名解析生效的方法:您可进入DOS状态PING您的域名,方法如下:从桌面上的开始——程序——附件——C:、命令提示符,然后输入:nslookup www.abc.com ,然后按回车。(请将www.abc.com换成您的域名),测试结果中如能看到你别名指向的网址,则说明已生效。

优秀的个人博客,低调大师

仿Boss直聘-查看头像

发现Boss直聘app做的还是,比较不错的吧。。先看效果,致谢 Image-Zoomer GIF.gif 怎么用? <pre> @Override public void onClick(View v) { super.onClick(v); if (R.id.tv == v.getId()) { startActivity(ZoomActivity.class); } else if (R.id.iv == v.getId()) { new BossZoomHelper(this, imageView, 400); } } </pre> 原理很简单, <pre> package org.alex.bosszoomanim; import android.animation.Animator; import android.animation.AnimatorListenerAdapter; import android.animation.AnimatorSet; import android.animation.ObjectAnimator; import android.app.Activity; import android.graphics.Bitmap; import android.graphics.Point; import android.graphics.Rect; import android.support.v7.widget.ContentFrameLayout; import android.view.View; import android.view.animation.DecelerateInterpolator; import android.widget.FrameLayout; import android.widget.ImageView; import org.alex.util.LogUtil; /** * 作者:Alex * 时间:2016/10/8 12:48 * 简述: */ public class BossZoomHelper { private Animator animator; private ImageView copyImageView; public BossZoomHelper(final Activity activity, final View originalView) { this(activity, originalView, 400); } public BossZoomHelper(final Activity activity, final View originalView, final long duration) { if (animator != null) { animator.cancel(); } final ContentFrameLayout container = (ContentFrameLayout) activity.findViewById(android.R.id.content); copyImageView = new ImageView(activity); int matchParent = FrameLayout.LayoutParams.MATCH_PARENT; FrameLayout.LayoutParams params = new FrameLayout.LayoutParams(matchParent, matchParent); copyImageView.setLayoutParams(params); if (originalView instanceof ImageView) { copyImageView.setImageDrawable(((ImageView) originalView).getDrawable()); } else { Bitmap bm = view2Bitmap(originalView); if (bm != null) { copyImageView.setImageBitmap(bm); } } copyImageView.setVisibility(View.GONE); container.addView(copyImageView); final Rect startRect = new Rect(); final Rect endRect = new Rect(); Point offsetPoint = new Point(); originalView.getGlobalVisibleRect(startRect); /\*\* \* r 是 绝对(global)坐标参数,包含状态栏、ActionBar、底部虚拟键 \* globalOffset 用于将global坐标转换成local坐标,这里的local坐标,是相对于内容区的坐标,也就是除了状态栏和action bar和虚拟按键的区域。 \* \*/ container.getGlobalVisibleRect(endRect, offsetPoint); startRect.offset(-offsetPoint.x, -offsetPoint.y); endRect.offset(-offsetPoint.x, -offsetPoint.y); final float startScale; float scaleSize; float startScaleFinal; LogUtil.e("-offsetPoint.x = " + (-offsetPoint.x) + " -offsetPoint.y = " + (-offsetPoint.y)); LogUtil.e("startRect.width() = " + startRect.width() + " startRect.height() = " + startRect.height()); LogUtil.e("endRect.width() = " + endRect.width() + " endRect.height() = " + endRect.height()); if ((float) endRect.width() / (float) endRect.height() > (float) startRect.width() / (float) startRect.height()) { startScale = (float) startRect.height() / (float) endRect.height(); scaleSize = startScale \* (float) endRect.width(); startScaleFinal = (scaleSize - (float) startRect.width()) / 2.0F; startRect.left = (int) ((float) startRect.left - startScaleFinal); startRect.right = (int) ((float) startRect.right + startScaleFinal); } else { startScale = (float) startRect.width() / (float) endRect.width(); scaleSize = startScale \* (float) endRect.height(); startScaleFinal = (scaleSize - (float) startRect.height()) / 2.0F; startRect.top = (int) ((float) startRect.top - startScaleFinal); startRect.bottom = (int) ((float) startRect.bottom + startScaleFinal); } copyImageView.setPivotX(0.0F); copyImageView.setPivotY(0.0F); AnimatorSet showAnimatorSet = new AnimatorSet(); showAnimatorSet.setDuration(duration); showAnimatorSet.play(ObjectAnimator.ofFloat(copyImageView, View.X, new float[]{(float) startRect.left, (float) endRect.left})) .with(ObjectAnimator.ofFloat(copyImageView, View.Y, new float[]{(float) startRect.top, (float) endRect.top})) .with(ObjectAnimator.ofFloat(copyImageView, View.SCALE_X, new float[]{startScale, 1.0F})) .with(ObjectAnimator.ofFloat(copyImageView, View.SCALE_Y, new float[]{startScale, 1.0F})); showAnimatorSet.setInterpolator(new DecelerateInterpolator()); showAnimatorSet.addListener(new AnimatorListenerAdapter() { @Override public void onAnimationStart(Animator animation) { copyImageView.setVisibility(View.VISIBLE); } public void onAnimationEnd(Animator animation) { animator = null; } public void onAnimationCancel(Animator animation) { destroy(originalView, container); } }); showAnimatorSet.start(); animator = showAnimatorSet; copyImageView.setOnClickListener(new View.OnClickListener() { public void onClick(View view) { if (animator != null) { animator.cancel(); } copyImageView.setBackgroundColor(0); AnimatorSet hiddenAnimatorSet = new AnimatorSet(); hiddenAnimatorSet.play(ObjectAnimator.ofFloat(copyImageView, View.X, new float[]{(float) startRect.left})) .with(ObjectAnimator.ofFloat(copyImageView, View.Y, new float[]{(float) startRect.top})) .with(ObjectAnimator.ofFloat(copyImageView, View.SCALE_X, new float[]{startScale})) .with(ObjectAnimator.ofFloat(copyImageView, View.SCALE_Y, new float[]{startScale})); hiddenAnimatorSet.setInterpolator(new DecelerateInterpolator()); hiddenAnimatorSet.setDuration(duration); hiddenAnimatorSet.addListener(new AnimatorListenerAdapter() { @Override public void onAnimationStart(Animator animation) { super.onAnimationStart(animation); } public void onAnimationEnd(Animator animation) { if (animator != null) { animator.cancel(); } destroy(originalView, container); } public void onAnimationCancel(Animator animation) { destroy(originalView, container); } }); hiddenAnimatorSet.start(); animator = hiddenAnimatorSet; } }); } private void destroy(View originalView, ContentFrameLayout container) { originalView.setAlpha(1.0F); copyImageView.setVisibility(View.GONE); container.removeView(copyImageView); animator = null; } private Bitmap view2Bitmap(View view) { view.setDrawingCacheEnabled(true); view.buildDrawingCache(); Bitmap bmp = view.getDrawingCache(); if (bmp == null) { return null; } Bitmap bp; bp = Bitmap.createBitmap(bmp, 0, 0, bmp.getWidth(), bmp.getHeight()); view.destroyDrawingCache(); return bp; } } </pre> https://github.com/Alex-Cin/BossAnim

资源下载

更多资源
Mario

Mario

马里奥是站在游戏界顶峰的超人气多面角色。马里奥靠吃蘑菇成长,特征是大鼻子、头戴帽子、身穿背带裤,还留着胡子。与他的双胞胎兄弟路易基一起,长年担任任天堂的招牌角色。

腾讯云软件源

腾讯云软件源

为解决软件依赖安装时官方源访问速度慢的问题,腾讯云为一些软件搭建了缓存服务。您可以通过使用腾讯云软件源站来提升依赖包的安装速度。为了方便用户自由搭建服务架构,目前腾讯云软件源站支持公网访问和内网访问。

Nacos

Nacos

Nacos /nɑ:kəʊs/ 是 Dynamic Naming and Configuration Service 的首字母简称,一个易于构建 AI Agent 应用的动态服务发现、配置管理和AI智能体管理平台。Nacos 致力于帮助您发现、配置和管理微服务及AI智能体应用。Nacos 提供了一组简单易用的特性集,帮助您快速实现动态服务发现、服务配置、服务元数据、流量管理。Nacos 帮助您更敏捷和容易地构建、交付和管理微服务平台。

Sublime Text

Sublime Text

Sublime Text具有漂亮的用户界面和强大的功能,例如代码缩略图,Python的插件,代码段等。还可自定义键绑定,菜单和工具栏。Sublime Text 的主要功能包括:拼写检查,书签,完整的 Python API , Goto 功能,即时项目切换,多选择,多窗口等等。Sublime Text 是一个跨平台的编辑器,同时支持Windows、Linux、Mac OS X等操作系统。

用户登录
用户注册
修改密码
忘记密码