diff options
author | Jim Miller <jaggies@google.com> | 2011-05-23 20:48:36 -0700 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2011-05-23 20:48:36 -0700 |
commit | a0bb3acba1e848ac752eb5e1e3da1b0a6cc5d514 (patch) | |
tree | 45f55ed6e119f46273c7df2c5908451139473fd5 /packages/SystemUI/res/layout-sw600dp | |
parent | 23186b88bdfe6c602dce0bee40ffbf2253eb044c (diff) | |
parent | 59a3319ffce100d671145b5bfee7450038b250bf (diff) | |
download | frameworks_base-a0bb3acba1e848ac752eb5e1e3da1b0a6cc5d514.zip frameworks_base-a0bb3acba1e848ac752eb5e1e3da1b0a6cc5d514.tar.gz frameworks_base-a0bb3acba1e848ac752eb5e1e3da1b0a6cc5d514.tar.bz2 |
am 59a3319f: am 67cd389d: am 2c7906eb: Merge "Fix 4462474: Use new sw600dp resource target for LockScreen & SystemUI" into honeycomb-mr2
* commit '59a3319ffce100d671145b5bfee7450038b250bf':
Fix 4462474: Use new sw600dp resource target for LockScreen & SystemUI
Diffstat (limited to 'packages/SystemUI/res/layout-sw600dp')
15 files changed, 1376 insertions, 0 deletions
diff --git a/packages/SystemUI/res/layout-sw600dp/status_bar.xml b/packages/SystemUI/res/layout-sw600dp/status_bar.xml new file mode 100644 index 0000000..d9f3f23 --- /dev/null +++ b/packages/SystemUI/res/layout-sw600dp/status_bar.xml @@ -0,0 +1,141 @@ +<?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. +--> + +<!-- TabletStatusBarView extends FrameLayout --> +<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" + > + + <FrameLayout + android:id="@+id/bar_contents_holder" + android:layout_width="match_parent" + android:layout_height="@*android:dimen/status_bar_height" + android:layout_gravity="bottom" + > + <RelativeLayout + android:id="@+id/bar_contents" + android:layout_width="match_parent" + android:layout_height="match_parent" + > + + <!-- notification icons & panel access --> + <include layout="@layout/status_bar_notification_area" + android:layout_width="wrap_content" + android:layout_height="match_parent" + android:layout_alignParentRight="true" + android:layout_marginTop="1dp" + /> + + <!-- navigation controls --> + <com.android.systemui.statusbar.policy.KeyButtonView android:id="@+id/back" + android:layout_width="80dip" + android:layout_height="match_parent" + android:src="@drawable/ic_sysbar_back" + android:layout_alignParentLeft="true" + systemui:keyCode="4" + /> + <LinearLayout + android:id="@+id/navigationArea" + android:layout_width="wrap_content" + android:layout_height="match_parent" + android:layout_toRightOf="@+id/back" + android:orientation="horizontal" + > + <com.android.systemui.statusbar.policy.KeyButtonView android:id="@+id/home" + android:layout_width="80dip" + android:layout_height="match_parent" + android:src="@drawable/ic_sysbar_home" + systemui:keyCode="3" + /> + <ImageView android:id="@+id/recent_apps" + android:layout_width="80dip" + android:layout_height="match_parent" + android:src="@drawable/ic_sysbar_recent" + /> + <com.android.systemui.statusbar.policy.KeyButtonView android:id="@+id/menu" + android:layout_width="80dip" + android:layout_height="match_parent" + android:src="@drawable/ic_sysbar_menu" + systemui:keyCode="82" + android:visibility="invisible" + /> + </LinearLayout> + + <!-- fake space bar zone --> + <com.android.systemui.statusbar.policy.EventHole android:id="@+id/fake_space_bar" + android:layout_height="match_parent" + android:layout_width="0dp" + android:paddingLeft="8dip" + android:paddingRight="8dip" + android:layout_toRightOf="@+id/navigationArea" + android:layout_toLeftOf="@+id/notificationArea" + android:visibility="gone" + /> + </RelativeLayout> + </FrameLayout> + + <FrameLayout + android:id="@+id/bar_shadow_holder" + android:layout_width="match_parent" + android:layout_height="@*android:dimen/status_bar_height" + android:layout_gravity="bottom" + > + <!-- lights out shade --> + <RelativeLayout + android:id="@+id/bar_shadow" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:background="#FF000000" + android:visibility="gone" + > + <ImageView + android:id="@+id/dot0" + android:layout_width="80dip" + android:layout_height="48dip" + android:src="@drawable/ic_sysbar_lights_out_dot_small" + android:layout_alignParentLeft="true" + android:layout_alignParentBottom="true" + /> + <ImageView + android:id="@+id/dot1" + android:layout_width="80dip" + android:layout_height="48dip" + android:src="@drawable/ic_sysbar_lights_out_dot_large" + android:layout_toRightOf="@+id/dot0" + android:layout_alignParentBottom="true" + /> + <ImageView + android:id="@+id/dot2" + android:layout_width="80dip" + android:layout_height="48dip" + android:src="@drawable/ic_sysbar_lights_out_dot_small" + android:layout_toRightOf="@+id/dot1" + android:layout_alignParentBottom="true" + /> + <ImageView + android:id="@+id/dot3" + android:layout_width="80dip" + android:layout_height="48dip" + android:src="@drawable/ic_sysbar_lights_out_dot_small" + android:layout_alignParentRight="true" + android:layout_alignParentBottom="true" + /> + </RelativeLayout> + </FrameLayout> +</com.android.systemui.statusbar.tablet.TabletStatusBarView> diff --git a/packages/SystemUI/res/layout-sw600dp/status_bar_input_methods_item.xml b/packages/SystemUI/res/layout-sw600dp/status_bar_input_methods_item.xml new file mode 100644 index 0000000..3fef7e0 --- /dev/null +++ b/packages/SystemUI/res/layout-sw600dp/status_bar_input_methods_item.xml @@ -0,0 +1,103 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +/* +** Copyright 2011, 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. +*/ +--> + +<LinearLayout + xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:minHeight="?android:attr/listPreferredItemHeight" + android:background="@drawable/status_bar_item_background" + android:orientation="vertical" + android:paddingRight="6dip" + android:paddingLeft="6dip" + android:paddingTop="5dip" + android:paddingBottom="5dip" + android:gravity="center_vertical"> + <LinearLayout + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_weight="1" + android:gravity="center_vertical" + android:orientation="horizontal"> + <LinearLayout + android:id="@+id/item_subtype" + android:layout_width="wrap_content" + android:layout_height="match_parent" + android:layout_weight="1" + android:gravity="center_vertical" + android:orientation="horizontal" + android:background="?android:attr/selectableItemBackground"> + <RadioButton + android:id="@+id/item_radio" + android:layout_width="30dip" + android:layout_height="wrap_content" + android:focusable="false" + android:clickable="false" /> + <ImageView + android:id="@+id/item_icon" + android:layout_width="@android:dimen/app_icon_size" + android:layout_height="wrap_content" + android:scaleType="fitCenter" /> + <LinearLayout + android:orientation="vertical" + android:layout_width="0px" + android:layout_weight="1" + android:layout_height="wrap_content"> + <TextView + android:id="@+id/item_title" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:textAppearance="?android:attr/textAppearanceMedium" + android:singleLine="true" + android:ellipsize="marquee" + android:layout_marginBottom="2dip" /> + <TextView + android:id="@+id/item_subtitle" + android:layout_marginTop="-4dip" + android:layout_gravity="center_vertical|left" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:textAppearance="?android:attr/textAppearanceSmall" /> + </LinearLayout> + </LinearLayout> + <View + android:id="@+id/item_vertical_separator" + android:layout_width="2dip" + android:layout_height="match_parent" + android:layout_marginBottom="5dip" + android:background="@android:drawable/divider_horizontal_dark" /> + <ImageView + android:id="@+id/item_settings_icon" + android:layout_width="wrap_content" + android:layout_height="match_parent" + android:layout_marginLeft="5dip" + android:layout_gravity="center_vertical" + android:paddingRight="10dip" + android:paddingLeft="10dip" + android:src="@drawable/ic_sysbar_quicksettings" + android:visibility="visible" + android:clickable="true" + android:focusable="true" + android:background="?android:attr/selectableItemBackground" /> + </LinearLayout> + <View + android:layout_width="match_parent" + android:layout_height="1dip" + android:background="@android:drawable/divider_horizontal_dark" /> +</LinearLayout>
\ No newline at end of file diff --git a/packages/SystemUI/res/layout-sw600dp/status_bar_input_methods_panel.xml b/packages/SystemUI/res/layout-sw600dp/status_bar_input_methods_panel.xml new file mode 100644 index 0000000..f6ed804 --- /dev/null +++ b/packages/SystemUI/res/layout-sw600dp/status_bar_input_methods_panel.xml @@ -0,0 +1,117 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +** +** Copyright 2011, 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.InputMethodsPanel + xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_height="match_parent" + android:layout_width="match_parent" + android:paddingBottom="28dip" + android:orientation="vertical" + android:visibility="gone"> + <View + android:layout_width="match_parent" + android:layout_height="0dip" + android:layout_weight="1" /> + <FrameLayout + android:id="@+id/glow" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:background="@drawable/recents_blue_glow"> + <LinearLayout + android:layout_width="450dip" + android:layout_height="wrap_content" + android:layout_marginLeft="20dip" + android:orientation="vertical" + android:background="@*android:drawable/dialog_full_holo_dark"> + <!-- Hard keyboard switch --> + <LinearLayout + android:id="@+id/hard_keyboard_section" + android:layout_height="wrap_content" + android:layout_width="match_parent" + android:orientation="vertical"> + <LinearLayout + android:layout_height="wrap_content" + android:layout_width="match_parent" + android:orientation="horizontal"> + <TextView + android:id="@+id/use_physical_keyboard_label" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_weight="1" + android:minHeight="?android:attr/listPreferredItemHeight" + android:background="?android:attr/selectableItemBackground" + android:orientation="vertical" + android:paddingRight="6dip" + android:paddingLeft="30dip" + android:paddingTop="5dip" + android:paddingBottom="5dip" + android:gravity="center_vertical" + android:singleLine="true" + android:text="@string/status_bar_use_physical_keyboard" + android:textAppearance="?android:attr/textAppearanceMedium" + android:ellipsize="marquee" /> + <Switch + android:id="@+id/hard_keyboard_switch" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="center_vertical" + android:layout_marginRight="16dip" /> + </LinearLayout> + <View + android:layout_width="match_parent" + android:layout_height="1dip" + android:background="@android:drawable/divider_horizontal_dark" /> + </LinearLayout> + + <!-- Input method list --> + <ScrollView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:overScrollMode="ifContentScrolls" + android:layout_marginTop="3dip" + android:layout_weight="1" + android:scrollbarAlwaysDrawVerticalTrack="true" + android:scrollbarDefaultDelayBeforeFade="75000"> + <LinearLayout + android:id="@+id/input_method_menu_list" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:orientation="vertical" /> + </ScrollView> + + <!-- Configure input methods --> + <TextView + android:id="@+id/ime_settings_shortcut" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:minHeight="?android:attr/listPreferredItemHeight" + android:background="?android:attr/selectableItemBackground" + android:orientation="vertical" + android:paddingRight="6dip" + android:paddingLeft="30dip" + android:paddingTop="5dip" + android:paddingBottom="5dip" + android:gravity="center_vertical" + android:singleLine="true" + android:text="@string/status_bar_input_method_settings_configure_input_methods" + android:textAppearance="?android:attr/textAppearanceMedium" + android:ellipsize="marquee" /> + </LinearLayout> + </FrameLayout> +</com.android.systemui.statusbar.tablet.InputMethodsPanel>
\ No newline at end of file diff --git a/packages/SystemUI/res/layout-sw600dp/status_bar_notification_area.xml b/packages/SystemUI/res/layout-sw600dp/status_bar_notification_area.xml new file mode 100644 index 0000000..f53b29e --- /dev/null +++ b/packages/SystemUI/res/layout-sw600dp/status_bar_notification_area.xml @@ -0,0 +1,147 @@ +<?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. +--> + +<!-- notification icons & panel access --> +<LinearLayout + xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui" + android:id="@+id/notificationArea" + android:layout_width="wrap_content" + android:layout_height="match_parent" + android:layout_alignParentRight="true" + android:orientation="horizontal" + > + + <LinearLayout + android:id="@+id/notificationAndImeArea" + android:layout_width="wrap_content" + android:layout_height="match_parent" + android:orientation="horizontal" + > + + <com.android.systemui.statusbar.tablet.InputMethodButton + android:id="@+id/imeSwitchButton" + android:layout_width="wrap_content" + android:layout_height="match_parent" + android:layout_marginLeft="8dip" + android:src="@drawable/ic_sysbar_ime_default" + android:visibility="gone" + /> + + <com.android.systemui.statusbar.tablet.NotificationIconArea + android:id="@+id/notificationIcons" + android:layout_width="wrap_content" + android:layout_height="match_parent" + > + <view + class="com.android.systemui.statusbar.tablet.NotificationIconArea$IconLayout" + android:id="@+id/icons" + android:layout_width="wrap_content" + android:layout_height="match_parent" + android:layout_gravity="center_vertical" + android:layout_marginLeft="8dp" + /> + <View + android:layout_width="match_parent" + android:layout_height="match_parent" + android:layout_alignLeft="@id/icons" + android:layout_alignRight="@id/icons" + android:background="@drawable/notification_icon_area_smoke" + android:clickable="false" + /> + </com.android.systemui.statusbar.tablet.NotificationIconArea> + </LinearLayout> + + <LinearLayout + android:id="@+id/notificationTrigger" + android:layout_width="wrap_content" + android:layout_height="match_parent" + android:gravity="center" + > + <com.android.systemui.statusbar.tablet.HoloClock + android:id="@+id/clock" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginBottom="3dip" + android:layout_marginLeft="4dip" + android:layout_marginRight="4dip" + > + <TextView android:id="@+id/time_solid" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:singleLine="true" + android:textSize="40sp" + android:textColor="#ff525e79" /> + </com.android.systemui.statusbar.tablet.HoloClock> + + <TextView + android:id="@+id/network_text" + android:layout_width="wrap_content" + android:layout_height="match_parent" + android:layout_marginRight="6dip" + android:layout_marginLeft="6dip" + android:gravity="center" + android:singleLine="true" + android:visibility="gone" + android:textSize="16sp" + android:textColor="#606060" + /> + + <LinearLayout + android:id="@+id/signal_battery_cluster" + android:layout_width="wrap_content" + android:layout_height="match_parent" + android:layout_marginRight="16dp" + android:orientation="horizontal" + android:gravity="center" + > + <ImageView + android:id="@+id/bluetooth" + android:layout_height="wrap_content" + android:layout_width="wrap_content" + android:visibility="gone" + /> + <FrameLayout + android:layout_height="wrap_content" + android:layout_width="wrap_content" + android:layout_marginRight="4dp" + > + <ImageView + android:id="@+id/network_signal" + android:layout_height="wrap_content" + android:layout_width="wrap_content" + /> + <ImageView + android:id="@+id/network_type" + android:layout_height="wrap_content" + android:layout_width="wrap_content" + /> + <ImageView + android:id="@+id/network_direction" + android:layout_height="wrap_content" + android:layout_width="wrap_content" + /> + </FrameLayout> + <ImageView + android:id="@+id/battery" + android:layout_height="wrap_content" + android:layout_width="wrap_content" + /> + </LinearLayout> + </LinearLayout> +</LinearLayout> + diff --git a/packages/SystemUI/res/layout-sw600dp/status_bar_notification_panel.xml b/packages/SystemUI/res/layout-sw600dp/status_bar_notification_panel.xml new file mode 100644 index 0000000..ef57228 --- /dev/null +++ b/packages/SystemUI/res/layout-sw600dp/status_bar_notification_panel.xml @@ -0,0 +1,74 @@ +<!-- + 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. +--> + +<!-- android:background="@drawable/status_bar_closed_default_background" --> +<com.android.systemui.statusbar.tablet.NotificationPanel + xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui" + android:id="@+id/panel_root" + android:layout_height="match_parent" + android:layout_width="match_parent" + android:gravity="right" + android:background="@drawable/notify_panel_bg_protect_tiled" + > + + <RelativeLayout + android:id="@+id/content_parent" + android:layout_height="wrap_content" + android:layout_width="match_parent" + android:layout_alignParentBottom="true" + android:layout_alignParentRight="true" + android:layout_marginBottom="-27dip" + > + + <include layout="@layout/status_bar_notification_panel_title" + android:layout_width="471dp" + android:layout_height="465dp" + android:layout_alignParentTop="true" + android:layout_alignParentRight="true" + /> + + <LinearLayout + android:id="@+id/content_frame" + android:background="@drawable/notify_panel_notify_bg" + android:layout_height="wrap_content" + android:layout_width="447dp" + android:orientation="vertical" + android:layout_alignParentRight="true" + android:layout_alignParentTop="true" + android:layout_marginTop="352dp" + > + <ScrollView + android:id="@+id/notification_scroller" + android:layout_height="wrap_content" + android:layout_width="match_parent" + android:layout_weight="1" + > + <LinearLayout + android:id="@+id/content" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:gravity="center_horizontal|bottom" + android:orientation="vertical" + android:clickable="true" + android:focusable="true" + android:descendantFocusability="afterDescendants" + /> + </ScrollView> + </LinearLayout> + </RelativeLayout> + +</com.android.systemui.statusbar.tablet.NotificationPanel> diff --git a/packages/SystemUI/res/layout-sw600dp/status_bar_notification_panel_title.xml b/packages/SystemUI/res/layout-sw600dp/status_bar_notification_panel_title.xml new file mode 100644 index 0000000..543f4ed --- /dev/null +++ b/packages/SystemUI/res/layout-sw600dp/status_bar_notification_panel_title.xml @@ -0,0 +1,182 @@ +<!-- + 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. +--> + +<RelativeLayout + 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:layout_width="0dp" + android:layout_height="0dp" + android:orientation="vertical" + android:background="@drawable/notify_panel_clock_bg" + > + <LinearLayout + android:id="@+id/icons" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_alignParentLeft="true" + android:layout_alignParentBottom="true" + android:baselineAlignedChildIndex="0" + android:layout_marginLeft="32dp" + android:layout_marginTop="16dp" + android:layout_marginBottom="16dp" + > + <ImageView + android:id="@+id/bluetooth" + android:layout_height="32dp" + android:layout_width="32dp" + android:scaleType="centerInside" + android:baseline="22dp" + android:visibility="gone" + /> + + <FrameLayout + android:id="@+id/netwerk" + android:layout_height="32dp" + android:layout_width="32dp" + android:layout_marginRight="4dp" + > + <ImageView + android:id="@+id/network_signal" + android:layout_height="match_parent" + android:layout_width="match_parent" + /> + <ImageView + android:id="@+id/network_type" + android:layout_height="match_parent" + android:layout_width="match_parent" + /> + <ImageView + android:id="@+id/network_direction" + android:layout_height="match_parent" + android:layout_width="match_parent" + /> + </FrameLayout> + + <TextView + android:id="@+id/network_text" + style="@style/StatusBarNotificationText" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_toRightOf="@id/netwerk" + android:layout_marginRight="8dp" + android:layout_alignBaseline="@id/network_signal" + android:singleLine="true" + android:text="@string/status_bar_settings_settings_button" + /> + + <ImageView + android:id="@+id/battery" + android:layout_height="32dp" + android:layout_width="32dp" + android:scaleType="centerInside" + android:layout_toRightOf="@id/network_text" + android:layout_alignBaseline="@id/network_signal" + android:baseline="22dp" + /> + + <TextView + android:id="@+id/battery_text" + style="@style/StatusBarNotificationText" + android:layout_width="56dp" + android:layout_height="wrap_content" + android:layout_toRightOf="@id/battery" + android:layout_alignBaseline="@id/battery" + android:layout_marginRight="8dp" + android:singleLine="true" + android:text="@string/status_bar_settings_settings_button" + /> + </LinearLayout> + + <ImageView + android:id="@+id/settings_button" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_alignBaseline="@id/icons" + android:layout_alignParentRight="true" + android:paddingRight="16dp" + android:src="@drawable/ic_sysbar_quicksettings" + android:baseline="21dp" + /> + + <ImageView + android:id="@+id/notification_button" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_alignBaseline="@id/icons" + android:layout_alignParentRight="true" + android:paddingRight="16dp" + android:src="@drawable/ic_notification_open" + android:baseline="21dp" + android:visibility="invisible" + /> + + <View + android:id="@+id/title_divider" + android:layout_width="match_parent" + android:layout_height="1dp" + android:layout_marginLeft="32dp" + android:layout_alignParentRight="true" + android:layout_alignParentBottom="true" + android:layout_marginBottom="64dip" + android:background="@android:drawable/divider_horizontal_dark" + /> + + <com.android.systemui.statusbar.tablet.HoloClock + android:id="@+id/clock" + android:layout_height="wrap_content" + android:layout_width="match_parent" + android:layout_alignParentRight="true" + android:layout_above="@id/title_divider" + android:layout_marginRight="6dip" + android:layout_marginBottom="8dip" + > + <TextView android:id="@+id/time_bg" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:gravity="right" + android:singleLine="true" + android:textSize="78sp" + android:textColor="#999999" /> + <TextView android:id="@+id/time_fg" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:gravity="right" + android:singleLine="true" + android:textSize="78sp" + android:textColor="#666666" /> + </com.android.systemui.statusbar.tablet.HoloClock> + + <com.android.systemui.statusbar.policy.DateView + android:id="@+id/date" + style="@style/StatusBarNotificationText" + android:layout_height="wrap_content" + android:layout_width="120dp" + android:layout_alignBottom="@id/clock" + android:layout_alignParentLeft="true" + android:gravity="left" + android:layout_marginLeft="32dp" + /> + + <view + class="com.android.systemui.statusbar.tablet.NotificationPanel$ModeToggle" + android:id="@+id/mode_toggle" + android:background="@null" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:clickable="true" + /> +</RelativeLayout> diff --git a/packages/SystemUI/res/layout-sw600dp/status_bar_notification_peek.xml b/packages/SystemUI/res/layout-sw600dp/status_bar_notification_peek.xml new file mode 100644 index 0000000..02f9a90 --- /dev/null +++ b/packages/SystemUI/res/layout-sw600dp/status_bar_notification_peek.xml @@ -0,0 +1,43 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +/* apps/common/assets/default/default/skins/StatusBar.xml +** +** Copyright 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. +*/ +--> + +<!-- android:background="@drawable/status_bar_closed_default_background" --> +<com.android.systemui.statusbar.tablet.NotificationPeekPanel + xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_height="wrap_content" + android:layout_width="match_parent" + android:background="@*android:drawable/dialog_full_holo_dark" + android:orientation="vertical" + > + + <FrameLayout + android:id="@+id/content" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:gravity="center_horizontal|bottom" + android:animationCache="false" + android:orientation="vertical" + android:background="@drawable/status_bar_background" + android:clickable="true" + android:focusable="true" + android:descendantFocusability="afterDescendants" + > + </FrameLayout> +</com.android.systemui.statusbar.tablet.NotificationPeekPanel> diff --git a/packages/SystemUI/res/layout-sw600dp/status_bar_notification_row.xml b/packages/SystemUI/res/layout-sw600dp/status_bar_notification_row.xml new file mode 100644 index 0000000..8e456b2 --- /dev/null +++ b/packages/SystemUI/res/layout-sw600dp/status_bar_notification_row.xml @@ -0,0 +1,45 @@ +<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="65dp" + > + + <ImageButton + android:id="@+id/veto" + android:layout_width="48dp" + android:layout_height="match_parent" + android:layout_centerVertical="true" + android:layout_alignParentRight="true" + android:src="@drawable/status_bar_veto" + android:scaleType="center" + android:background="@null" + android:paddingRight="8dp" + android:paddingLeft="8dp" + /> + + <ImageView + android:id="@+id/large_icon" + android:layout_width="@android:dimen/notification_large_icon_width" + android:layout_height="@android:dimen/notification_large_icon_height" + android:layout_alignParentTop="true" + android:layout_alignParentLeft="true" + android:scaleType="center" + /> + + <com.android.systemui.statusbar.LatestItemView android:id="@+id/content" + android:layout_width="match_parent" + android:layout_height="64dp" + android:layout_alignParentTop="true" + android:layout_toRightOf="@id/large_icon" + android:layout_toLeftOf="@id/veto" + android:focusable="true" + android:clickable="true" + /> + + <View + android:layout_width="match_parent" + android:layout_height="1dp" + android:layout_alignParentBottom="true" + android:background="@android:drawable/divider_horizontal_dark" + /> + +</RelativeLayout> diff --git a/packages/SystemUI/res/layout-sw600dp/status_bar_pocket_panel.xml b/packages/SystemUI/res/layout-sw600dp/status_bar_pocket_panel.xml new file mode 100644 index 0000000..e4a6da4 --- /dev/null +++ b/packages/SystemUI/res/layout-sw600dp/status_bar_pocket_panel.xml @@ -0,0 +1,61 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +/* apps/common/assets/default/default/skins/StatusBar.xml +** +** Copyright 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. +*/ +--> + +<RelativeLayout + xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_height="match_parent" + android:layout_width="match_parent" + android:background="@*android:drawable/dialog_full_holo_dark" + > + <TextView + android:id="@+id/description" + android:textAppearance="@android:style/TextAppearance.Small" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:gravity="center" + android:textStyle="bold" + android:maxLines="1" + android:layout_alignParentBottom="true" + /> + + <FrameLayout + android:id="@+id/preview" + android:layout_height="match_parent" + android:layout_width="match_parent" + android:layout_above="@+id/description" + android:descendantFocusability="blocksDescendants" + > + <ImageView + android:id="@+id/icon" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:scaleType="centerInside" + android:visibility="gone" + /> + <TextView + android:id="@+id/alt" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:textAppearance="@android:style/TextAppearance.Large" + android:gravity="center" + android:visibility="gone" + /> + </FrameLayout> +</RelativeLayout> diff --git a/packages/SystemUI/res/layout-sw600dp/status_bar_recent_item.xml b/packages/SystemUI/res/layout-sw600dp/status_bar_recent_item.xml new file mode 100644 index 0000000..cd42d7e --- /dev/null +++ b/packages/SystemUI/res/layout-sw600dp/status_bar_recent_item.xml @@ -0,0 +1,90 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +/* apps/common/assets/default/default/skins/StatusBar.xml +** +** Copyright 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. +*/ +--> + +<!-- android:background="@drawable/status_bar_closed_default_background" --> +<RelativeLayout + xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_height="wrap_content" + android:layout_width="@dimen/status_bar_recents_thumbnail_view_width"> + + <ImageView android:id="@+id/app_thumbnail" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_alignParentLeft="true" + android:layout_alignParentTop="true" + android:layout_marginLeft="@dimen/status_bar_recents_thumbnail_left_margin" + android:scaleType="center" + /> + + <ImageView android:id="@+id/app_icon" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_alignParentLeft="true" + android:layout_alignParentTop="true" + android:layout_marginLeft="131dip" + android:layout_marginTop="13dip" + android:maxWidth="@dimen/status_bar_recents_thumbnail_max_width" + android:maxHeight="@dimen/status_bar_recents_thumbnail_max_height" + android:adjustViewBounds="true" + /> + + <View android:id="@+id/recents_callout_line" + android:layout_width="97dip" + android:layout_height="1dip" + android:layout_alignParentTop="true" + android:layout_marginTop="61dip" + android:layout_alignParentLeft="true" + android:layout_marginLeft="16dip" + android:layout_toLeftOf="@id/app_thumbnail" + android:layout_marginRight="3dip" + android:background="@drawable/recents_callout_line" + /> + + <TextView android:id="@+id/app_label" + android:layout_width="97dip" + android:layout_height="wrap_content" + android:textSize="@dimen/status_bar_recents_app_description_text_size" + android:fadingEdge="horizontal" + android:fadingEdgeLength="@dimen/status_bar_recents_fading_edge_length" + android:scrollHorizontally="true" + android:layout_alignParentLeft="true" + android:layout_alignParentTop="true" + android:layout_marginLeft="16dip" + android:layout_marginTop="32dip" + android:singleLine="true" + android:ellipsize="marquee" + /> + + <TextView android:id="@+id/app_description" + android:layout_width="97dip" + android:layout_height="wrap_content" + android:textSize="@dimen/status_bar_recents_app_description_text_size" + android:fadingEdge="horizontal" + android:fadingEdgeLength="@dimen/status_bar_recents_fading_edge_length" + android:scrollHorizontally="true" + android:layout_alignParentLeft="true" + android:layout_alignParentTop="true" + android:layout_marginLeft="16dip" + android:layout_marginTop="61dip" + android:singleLine="true" + android:ellipsize="marquee" + /> + +</RelativeLayout> diff --git a/packages/SystemUI/res/layout-sw600dp/status_bar_recent_panel.xml b/packages/SystemUI/res/layout-sw600dp/status_bar_recent_panel.xml new file mode 100644 index 0000000..75fdc67 --- /dev/null +++ b/packages/SystemUI/res/layout-sw600dp/status_bar_recent_panel.xml @@ -0,0 +1,85 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +/* apps/common/assets/default/default/skins/StatusBar.xml +** +** Copyright 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. +*/ +--> + +<com.android.systemui.recent.RecentsPanelView + xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@+id/recents_root" + android:layout_height="match_parent" + android:layout_width="wrap_content" + android:clipToPadding="false" + android:clipChildren="false"> + + <FrameLayout + android:id="@+id/recents_bg_protect" + android:background="@drawable/recents_bg_protect_tile" + android:layout_width="wrap_content" + android:layout_height="match_parent" + android:layout_alignParentBottom="true" + android:paddingBottom="@*android:dimen/status_bar_height" + android:clipToPadding="false" + android:clipChildren="false"> + + <LinearLayout android:id="@+id/recents_glow" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginBottom="-49dip" + android:layout_gravity="bottom" + android:background="@drawable/recents_blue_glow" + android:orientation="horizontal" + android:clipToPadding="false" + android:clipChildren="false" + > + <com.android.systemui.recent.RecentsVerticalScrollView android:id="@+id/recents_container" + android:layout_width="@dimen/status_bar_recents_width" + android:layout_height="wrap_content" + android:layout_marginRight="@dimen/status_bar_recents_right_glow_margin" + android:divider="@null" + android:stackFromBottom="true" + android:fadingEdge="vertical" + android:scrollbars="none" + android:fadingEdgeLength="20dip" + android:layout_gravity="bottom|left" + android:listSelector="@drawable/recents_thumbnail_bg_selector" + android:clipToPadding="false" + android:clipChildren="false"> + + <LinearLayout android:id="@+id/recents_linear_layout" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:orientation="vertical" + android:clipToPadding="false" + android:clipChildren="false"> + </LinearLayout> + + </com.android.systemui.recent.RecentsVerticalScrollView> + + </LinearLayout> + + </FrameLayout> + + <View android:id="@+id/recents_dismiss_button" + android:layout_width="80px" + android:layout_height="@*android:dimen/status_bar_height" + android:layout_alignParentBottom="true" + android:layout_alignParentLeft="true" + android:background="@drawable/ic_sysbar_back_ime" + /> + +</com.android.systemui.recent.RecentsPanelView> diff --git a/packages/SystemUI/res/layout-sw600dp/status_bar_recent_panel_footer.xml b/packages/SystemUI/res/layout-sw600dp/status_bar_recent_panel_footer.xml new file mode 100644 index 0000000..4d14d1f --- /dev/null +++ b/packages/SystemUI/res/layout-sw600dp/status_bar_recent_panel_footer.xml @@ -0,0 +1,25 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +/* apps/common/assets/default/default/skins/StatusBar.xml +** +** Copyright 2011, 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. +*/ +--> + +<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@+id/listview_footer_padding" + android:layout_height="24dip" + android:layout_width="match_parent"> +</FrameLayout> diff --git a/packages/SystemUI/res/layout-sw600dp/status_bar_settings_view.xml b/packages/SystemUI/res/layout-sw600dp/status_bar_settings_view.xml new file mode 100644 index 0000000..677988d --- /dev/null +++ b/packages/SystemUI/res/layout-sw600dp/status_bar_settings_view.xml @@ -0,0 +1,155 @@ +<?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. +--> + +<com.android.systemui.statusbar.tablet.SettingsView + 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:orientation="vertical" + > + + <!-- Airplane mode --> + <LinearLayout + android:id="@+id/airplane" + style="@style/StatusBarPanelSettingsRow" + > + <ImageView + android:id="@+id/airplane_icon" + style="@style/StatusBarPanelSettingsIcon" + android:src="@drawable/ic_sysbar_airplane_on" + /> + <TextView + android:id="@+id/airplane_label" + style="@style/StatusBarPanelSettingsContents" + android:text="@string/status_bar_settings_airplane" + /> + <Switch + android:id="@+id/airplane_checkbox" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="center_vertical" + android:layout_marginRight="5dp" + /> + </LinearLayout> + <View style="@style/StatusBarPanelSettingsPanelSeparator" /> + + <!-- Network --> + <LinearLayout + android:id="@+id/network" + style="@style/StatusBarPanelSettingsRow" + > + <ImageView + android:id="@+id/network_icon" + style="@style/StatusBarPanelSettingsIcon" + android:src="@drawable/ic_sysbar_wifi_on" + /> + <TextView + android:id="@+id/network_label" + style="@style/StatusBarPanelSettingsContents" + android:text="@string/status_bar_settings_wifi_button" + /> + </LinearLayout> + <View style="@style/StatusBarPanelSettingsPanelSeparator" /> + + <!-- Rotation lock --> + <LinearLayout + android:id="@+id/rotate" + style="@style/StatusBarPanelSettingsRow" + > + <ImageView + android:id="@+id/rotate_icon" + style="@style/StatusBarPanelSettingsIcon" + android:src="@drawable/ic_sysbar_rotate_on" + /> + <TextView + android:id="@+id/rotate_label" + style="@style/StatusBarPanelSettingsContents" + android:text="@string/status_bar_settings_auto_rotation" + /> + <Switch + android:id="@+id/rotate_checkbox" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="center_vertical" + android:layout_marginRight="5dp" + /> + </LinearLayout> + <View style="@style/StatusBarPanelSettingsPanelSeparator" /> + + <!-- Brightness --> + <LinearLayout style="@style/StatusBarPanelSettingsRow" > + <ImageView + android:id="@+id/brightness_icon" + style="@style/StatusBarPanelSettingsIcon" + android:src="@drawable/ic_sysbar_brightness" + /> + <com.android.systemui.statusbar.policy.ToggleSlider + android:id="@+id/brightness" + android:layout_width="0dp" + android:layout_height="fill_parent" + android:layout_weight="1" + android:layout_marginRight="2dp" + systemui:text="@string/status_bar_settings_auto_brightness_label" + /> + </LinearLayout> + <View style="@style/StatusBarPanelSettingsPanelSeparator" /> + + <!-- Notifications / Do not disturb --> + <LinearLayout + android:id="@+id/do_not_disturb" + style="@style/StatusBarPanelSettingsRow" + > + <ImageView + android:id="@+id/do_not_disturb_icon" + style="@style/StatusBarPanelSettingsIcon" + android:src="@drawable/ic_notification_open" + /> + <TextView + style="@style/StatusBarPanelSettingsContents" + android:text="@string/status_bar_settings_notifications" + /> + <Switch + android:id="@+id/do_not_disturb_checkbox" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="center_vertical" + android:layout_marginRight="5dp" + /> + </LinearLayout> + <View style="@style/StatusBarPanelSettingsPanelSeparator" /> + + <!-- Link to settings --> + <LinearLayout + android:id="@+id/settings" + style="@style/StatusBarPanelSettingsRow" + > + + <ImageView + android:id="@+id/settings" + style="@style/StatusBarPanelSettingsIcon" + android:src="@drawable/ic_sysbar_quicksettings" + /> + <TextView + style="@style/StatusBarPanelSettingsContents" + android:text="@string/status_bar_settings_settings_button" + /> + </LinearLayout> + <View style="@style/StatusBarPanelSettingsPanelSeparator" /> + +</com.android.systemui.statusbar.tablet.SettingsView> + diff --git a/packages/SystemUI/res/layout-sw600dp/status_bar_ticker_compat.xml b/packages/SystemUI/res/layout-sw600dp/status_bar_ticker_compat.xml new file mode 100644 index 0000000..d963de1 --- /dev/null +++ b/packages/SystemUI/res/layout-sw600dp/status_bar_ticker_compat.xml @@ -0,0 +1,67 @@ +<?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. +--> + +<LinearLayout + xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:orientation="horizontal" + android:gravity="bottom" + > + + <ImageView + android:id="@+id/large_icon" + android:layout_width="@android:dimen/notification_large_icon_width" + android:layout_height="@android:dimen/notification_large_icon_height" + android:scaleType="center" + android:visibility="gone" + /> + + <LinearLayout + android:layout_width="wrap_content" + android:layout_height="@*android:dimen/status_bar_height" + android:layout_weight="1" + android:background="@drawable/status_bar_ticker_background" + > + + <ImageView android:id="@+id/left_icon" + android:layout_width="64dp" + android:layout_height="match_parent" + android:scaleType="center" + android:visibility="gone" + /> + + <TextView android:id="@+id/text" + android:textAppearance="@*android:style/TextAppearance.StatusBar.Ticker" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:layout_gravity="center_vertical" + android:layout_marginLeft="12dp" + android:gravity="center_vertical" + android:maxLines="2" + /> + + <ImageView android:id="@+id/right_icon" + android:layout_width="64dp" + android:layout_height="match_parent" + android:scaleType="center" + android:visibility="gone" + /> + + </LinearLayout> + +</LinearLayout> diff --git a/packages/SystemUI/res/layout-sw600dp/status_bar_ticker_panel.xml b/packages/SystemUI/res/layout-sw600dp/status_bar_ticker_panel.xml new file mode 100644 index 0000000..6cd8899 --- /dev/null +++ b/packages/SystemUI/res/layout-sw600dp/status_bar_ticker_panel.xml @@ -0,0 +1,41 @@ +<?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. +--> + +<LinearLayout + xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:orientation="horizontal" + android:gravity="bottom" + > + + <ImageView + android:id="@+id/large_icon" + android:layout_width="@android:dimen/notification_large_icon_height" + android:layout_height="@android:dimen/notification_large_icon_width" + android:scaleType="center" + android:visibility="gone" + /> + + <FrameLayout + android:id="@+id/ticker_expanded" + android:layout_weight="1" + android:layout_height="@*android:dimen/status_bar_height" + android:layout_width="match_parent" + android:background="@drawable/status_bar_ticker_background" + /> +</LinearLayout> |