在片段错误之间导航(BottomNavigationView可见性)

时间:2020-05-05 01:00:13

标签: android android-fragments kotlin bottomnavigationview

我试图使片段A中的_#Hello friends#_, let's program with javascript language 不可见,但是切换到片段B时可见,我尝试在整个导航过程中记录其生命周期并尝试相应地设置_#Hello friends#_, let_'s _#program#_ with _#javascript language#_,但仍然无济于事...

我正在使用def incident(count): if count['incident_ct']<= 4: # lowest percent val = 1 elif (count['incident_ct']>4) & (count['incident_ct']<= 13): # 25 to 50% val = 2 elif (count['incident_ct'] >13) & (count['incident_ct']<=31): # 50 to 75% val = 4 elif (count['incident_ct'] >31) & (count['incident_ct']<=100): # 75 to 95% val = 8 else: # upper 5% val = 16 return val在片段之间导航,导航在片段video{ outline: 0px; } 中进行,并通过BottomNavigationView视图

编辑::我尝试使用visiblity

错误:它随机起作用

片段A:

Navigation

片段B:

adapter

FragmentA适配器:

onClick

0 个答案:

没有答案