ConfideHomeFooterView.kt 1.03 KB
Newer Older
洪国微 committed
1 2 3 4 5 6 7 8 9
package com.ydl.confide.home.widget

import android.content.Context
import android.view.View
import android.view.ViewGroup
import android.widget.LinearLayout
import android.widget.RelativeLayout
import com.ydl.confide.R
import com.ydl.confide.home.event.IConfideHomeEvent
10
import kotlinx.android.synthetic.main.confide_footer.view.*
洪国微 committed
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29

/**
 * @author yuanwai
 * @描述:倾诉首页底部 更多情感恋爱专家View
 * @Copyright Copyright (c) 2018
 * @Company 壹点灵
 * @date 2018/8/11
 */
class ConfideHomeFooterView(var mContext: Context,var confideHomeEvent : IConfideHomeEvent) : RelativeLayout(mContext){

    init {
        initView()
    }

    /**
     * 界面初始化
     */
    private fun initView() {
        var params = ViewGroup.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT,ViewGroup.LayoutParams.WRAP_CONTENT)
30
        View.inflate(context, R.layout.confide_footer,this)
洪国微 committed
31 32 33 34 35 36
        tv_footer.setOnClickListener {
            confideHomeEvent.consultantMoreClick("app://listen/list")
        }
        layoutParams = params
    }
}