zoukankan      html  css  js  c++  java
  • SimpleDraweeView 设置圆角不生效问题

    采用的是xml配置 roundedCornerRadius 参数方法

    adverPic.setImageURI("http://xx.xx.xx.xx/123.jpg");

    设置control 也无效。
    解决办法:
    RoundingParams roundingParams = new RoundingParams();
                    roundingParams.setCornersRadius(ScreenUtil.dpToPx(getResources(),15));
                    GenericDraweeHierarchyBuilder builder = new GenericDraweeHierarchyBuilder(getResources());
                    GenericDraweeHierarchy hierarchy = builder.build();
                    hierarchy.setRoundingParams(roundingParams);
                    adverPic.setImageURI(GlobalParams.gInitInfoEntity.getModel().getImage_url() + adverEntity.getImage_url());
                    adverPic.setHierarchy(hierarchy);
    <com.facebook.drawee.view.SimpleDraweeView
                android:id="@+id/img_ad_pic"
                android:layout_width="80dp"
                android:layout_height="80dp"
                android:layout_marginRight="6dp" />
  • 相关阅读:
    Linux工具-curl
    常用工具-Postman
    HTTP头部信息
    HTTP状态码
    HTTP/HTTP2协议
    HTTP协议
    常用的服务端口
    三次握手,四次挥手和抓包工具
    路由表
    TCP/IP协议详解
  • 原文地址:https://www.cnblogs.com/feijian/p/6138277.html
Copyright © 2011-2022 走看看