<!--
  Copyright (C) 2006 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.
-->

<com.android.systemui.statusbar.tablet.NotificationPanelTitle
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui"
    android:id="@+id/title_area"
    android:background="@drawable/system_bar_notification_header_bg"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:clickable="true"
    android:orientation="vertical"
    android:paddingLeft="26dp"
    android:paddingTop="14dp"
    android:paddingRight="26dp"
    >

    <TableLayout
        android:id="@+id/icons"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_alignParentLeft="true"
        android:layout_alignParentBottom="true"
        android:layout_marginTop="16dp"
        android:layout_marginBottom="16dp"
        android:shrinkColumns="2,4"
        android:stretchColumns="7"
        >
        <TableRow>

            <!-- to keep the column ids stable we wrap disappearing views in
                 frames -->
            <FrameLayout
                android:layout_height="wrap_content"
                android:layout_width="wrap_content"
                android:layout_gravity="center_vertical"
                >
                <ImageView
                    android:id="@+id/bluetooth"
                    android:layout_height="wrap_content"
                    android:layout_width="wrap_content"
                    android:paddingRight="16dp"
                    android:visibility="gone"
                    android:contentDescription="@null"
                    android:layout_gravity="center_vertical"
                    />
            </FrameLayout>

            <!-- mobile data -->
            <FrameLayout
                android:id="@+id/mobile_icon"
                android:layout_height="wrap_content"
                android:layout_width="wrap_content"
                android:layout_gravity="center_vertical"
                android:paddingRight="6dp"
                >

                <ImageView
                    android:id="@+id/mobile_signal"
                    android:layout_height="wrap_content"
                    android:layout_width="wrap_content"
                    android:contentDescription="@null"
                    />

                <ImageView
                    android:id="@+id/mobile_type"
                    android:layout_height="wrap_content"
                    android:layout_width="wrap_content"
                    android:contentDescription="@null"
                    />

            </FrameLayout>
            <TextView
                android:id="@+id/mobile_text"
                style="@style/SystemBarNotificationText"
                android:layout_gravity="left|center_vertical"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:paddingRight="12dp"
                android:singleLine="true"
                android:ellipsize="end"
                android:text="@string/status_bar_settings_settings_button"
                />

            <!-- wifi -->
            <FrameLayout
                android:id="@+id/wifi_icon"
                android:layout_height="wrap_content"
                android:layout_width="wrap_content"
                android:layout_gravity="center_vertical"
                android:paddingRight="6dp"
                >

                <ImageView
                    android:id="@+id/wifi_signal"
                    android:layout_height="wrap_content"
                    android:layout_width="wrap_content"
                    android:contentDescription="@null"
                    />

                <ImageView
                    android:id="@+id/wifi_direction"
                    android:layout_height="wrap_content"
                    android:layout_width="wrap_content"
                    android:contentDescription="@null"
                    />

            </FrameLayout>
            <TextView
                android:id="@+id/wifi_text"
                style="@style/SystemBarNotificationText"
                android:layout_gravity="left|center_vertical"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:paddingRight="12dp"
                android:singleLine="true"
                android:ellipsize="end"
                android:text="@string/status_bar_settings_settings_button"
                />

            <ImageView
                android:id="@+id/battery"
                android:layout_height="wrap_content"
                android:layout_width="wrap_content"
                android:scaleType="centerInside"
                android:layout_gravity="center_vertical"
                android:layout_alignBaseline="@id/wifi_signal"
                android:paddingRight="6dp"
                android:contentDescription="@null"
                />

            <TextView
                android:id="@+id/battery_text"
                style="@style/SystemBarNotificationText"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_gravity="left|center_vertical"
                android:paddingRight="2dp"
                android:singleLine="true"
                android:text="@string/status_bar_settings_settings_button"
                />

            <!-- this will stretch to eat up available space -->
            <View
                android:layout_width="0dp"
                android:layout_height="0dp"
                />

            <FrameLayout
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_gravity="center_vertical"
                >

                <ImageView
                    android:id="@+id/settings_button"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:src="@drawable/ic_sysbar_quicksettings"
                    android:contentDescription="@string/accessibility_desc_quick_settings"
                    />

                <ImageView
                    android:id="@+id/notification_button"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:src="@drawable/ic_notification_open"
                    android:visibility="invisible"
                    android:contentDescription="@string/accessibility_notifications_button"
                    />
            </FrameLayout>

        </TableRow>
    </TableLayout>

    <LinearLayout
        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="wrap_content"
        android:paddingTop="@dimen/notification_panel_header_padding_top"
        android:orientation="horizontal"
        android:gravity="center_vertical"
        android:baselineAligned="false"
        >

        <com.android.systemui.statusbar.policy.Clock
            android:id="@+id/clock"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:singleLine="true"
            android:textAppearance="@style/TextAppearance.SystemBar.Expanded.Clock"
            />
    
        <com.android.systemui.statusbar.policy.DateView
            android:id="@+id/date"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_marginLeft="8dp"
            android:layout_marginRight="8dp"
            android:textAppearance="@style/TextAppearance.SystemBar.Expanded.Date"
            />

        <Space
            android:layout_width="0dp"
            android:layout_height="48dp"
            android:layout_weight="1"
            />

        <ImageView android:id="@+id/clear_all_button"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:scaleType="center"
            android:src="@drawable/ic_notify_clear"
            android:contentDescription="@string/accessibility_clear_all"
            />
    </LinearLayout>
</com.android.systemui.statusbar.tablet.NotificationPanelTitle>
