当前位置: 首页 > news >正文

免费建站软件商标起名生成器

免费建站软件,商标起名生成器,如何做亚马逊跨境电商,深圳建设工程交易服务网网址最近需要用到微信的标签功能(如下图所示)。该功能可以添加已有标签#xff0c;也可以自定义标签。也可以删除已编辑菜单。研究了一番。发现还是挺有意思的#xff0c;模拟实现相关功能。该功能使用类似FlowLayout的功能。Flowlayout为一个开源软件(https://github.com/ApmeM/…最近需要用到微信的标签功能(如下图所示)。该功能可以添加已有标签也可以自定义标签。也可以删除已编辑菜单。研究了一番。发现还是挺有意思的模拟实现相关功能。该功能使用类似FlowLayout的功能。Flowlayout为一个开源软件(https://github.com/ApmeM/android-flowlayout)功能为自动换行的布局类型import android.content.Context;import android.util.AttributeSet;import android.view.View;import android.view.ViewGroup;/**** author RAW*/public class FlowLayout extends ViewGroup {private final static int PAD_H 2, PAD_V 2; // Space between child views.private int mHeight;public FlowLayout(Context context) {super(context);}public FlowLayout(Context context, AttributeSet attrs) {super(context, attrs);}Overrideprotected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {assert (MeasureSpec.getMode(widthMeasureSpec) ! MeasureSpec.UNSPECIFIED);final int width MeasureSpec.getSize(widthMeasureSpec) - getPaddingLeft() - getPaddingRight();int height MeasureSpec.getSize(heightMeasureSpec) - getPaddingTop() - getPaddingBottom();final int count getChildCount();int xpos getPaddingLeft();int ypos getPaddingTop();int childHeightMeasureSpec;if(MeasureSpec.getMode(heightMeasureSpec) MeasureSpec.AT_MOST)childHeightMeasureSpec MeasureSpec.makeMeasureSpec(height, MeasureSpec.AT_MOST);elsechildHeightMeasureSpec MeasureSpec.makeMeasureSpec(0, MeasureSpec.UNSPECIFIED);mHeight 0;for(int i 0; i count; i) {final View child getChildAt(i);if(child.getVisibility() ! GONE) {child.measure(MeasureSpec.makeMeasureSpec(width, MeasureSpec.AT_MOST), childHeightMeasureSpec);final int childw child.getMeasuredWidth();mHeight Math.max(mHeight, child.getMeasuredHeight() PAD_V);if(xpos childw width) {xpos getPaddingLeft();ypos mHeight;}xpos childw PAD_H;}}if(MeasureSpec.getMode(heightMeasureSpec) MeasureSpec.UNSPECIFIED) {height ypos mHeight;} else if(MeasureSpec.getMode(heightMeasureSpec) MeasureSpec.AT_MOST) {if(ypos mHeight height) {height ypos mHeight;}}height 5; // Fudge to avoid clipping bottom of last row.setMeasuredDimension(width, height);} // end onMeasure()Overrideprotected void onLayout(boolean changed, int l, int t, int r, int b) {final int width r - l;int xpos getPaddingLeft();int ypos getPaddingTop();for(int i 0; i getChildCount(); i) {final View child getChildAt(i);if(child.getVisibility() ! GONE) {final int childw child.getMeasuredWidth();final int childh child.getMeasuredHeight();if(xpos childw width) {xpos getPaddingLeft();ypos mHeight;}child.layout(xpos, ypos, xpos childw, ypos childh);xpos childw PAD_H;}}} // end onLayout()}以上所述是小编给大家介绍的android模仿微信收藏文件的标签处理功能希望对大家有所帮助如果大家有任何疑问请给我留言小编会及时回复大家的。在此也非常感谢大家对脚本之家网站的支持
http://www.pierceye.com/news/151744/

相关文章:

  • 地下城钓鱼网站如何做iis添加网站无法访问
  • 招聘网站大全网站开发liucheng
  • erlang做网站优势深圳集团网站建设公司好
  • 烟台公司建网站seo网站推广 沈阳
  • 没有网站做APP企业网站模板建站
  • 国内炫酷的网站首页网站开发交易平台
  • 大型网站建设公司制作网站好大夫在线免费咨询
  • 有哪些设计的很优秀的网站诸暨市住房建设局网站
  • 建设网站网站建站延吉手机网站建设开发
  • 网站建设一意见08wordpress主题
  • 做网站备案不少天网络设计包括哪些
  • 仿腾讯视频网站源码个人制作网站工具
  • 泉州网站制作建设163注册企业邮箱
  • 漳州市建设局网站6热e国产-网站正在建设中-手机版
  • 给公司做网站数据分析江门网站设计制作
  • 怎么做新网站安宁网站建设熊掌号
  • com是什么网站网络科技公司可以去吗
  • 抖音创作者服务平台上海seo培训中心
  • 自己做网站app甘肃网站域名申请公司
  • 电子商务网站开发的课程介绍2023年新闻摘抄
  • 合肥如何做百度的网站推广百度知道官网首页登录入口
  • 织梦网站怎么做二级域名广州做网站费用
  • 湖南的商城网站建设网站建设与管理专业就业
  • 诸城企业网站建设wordpress经典编辑器插件
  • 做视频播放网站 赚钱全国建筑网站
  • 网站建站要多少钱2021安全员证报名入口
  • 成都建设网站那家好vs2019可以做网站吗
  • 个人网站开发教程济南高新网站制作
  • 中国空间站最新进展欧泰国际物流网站
  • 做淘宝链接网站成都网站建设 3e网络