|
@@ -14,6 +14,7 @@ import com.swago.baseswago.model.live.game.GameModel
|
|
|
import com.swago.room.adapter.BannerViewAdapter
|
|
|
import com.swago.room.adapter.RecommendBannerViewAdapter
|
|
|
import com.swago.room.databinding.ViewBannerBinding
|
|
|
+import com.swago.room.databinding.ViewBannerRecommendBinding
|
|
|
import com.youth.banner.indicator.CircleIndicator
|
|
|
|
|
|
class RecommendBannerView : FrameLayout,IRoomActiveListener {
|
|
@@ -26,7 +27,7 @@ class RecommendBannerView : FrameLayout,IRoomActiveListener {
|
|
|
|
|
|
private val bannerViewAdapter = RecommendBannerViewAdapter(mData)
|
|
|
|
|
|
- private var binding:ViewBannerBinding? = null
|
|
|
+ private var binding:ViewBannerRecommendBinding? = null
|
|
|
|
|
|
constructor(context: Context) : super(context)
|
|
|
constructor(context: Context, mAttributeSet: AttributeSet?) : super(context, mAttributeSet){
|
|
@@ -35,7 +36,7 @@ class RecommendBannerView : FrameLayout,IRoomActiveListener {
|
|
|
|
|
|
private fun initView(context: Context) {
|
|
|
SwagoRoomManager.addListener(this)
|
|
|
- binding = ViewBannerBinding.inflate(LayoutInflater.from(context),this,true)
|
|
|
+ binding = ViewBannerRecommendBinding.inflate(LayoutInflater.from(context),this,true)
|
|
|
}
|
|
|
|
|
|
override fun changeRoom(iRoomInfo: IRoomInfo) {
|