-
Notifications
You must be signed in to change notification settings - Fork 465
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bl_stroke_width #144
Comments
只有ImageView会有这个问题,边框绘制了但是被图片压在下面了。。。。 |
可以先用padding相同宽度临时解决这个问题... |
这个框架本质上还是view.setbackground,尽量不要在imageview上使用 |
但是圆角图片 图片边框是很常用的功能啊... |
package com.nf.background.library.view; import android.content.Context; import androidx.annotation.NonNull; import android.annotation.SuppressLint; import com.nf.background.R; public class BLImageView extends AppCompatImageView {
} |
你这种写法我觉得还是不太好,onDraw里面还创建对象,性能就差很多。你非要用的话还不如直接imageView外面包一层FrameLayout然后封装一下,那样bug少性能也不会差太多 |
图片在使用app:bl_stroke_width="5dp"的时候,边框是和图片等宽的,导致压在图片下面,直接看不到....
The text was updated successfully, but these errors were encountered: