The class LinearLayout
exists since API level 1, but some APIs were added after that, for example, setShowDividers
introduced on API level 11.
So in this case setShowDividers
(and it's parameters) should be invoked using LinearLayoutCompat
instead LinearLayout
if you are targeting a platform with API level below 11.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…