1.在状态栏的xml下加入类似的布局 具体实现在com.android.systemui.statusbar.policy.KeyButtonView
2.加入图片
3.在竖屏的时候默认隐藏,横屏的时候出现
android:contentDescription="@string/accessibility_recent"
systemui:glowBackground="@drawable/ic_sysbar_highlight"
/>
+ <com.android.systemui.statusbar.policy.KeyButtonView android:id="@+id/volume_down"
+ android:layout_width="80dp"
+ android:layout_height="match_parent"
+ android:src="@drawable/sub_normal"
+ systemui:keyCode="25"
+ systemui:keyRepeat="false"
+ android:layout_weight="0"
+ systemui:glowBackground="@drawable/ic_sysbar_highlight"
+ android:contentDescription="@string/accessibility_home"
+ />
+ <!-- <View
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:layout_weight="1"
+ android:visibility="invisible"
+ />-->
+ <com.android.systemui.statusbar.policy.KeyButtonView android:id="@+id/volume_up"
+ android:layout_width="80dp"
+ android:layout_height="match_parent"
+ android:src="@drawable/add_normal"
+ systemui:keyCode="24"
+ systemui:keyRepeat="false"
+ android:layout_weight="0"
+ systemui:glowBackground="@drawable/ic_sysbar_highlight"
+ android:contentDescription="@string/accessibility_home"
+ />
+ <!-- <View
+ android:layout_width=