DismissibleImageView

DismissibleImageView 是一款简洁的 Android 图片查看库,它模仿了 Twitter 应用中的 UX 设计,允许用户通过简单地将全屏图片滑出屏幕来返回上一视图。该库易于集成,只需在项目的 build.gradle 文件中添加依赖即可使用。

https://github.com/dmallcott/DismissibleImageView




DismissibleImageView

This is one of my favourite UX patterns which is currently being used in the Twitter app. The idea is simple, click an image for a full screen view then just move the image off the screen to go back to your previous view.


I know this is a really simple library BUT it would be nice if more apps started adopting this kind of UX patterns that make the Android experience a little bit more enjoyable. And as I'm writting this I think I may create a few other libraries for other simple UX an UI patterns that might make your app's experience a little better.

Installation

Add this in your root build.gradle at the end of repositories:

  allprojects {
    repositories {
      ...
      maven { url 'https://jitpack.io' }
    }
  }

Then add the dependency to your app's build.gradle.

  compile 'com.github.dmallcott:DismissibleImageView:1.0.1'

How to use

Instead of using ImageViews just use DismissibleImageView and you're good to go:

<com.dmallcott.dismissibleimageview.DismissibleImageView
        android:id="@+id/activity_main_dismissibleImageView"
        android:layout_width="match_parent"
        android:layout_height="wrap_content" />

Keep in mind that for the moment it will keep adjustViewBounds as true by default. This is because I'm working with bitmaps by default and I was too lazy to remove the extra space manually. I will definitely fix that later.


考虑大规模电动汽车接入电网的双层优化调度策略【IEEE33节点】(Matlab代码实现)内容概要:本文围绕“考虑大规模电动汽车接入电网的双层优化调度策略”,基于IEEE33节点系统,利用Matlab代码实现对电力系统中电动汽车有序充电与电网调度的协同优化。文中提出双层优化模型,上层优化电网运行经济性与稳定性,下层优化用户充电成本与便利性,通过YALMIP等工具求解,兼顾系统安全约束与用户需求响应。同时,文档列举了大量相关电力系统、优化算法、新能源调度等领域的Matlab仿真资源,涵盖微电网优化、储能配置、需求响应、风光出力不确定性处理等多个方向,形成完整的科研技术支撑体系。; 适合人群:具备电力系统基础知识和Matlab编程能力的研究生、科研人员及从事智能电网、电动汽车调度、能源优化等相关领域的工程技术人员。; 使用场景及目标:①研究大规模电动汽车接入对配电网的影响;②构建双层优化调度模型并实现求解;③开展需求响应、有序充电、微电网优化等课题的仿真验证与论文复现;④获取电力系统优化领域的Matlab代码资源与技术参考。; 阅读建议:建议结合提供的网盘资源下载完整代码,重点学习双层优化建模思路与Matlab实现方法,同时可拓展研究文中提及的其他优化调度案例,提升综合科研能力。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值