Loading packages/SystemUI/res/drawable/ic_sysbar_back_ime.xml 0 → 100644 +21 −0 Original line number Diff line number Diff line <?xml version="1.0" encoding="utf-8"?> <!-- Copyright (C) 2008 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. --> <selector xmlns:android="http://schemas.android.com/apk/res/android"> <item android:state_pressed="true" android:drawable="@drawable/ic_sysbar_back_ime_pressed" /> <item android:drawable="@drawable/ic_sysbar_back_ime_default" /> </selector> packages/SystemUI/src/com/android/systemui/statusbar/tablet/TabletStatusBar.java +4 −2 Original line number Diff line number Diff line Loading @@ -102,7 +102,7 @@ public class TabletStatusBar extends StatusBar { NotificationIconArea mNotificationIconArea; View mNavigationArea; View mBackButton; ImageView mBackButton; View mHomeButton; View mMenuButton; View mRecentButton; Loading Loading @@ -287,7 +287,7 @@ public class TabletStatusBar extends StatusBar { // The navigation buttons mNavigationArea = sb.findViewById(R.id.navigationArea); mBackButton = mNavigationArea.findViewById(R.id.back); mBackButton = (ImageView)mNavigationArea.findViewById(R.id.back); mHomeButton = mNavigationArea.findViewById(R.id.home); mMenuButton = mNavigationArea.findViewById(R.id.menu); mRecentButton = mNavigationArea.findViewById(R.id.recent_apps); Loading Loading @@ -657,6 +657,8 @@ public class TabletStatusBar extends StatusBar { } mInputMethodSwitchButton.setIMEButtonVisible(token, visible); mInputMethodShortcutButton.setIMEButtonVisible(token, visible); mBackButton.setImageResource( visible ? R.drawable.ic_sysbar_back_ime : R.drawable.ic_sysbar_back); } private boolean isImmersive() { Loading Loading
packages/SystemUI/res/drawable/ic_sysbar_back_ime.xml 0 → 100644 +21 −0 Original line number Diff line number Diff line <?xml version="1.0" encoding="utf-8"?> <!-- Copyright (C) 2008 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. --> <selector xmlns:android="http://schemas.android.com/apk/res/android"> <item android:state_pressed="true" android:drawable="@drawable/ic_sysbar_back_ime_pressed" /> <item android:drawable="@drawable/ic_sysbar_back_ime_default" /> </selector>
packages/SystemUI/src/com/android/systemui/statusbar/tablet/TabletStatusBar.java +4 −2 Original line number Diff line number Diff line Loading @@ -102,7 +102,7 @@ public class TabletStatusBar extends StatusBar { NotificationIconArea mNotificationIconArea; View mNavigationArea; View mBackButton; ImageView mBackButton; View mHomeButton; View mMenuButton; View mRecentButton; Loading Loading @@ -287,7 +287,7 @@ public class TabletStatusBar extends StatusBar { // The navigation buttons mNavigationArea = sb.findViewById(R.id.navigationArea); mBackButton = mNavigationArea.findViewById(R.id.back); mBackButton = (ImageView)mNavigationArea.findViewById(R.id.back); mHomeButton = mNavigationArea.findViewById(R.id.home); mMenuButton = mNavigationArea.findViewById(R.id.menu); mRecentButton = mNavigationArea.findViewById(R.id.recent_apps); Loading Loading @@ -657,6 +657,8 @@ public class TabletStatusBar extends StatusBar { } mInputMethodSwitchButton.setIMEButtonVisible(token, visible); mInputMethodShortcutButton.setIMEButtonVisible(token, visible); mBackButton.setImageResource( visible ? R.drawable.ic_sysbar_back_ime : R.drawable.ic_sysbar_back); } private boolean isImmersive() { Loading