package com.yidianling.home.ui.view

import android.content.Context
import android.support.constraint.ConstraintLayout
import android.util.AttributeSet
import android.view.View
import com.yidianling.home.R
import kotlinx.android.synthetic.ydl.home_common_title_view.view.*

/**
 * @author <a href="https://www.jianshu.com/u/c1e5310dd724">xujian</a>
 * @描述: 首页通用标题
 * @Copyright Copyright (c) 2019
 * @Company 壹点灵
 * @date 2019/02/14
 */
class HomeCommonTitleView(private val mContext: Context, private val attributeSet: AttributeSet) : ConstraintLayout(mContext, attributeSet) {

    init {
        initView()
    }

    private fun initView() {
        View.inflate(mContext, R.layout.home_common_title_view, this)
    }

    fun setTitle(title: String) {
        homeModuleCommonTitleViewTitle.text = title
    }
}