Android自定义View
神鲸兮兮
简单一点,淡然一点,随意一点,善良一点。
心宽一寸,路宽一丈,花谢花开,四季温良,春去春来,皆有美好。
展开
-
LoadingDialog -- 加載Dialog
/** * @describe 加載Dialog */class LoadingDialog(private val mContext: Context) { private lateinit var dialog: Dialog private var mBackgroundLayout: LinearLayout? = null /*** * tip 提示 */ private var tvTip: TextView? = null原创 2021-08-10 10:55:53 · 166 阅读 · 0 评论 -
自定义View封装--左滑删除(笔记)
/** * @describe 左滑删除 */class SlidingButtonView(context: Context?, attrs: AttributeSet?, defStyleAttr: Int) : HorizontalScrollView(context, attrs, defStyleAttr) { private var mTextViewDelete: TextView? = null private var mScrollWidth = 0原创 2021-08-10 10:50:15 · 94 阅读 · 0 评论 -
自定义View之CurveView波浪弧形(学习笔记)
波浪弧形文章目录前言一、示例图二、步骤1.自定义View的xml中style2.代码如下总结前言自定义View,用于自定义的背景提示:以下是本篇文章记录了自定义view的步骤和方法一、示例图示例:如下图二、步骤1.自定义View的xml中style在styles.xml中添加以下属性: <!--curveBgColor 背景颜色--> <declare-styleable name="CurveView"> <attr nam原创 2020-10-15 15:12:15 · 346 阅读 · 0 评论