原创 仿氣泡框

1.創建BubbleLayout 自定義view類 public class BubbleLayout extends FrameLayout { public static final int LEFT = 1;

原创 蒙層實現

不多說直接上代碼 1.color文件 <?xml version="1.0" encoding="utf-8"?> <resources> <color name="transparent">#4D808080</col

原创 android Edittext焦點獲取和清除

//獲取焦點 button.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View view) {

原创 Fresco實現圖片加載,並定義緩存大小及路徑、漸進式

1.導入依賴 並添加 網絡權限(我就不粘貼網絡權限了) implementation 'com.facebook.fresco:fresco:1.12.0' 2.在Application中初始化 ImagePipelineCon