2017-09-08 6 views
2

내 맞춤형 AOSP 이미지에서 상태 표시 줄 (예 : 시계, 알림 등이 포함 된 위쪽 막대)을 숨기거나 제거하고 싶습니다.AOSP 빌드에서 상태 표시 줄을 숨기는 방법

실제로 가능한지 알고 계십니까? 그리고 어떻게 ?

<com.android.systemui.statusbar.phone.PhoneStatusBarView 
    xmlns:android="http://schemas.android.com/apk/res/android" 
    xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui" 
    android:layout_width="match_parent" 
    android:layout_height="@dimen/status_bar_height" 
    android:id="@+id/status_bar" 
    android:background="@drawable/system_bar_background" 
    android:orientation="vertical" 
    android:focusable="false" 
    android:descendantFocusability="afterDescendants" 
    > 

    <!-- […] --> 

</com.android.systemui.statusbar.phone.PhoneStatusBarView> 

당신은 (frameworks/base/core/res/res/values/dimens.xmlstatus_bar_height에 의해 정의) 0dp-com.android.systemui.statusbar.phone.PhoneStatusBarViewheight 설정을 시도 할 수 있거나 gone-visibility의 :

+0

이미지 뷰 (또는 무엇이든)를 선언하고 정의한 다음 object.setvisibility (View.GONE); –

+0

[SystemUIService]를 시작하지 않으려면 [이 답변] (https://stackoverflow.com/a/40754508/3290339) 도움이 될까요? – Onik

답변