怎樣在Android4.4 下實(shí)現(xiàn)隱藏狀態(tài)欄圖標(biāo)
在Android4.4 下隱藏狀態(tài)欄圖標(biāo)(電池,信號(hào),時(shí)間),
路徑在:frameworks/base/packages/SystemUI/res/layout/status_bar.xml
只要在每個(gè)icon上加android:visibility="gone"
在項(xiàng)目中發(fā)現(xiàn),當(dāng)我左邊狀態(tài)欄下拉,在返回時(shí),發(fā)現(xiàn)時(shí)間的icon會(huì)重新出現(xiàn)在狀態(tài)欄中,
這時(shí)可以這樣改,把a(bǔ)ndroid:layout_width=“0dp” ?android:layout_height=“0dp”
可以把時(shí)間icon徹底隱藏,其他狀態(tài)欄icon類似。