我试图使片段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