EasyLikeArea

Easy like area in the circle of friends or QQ qzone





Introduction

EasyViewProxy是EasyLikeArea的缓存管理器,默认的缓存数量是17。
建议: 使用Glide给ImageView加载好图片,然后放入EasyLikeArea中。


Github

https://github.com/CaMnter/EasyLikeArea


Gradle

dependencies {compile 'com.camnter.easylikearea:easylikearea:1.4'
}

Attributes

<declare-styleable name="EasyCountDownTextureView"><attr name="easyLikeAreaLikeSpacing" format="dimension" /><attr name="easyLikeAreaOmitSpacing" format="dimension" /><attr name="easyLikeAreaOmitCenter" format="boolean" />
</declare-styleable>

Easy to use

更多细节,请直接去写demo。

<com.camnter.easylikearea.EasyLikeArea
    android:id="@+id/topic_ela"android:layout_width="match_parent"android:layout_height="wrap_content"android:layout_below="@id/topic_content_bottom_v"android:background="@color/white"android:paddingBottom="10dp"android:paddingLeft="12.5dp"app:easyLikeAreaOmitCenter="true"app:easyLikeAreaLikeSpacing="5dp"app:easyLikeAreaOmitSpacing="8dp"android:paddingRight="12.5dp"android:paddingTop="10dp"/>

注意: 你必须 addView(…) 在 EasyLikeArea.setOmitView(View view) 之后。

private void initLikeArea() {this.setOmitView(Constant.AVATARS.length);for (int idRes : Constant.AVATARS) {EasyLikeImageView iv = this.createEasyLikeImageView();GlideUtils.displayNative(iv, idRes);this.topicEla.addView(iv);}
}public void setOmitView(int count) {View omitView = LayoutInflater.from(this).inflate(R.layout.view_omit_style_topic, null);this.omitTv = (TextView) omitView.findViewById(R.id.topic_omit_tv);this.omitTv.setText(this.getString(this.getOmitVieStringFormatId(), count));this.topicEla.setOmitView(omitView);
}

你可以使用 EasyLikeImageView

private EasyLikeImageView createEasyLikeImageView() {EasyLikeImageView iv = new EasyLikeImageView(this);iv.setLayoutParams(new ViewGroup.LayoutParams(this.dp2px(36), this.dp2px(36)));return iv;
}

EasyLikeImageView Attributes

<declare-styleable name="EasyLikeImageView"><attr name="easyLikeImageType"><enum name="round" value="2601" /><enum name="circle" value="2602" /></attr><attr name="easyLikeImageBorderRadius" format="dimension" />
</declare-styleable>

Screenshots

Scene Qzone Style

Compare resolution

Resolution 480x800 720x1280

License

  Copyright (C) 2016 CaMnter yuanyu.camnter@gmail.comLicensed under the Apache License, Version 2.0 (the "License");you may not use this file except in compliance with the License.You may obtain a copy of the License athttp://www.apache.org/licenses/LICENSE-2.0Unless required by applicable law or agreed to in writing, softwaredistributed under the License is distributed on an "AS IS" BASIS,WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.See the License for the specific language governing permissions andlimitations under the License.

56.EasyLikeArea相关推荐

  1. nist是什么软件_NIST推荐什么

    nist是什么软件 The decades-old practice of changing your password every 30 (or 60 or 90 or whatever) days ...

  2. sqli-labs:5-6,盲注

    思考1:当# --+都被过滤时,只能考虑闭合处理 思考2:union联合注入时必须先判断字段长度 eg. id=1' order by 3 and '1'='1 sqli5: 首先判断出对id经过了' ...

  3. 刚毕业就能拿到56万年薪?对!看看Twitter机器学习大牛写给你的进阶手册吧

    年薪十万?对于程序员来说,这仅仅是温饱水平. 根据国家统计局今年上半年发布的消息,2016 年信息传输.软件和信息技术服务业的平均工资为 122478 元,首次打败金融业成为新霸主,是全国城镇单位就业 ...

  4. apache2.2.25+mod_jk-apache-2.2.2.so+apache-tomcat-7.0.56集群

    1.安装httpd-2.2.25-win32-x86-no_ssl.msi 按默认安装路径,我电脑如果自定义的话安装不了 2.下载mod_jk-apache-2.2.2.so 3.下载tomcat 我 ...

  5. 循环队列,定义循环队列长度为10,编写初始化队列、入队、出队、求队长,实现10,20,30,40,50,60,70,80入队,10,20,30出队,56,67入队的算法功能。

    循环队列,定义循环队列长度为10,编写初始化队列.入队.出队.求队长,实现10,20,30,40,50,60,70,80入队,10,20,30出队,56,67入队的算法功能. #include< ...

  6. 56.4 AP!超越YOLOv4,更快更强的CenterNet2来了!

    点击上方"3D视觉工坊",选择"星标" 干货第一时间送达 代码:https://github.com/xingyizhou/CenterNet2 论文:http ...

  7. 组件php53 php55区别,PHP53、54、55、56各版本重要更新简述(上)

    今天无事,偶尔看到phpstorm中的版本选择处有关于各版本的区别的简短描述,于是总结一下. PHP5.3相对于之前版本,最大区别也就是命名空间和匿名函数了,这在平时开发和各大框架中都用的比较多了,就 ...

  8. error: RPC failed; curl 56 OpenSSL SSL_read: Connection was reset, errno 10054

    error: RPC failed; curl 56 OpenSSL SSL_read: Connection was reset, errno 10054 1.问题:git下载代码时,报" ...

  9. 最强检测 | YOLO V4?都是弟弟! CenterNet2以56.4mAP超越当前所有检测模型

    仅单尺度测试,在COCO上最高可高达56.4 mAP!超越现所有网络,如ScaledYOLOv4.GFLV2等,其中一个版本,49.2 mAP/33FPS!代码刚刚开源! 作者单位:UT Austin ...

最新文章

  1. 皮一皮:这不叫分手...叫裁员...
  2. 4路外线(NAT+PBR真实案例)
  3. IDEA 15款神级良心插件强烈推荐收藏,提高一倍工作效率!
  4. 周立波贼经典的话31-40
  5. 【面试题】CookieSession
  6. filesystemwatch java_C#方法的委托和java中的回调
  7. P3514-[POI2011]LIZ-Lollipop【思路题】
  8. abaqus实例_使用Python在ABAQUS中创建XYData数据
  9. Spring-Security 自定义Filter完成验证码校验
  10. 【script】python 使用json模块实现字符串与字典的相互转换
  11. 【java】Thread.Sleep 与 Thread.onSpinWait
  12. mr InputFormat类
  13. mysql中locate和substring函数使用
  14. NYOJ题目915-+-字符串
  15. C# 使用Graphics对象的方法绘制粗边图形/圆/椭圆/线段
  16. python删除字符串中的字母_从Python中的字符串中删除除字母数字字符之外的所有内容...
  17. 聚合影视大全android版,聚合影视App下载-聚合影视大全2021最新版 1.5.0 安卓版-我游网...
  18. 电磁兼容EMC标准 CISPR 22:EN 55022
  19. ARM Cortex-M3/M4/M7 Hardfault异常分析
  20. 【BZOJ3653】谈笑风生 离线+树状数组+DFS序

热门文章

  1. Linux arping命令测试IP地址冲突
  2. java之枚举类型enum
  3. dvwa中的xss(跨站脚本)攻击
  4. 【JavaScript】延时器定时器使用
  5. SPRING系列一之 依赖注入
  6. C++ Primer Plus 自学第六章结尾编程9题
  7. nutch核心代码分析——crawl.injector总结
  8. Mobius 莫比乌斯
  9. 【报告分享】2021直播电商年度数据报告-抖音快手-果集数据(附下载)
  10. 【C++ set的基本操作】