1、syetemui状态栏半透明修改主要布局文件为status_bar.xml
可以在根布局加个半透明:android:background="#80000000"
修改super_status_bar.xml中的如下为。
修改前:
<include layout="@layout/status_bar"
android:layout_width="match_parent"
android:layout_height="@*android:dimen/status_bar_height"
/>
修改后:
<LinearLayout
android:id="@+id/statusbar_background"
android:layout_width="match_parent"
android:layout_height="@*android:dimen/status_bar_height"
android:orientation="vertical" >
<TextView
android:layout_height="0dp"
android:layout_width="1dp"
/>
<include layout="@layout/status_bar"
android:layout_width="match_parent"
android:layout_height="@*android:dimen/status_bar_height"
/>
</LinearLayout>
2、具体实现需要依靠底层,需要在底层加广播,像锁屏或activity类中,在systemui中主要修改PhoneStatusBar.java这个类
public static final String SCREEN_LOCK = "android.key