登录
首页 » Android » Android实现双击屏幕图片缩放效果

Android实现双击屏幕图片缩放效果

于 2023-02-05 发布 文件大小:598.03 kB
0 183
下载积分: 2 下载次数: 2

代码说明:

Android实现双击屏幕图片缩放效果,这个功能估计大家都见过不少吧,很多手机APP中就有,最直接的就是图库相册的预览功能里面,当显示图片缩略图的时候,双击屏幕,缩略图会按一定的比例放大显示图片,本源码所完成的功能就是模拟了这样一种功能,如视图所示,它一共模拟出了三种双击放大的效果,其中还会显示放大位数,还可对图片进行稍微的旋转,你下载实例后,在Android虚拟机下就可运行这个例子。

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • 视屏录制demo,可以支持usb
    android-eye =========== Change your android phone to a surveillance security camera. ## Download ## You can download binrary from Google Play:  https://play.google.com/store/apps/details?id=teaonly.droideye  ## Specifications ## * Streaming    * Build-in web service, you can see the video via browser in pc and another phone, a modem browser with HTML5 is reauired.   * H.264 video and G.726 audio   * Streaming via websocket between browser and android phone.   * Decoding H.264 and G.726 in pure Javascript * Smart   * Support motion detecting (doing)   * Support advanced vision algorithms (doing)   * Publishing alarm messages to SNS (not ready)     * Access over internet   * This app don"t support internet, you can try my another ap
    2022-11-06 02:50:03下载
    积分:1
  • 下拉popwindow
    点击按钮,弹出一个popwindow,弹出和收起是有缓慢的效果的,里面放了listview 可以添加数据,并点击相应的条目
    2023-03-06 23:05:04下载
    积分:1
  • 安卓即时通信源码(支持文字 语音聊天)
    应用背景允许在因特网或局域网内的用户进行语音交流.你所需要的只是麦克和声卡.与其它因特网语音通讯软件不同,它对参与会话的人数没有限制(这取决于你的带宽),并且,语音延迟极小,因此能获得较好的沟通效果.英文界面.关键技术该IM软件适合中小型企业用户,支持单聊和群聊,提供文字、表情和图片的富文本实时聊天功能,支持多平台客户端同时登陆,以及各平台之间消息的同步推送。实属国产良心之作,github主页https://github.com/mogutt,官网http://tt.mogu.io/试用帐号javaapk.com 密码sdasda。
    2022-04-22 19:21:07下载
    积分:1
  • AbstractMapBasedMultiset
    Basic implementation of Multiset backed by an instance of code Map, AtomicInteger for Andriod.
    2013-10-05 08:20:28下载
    积分:1
  • MusicPlayer音乐播放器
    说明:  手机音乐播放器是一种在手机上用于播放各种音乐文件的多媒体播放软件。它涵盖了各种音乐格式的播放工具,比如:手机自带播放器、MP3播放器,WMA播放器,MP4播放器等,目前手机音乐播放器主要支持的格式有MP3、WMA、AAC、AAC+、MID、AMR、OGG、MP4、FLAC等,它们在手机中运行,不仅界面美观,而且操作简单,带你进入一个完美的音乐空间。(A mobile music player is a multimedia playing software for playing various music files on a mobile phone. It covers a variety of music format playback tools, such as: mobile phone player, MP3 player, WMA player, MP4 player, etc. Currently mobile phone music player mainly supports MP3, WMA, AAC, AAC+, MID, AMR, OGG, MP4, FLAC, etc., they run in the mobile phone, not only the interface is beautiful, but also easy to operate, bringing you into a perfect music space.)
    2020-06-18 13:20:01下载
    积分:1
  • android selector例子(normal/pressed/focused/disabled状态)
    android selector例子(normal/pressed/focused/disabled状态)
    2015-06-12下载
    积分:1
  • android联系人带字母检索源码
    android联系人带字母检索源码/** * 联系人列表适配器。 * * @author guolin */public class ContactAdapter extends ArrayAdapter { /** * 需要渲染的item布局文件 */ private int resource; /** * 字母表分组工具 */ private SectionIndexer mIndexer; public ContactAdapter(Context context, int textViewResourceId, List objects) { super(context, textViewResourceId, objects); resource = textViewResourceId; } @Override public View getView(int position, View convertView, ViewGroup parent) { Contact contact = getItem(position); LinearLayout layout = null; if (convertView == null) { layout = (LinearLayout) LayoutInflater.from(getContext()).inflate(resource, null); } else { layout = (LinearLayout) convertView; } TextView name = (TextView) layout.findViewById(R.id.name); LinearLayout sortKeyLayout = (LinearLayout) layout.findViewById(R.id.sort_key_layout); TextView sortKey = (TextView) layout.findViewById(R.id.sort_key); name.setText(contact.getName()); int section = mIndexer.getSectionForPosition(position); if (position == mIndexer.getPositionForSection(section)) { sortKey.setText(contact.getSortKey()); sortKeyLayout.setVisibility(View.VISIBLE); } else { sortKeyLayout.setVisibility(View.GONE); } return layout; } /** * 给当前适配器传入一个分组工具。 * * @param indexer */ public void setIndexer(SectionIndexer indexer) { mIndexer = indexer; }}
    2014-04-13下载
    积分:1
  • electronic-organ-Android
    这是一个很经典的关于电子琴的作业,是学习安卓的一个很好的例程,使我们上课的时候老师让我们做的,可以运行的。(This is a classic on the keyboard operation, Andrews is a good learning routines, so that our class when the teacher asked us to do, you can run.)
    2020-06-30 09:20:01下载
    积分:1
  • Android Xml 节点与数组使用范例
    Android Xml 节点与数组使用范例,注:定义数组的元素 应该在onCreate方法内进行 不能再外面,根据Activity的生命周期可知:onCreate方法在创造Activity时 被调用。
    2023-07-13 03:55:04下载
    积分:1
  • Android 支持人脸识别拍照程序范例
    Android 支持人脸识别拍照程序范例,拍摄照片时将自动锁定人脸部位,然后对焦什么的都会跟上,就像现在手机拍照的人脸检测一样的功能。同时本拍照程序还有一些特效功能,比如黑白、负片、曝光过度、色调分离、白板、浅绿、浮雕、素描、霓虹灯等。   改变方向并作动画效果 @param orientation [0 , 7] 方向分别为 0上面朝下 1左上面朝下 2左面朝下 3左下面朝下 。。。依次类推   本APP运行时需要开启摄像头权限、读取外部存储权限、写入外部存储权限。
    2022-10-02 09:30:04下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载