Skip to content

Instantly share code, notes, and snippets.

View o0o0oo00's full-sized avatar
🍎
书生意气,挥斥方遒!

zhaocy o0o0oo00

🍎
书生意气,挥斥方遒!
View GitHub Profile
@o0o0oo00
o0o0oo00 / AnyToObservable.kt
Last active August 10, 2021 08:03
万事万物皆可Observable
import android.content.Context
import android.graphics.Bitmap
import android.text.Editable
import android.text.TextWatcher
import android.view.View
import android.view.inputmethod.EditorInfo
import android.view.inputmethod.InputMethodManager
import android.widget.EditText
import android.widget.TextView
import androidx.lifecycle.LifecycleOwner
@o0o0oo00
o0o0oo00 / SwipeDismissLayout.kt
Last active August 10, 2021 08:03
事件分发的精髓无外乎于此,写一个右滑消失的ViewGroup,不影响子view的事件接收
import android.content.Context
import android.util.AttributeSet
import android.view.MotionEvent
import android.widget.FrameLayout
/**
* @author: zhaochunyu
* @description: 滑动消失ViewGroup
* @date: 2019-06-25
*/