|
|
@@ -76,9 +76,6 @@ class XhcpHomeFragment : BaseFragment<XhcpHomeViewModel>(){
|
|
|
|
|
|
lateinit var dataRecyclerview : RecyclerView
|
|
|
|
|
|
- lateinit var chartView : AAChartView
|
|
|
- lateinit var chartModel : AAChartModel
|
|
|
-
|
|
|
private val xhcpAnnouncementUI: XhcpAnnouncementUI by lazy {
|
|
|
XhcpAnnouncementUI(
|
|
|
this,
|
|
|
@@ -101,10 +98,11 @@ class XhcpHomeFragment : BaseFragment<XhcpHomeViewModel>(){
|
|
|
private val uiMessageList: ArrayList<_FrameLayout> = arrayListOf()
|
|
|
|
|
|
fun initMessageMenuData() {
|
|
|
- tabsArray.add("资讯")
|
|
|
- uiMessageList.add(informationUI.root)
|
|
|
- tabsArray.add("公告")
|
|
|
+
|
|
|
+ tabsArray.add("通知公告")
|
|
|
uiMessageList.add(xhcpAnnouncementUI.root)
|
|
|
+ tabsArray.add("新闻资讯")
|
|
|
+ uiMessageList.add(informationUI.root)
|
|
|
|
|
|
pagerAdapter = object : PagerAdapter() {
|
|
|
|
|
|
@@ -271,6 +269,7 @@ class XhcpHomeFragment : BaseFragment<XhcpHomeViewModel>(){
|
|
|
|
|
|
tabSegment {
|
|
|
segment = this
|
|
|
+
|
|
|
background = resources.getDrawable(R.color.white)
|
|
|
addOnTabSelectedListener(object :
|
|
|
QMUITabSegment.OnTabSelectedListener {
|
|
|
@@ -281,7 +280,6 @@ class XhcpHomeFragment : BaseFragment<XhcpHomeViewModel>(){
|
|
|
selectedTabIndex = index
|
|
|
}
|
|
|
})
|
|
|
- mode = QMUITabSegment.MODE_FIXED
|
|
|
setIndicator(
|
|
|
QMUITabIndicator(
|
|
|
QMUIDisplayHelper.dp2px(context, 2),
|