This adds a simplified recents view for devices that don't handle 3D well. Change-Id: I8307cd340caf1d65c8fce80eaf55a1d21bc64312
204 lines
8.4 KiB
XML
204 lines
8.4 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!--
|
|
* Copyright (C) 2010 The Android Open Source Project
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
-->
|
|
|
|
<!-- android:background="@drawable/status_bar_closed_default_background" -->
|
|
<com.android.systemui.statusbar.tablet.TabletStatusBarView
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui"
|
|
android:background="@drawable/status_bar_background"
|
|
>
|
|
<RelativeLayout
|
|
android:id="@+id/bar_contents"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
>
|
|
|
|
<ImageView
|
|
android:id="@+id/notificationTrigger"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="match_parent"
|
|
android:layout_alignParentRight="true"
|
|
android:layout_marginLeft="6dip"
|
|
android:src="@drawable/ic_sysbar_noti_none"
|
|
android:background="@drawable/ic_sysbar_icon_bg"
|
|
android:gravity="center"
|
|
/>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/notificationButtons"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="match_parent"
|
|
android:layout_toLeftOf="@+id/notificationTrigger"
|
|
android:gravity="center_vertical"
|
|
android:orientation="horizontal"
|
|
android:visibility="gone"
|
|
>
|
|
|
|
<TextView android:id="@+id/clear_all_button"
|
|
style="?android:attr/textAppearance"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="right|center_vertical"
|
|
android:layout_marginTop="2dip"
|
|
android:layout_marginBottom="1dip"
|
|
android:layout_marginRight="10dip"
|
|
android:padding="6dip"
|
|
android:textSize="14sp"
|
|
android:text="@string/status_bar_clear_all_button"
|
|
/>
|
|
|
|
<TextView android:id="@+id/do_not_disturb"
|
|
style="?android:attr/textAppearance"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="right|center_vertical"
|
|
android:layout_marginTop="2dip"
|
|
android:layout_marginBottom="1dip"
|
|
android:layout_marginRight="10dip"
|
|
android:padding="6dip"
|
|
android:textSize="14sp"
|
|
android:text="@string/status_bar_do_not_disturb_button"
|
|
/>
|
|
|
|
</LinearLayout>
|
|
|
|
<com.android.systemui.statusbar.tablet.NotificationIconArea
|
|
android:id="@+id/notificationIcons"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="match_parent"
|
|
android:layout_toLeftOf="@+id/notificationTrigger"
|
|
android:gravity="center_vertical"
|
|
android:orientation="horizontal"
|
|
>
|
|
<com.android.systemui.statusbar.tablet.InputMethodButton
|
|
android:id="@+id/imeButton"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="match_parent"
|
|
android:layout_marginLeft="8dip"
|
|
android:src="@drawable/ic_sysbar_ime_default"
|
|
android:background="@drawable/ic_sysbar_icon_bg"
|
|
android:visibility="invisible"
|
|
/>
|
|
<view
|
|
class="com.android.systemui.statusbar.tablet.NotificationIconArea$IconLayout"
|
|
android:id="@+id/icons"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="@*android:dimen/status_bar_icon_size"
|
|
android:layout_marginLeft="8dip"
|
|
/>
|
|
</com.android.systemui.statusbar.tablet.NotificationIconArea>
|
|
|
|
|
|
<FrameLayout
|
|
android:id="@+id/ticker"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="match_parent"
|
|
android:layout_alignParentRight="true"
|
|
android:layout_toRightOf="@+id/systemInfo"
|
|
android:paddingLeft="6dip"
|
|
android:gravity="center_vertical"
|
|
android:animateLayoutChanges="true"
|
|
/>
|
|
|
|
<include layout="@layout/status_bar_center"
|
|
android:layout_width="256dip"
|
|
android:layout_height="match_parent"
|
|
android:layout_centerInParent="true"
|
|
/>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/navigationArea"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="match_parent"
|
|
android:layout_alignParentLeft="true"
|
|
android:orientation="horizontal"
|
|
>
|
|
|
|
<com.android.systemui.statusbar.KeyButtonView android:id="@+id/back"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="match_parent"
|
|
android:paddingLeft="15dip"
|
|
android:paddingRight="15dip"
|
|
android:src="@drawable/status_bar_back"
|
|
android:background="@drawable/ic_sysbar_icon_bg"
|
|
systemui:keyCode="4"
|
|
/>
|
|
<com.android.systemui.statusbar.KeyButtonView android:id="@+id/home"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="match_parent"
|
|
android:paddingLeft="15dip"
|
|
android:paddingRight="15dip"
|
|
android:src="@drawable/ic_sysbar_home"
|
|
android:background="@drawable/ic_sysbar_icon_bg"
|
|
systemui:keyCode="3"
|
|
/>
|
|
<ImageButton android:id="@+id/recent_apps"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="match_parent"
|
|
android:src="@drawable/ic_sysbar_recent"
|
|
android:background="@drawable/ic_sysbar_icon_bg"
|
|
android:paddingLeft="15dip"
|
|
android:paddingRight="15dip"
|
|
/>
|
|
<com.android.systemui.statusbar.KeyButtonView android:id="@+id/menu"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="match_parent"
|
|
android:paddingLeft="15dip"
|
|
android:paddingRight="15dip"
|
|
android:src="@drawable/ic_sysbar_menu"
|
|
android:background="@drawable/ic_sysbar_icon_bg"
|
|
systemui:keyCode="82"
|
|
android:visibility="invisible"
|
|
/>
|
|
<com.android.systemui.statusbar.tablet.ShirtPocket
|
|
android:id="@+id/pocket"
|
|
android:layout_width="71dip"
|
|
android:layout_height="match_parent"
|
|
android:background="@drawable/ic_sysbar_icon_bg"
|
|
android:paddingLeft="15dip"
|
|
android:paddingRight="15dip"
|
|
android:animateLayoutChanges="true"
|
|
android:clickable="true"
|
|
android:descendantFocusability="blocksDescendants"
|
|
android:gravity="center"
|
|
>
|
|
<ImageView
|
|
android:id="@+id/pocket_icon"
|
|
android:src="@drawable/ic_sysbar_pocket"
|
|
android:visibility="invisible"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:gravity="center"
|
|
/>
|
|
</com.android.systemui.statusbar.tablet.ShirtPocket>
|
|
</LinearLayout>
|
|
</RelativeLayout>
|
|
|
|
<!-- It's curtains for you. -->
|
|
<ImageView
|
|
android:id="@+id/lights_out"
|
|
android:src="@drawable/ic_sysbar_lightsout"
|
|
android:gravity="center"
|
|
android:background="#FF000000"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:visibility="invisible"
|
|
android:clickable="true"
|
|
/>
|
|
</com.android.systemui.statusbar.tablet.TabletStatusBarView>
|
|
|