Loading packages/SystemUI/res/layout/navigation_bar_with_apps.xml +108 −102 Original line number Diff line number Diff line Loading @@ -69,6 +69,14 @@ android:contentDescription="@string/accessibility_home" /> <!-- Container for the app shelf. --> <LinearLayout android:id="@+id/app_shelf" android:orientation="horizontal" android:layout_height="match_parent" android:layout_width="0dp" android:layout_weight="1" > <com.android.systemui.statusbar.phone.NavigationBarApps android:layout_width="wrap_content" android:layout_height="match_parent" Loading Loading @@ -119,12 +127,7 @@ android:visibility="invisible" /> </com.android.systemui.statusbar.phone.NavigationBarRecents> <Space android:layout_width="match_parent" android:layout_height="match_parent" android:layout_weight="1" /> </LinearLayout> <FrameLayout android:layout_width="@dimen/navigation_extra_key_width" Loading Loading @@ -262,6 +265,14 @@ android:contentDescription="@string/accessibility_home" /> <!-- Container for the app shelf. --> <LinearLayout android:id="@+id/app_shelf" android:orientation="horizontal" android:layout_height="match_parent" android:layout_width="0dp" android:layout_weight="1" > <com.android.systemui.statusbar.phone.NavigationBarApps android:layout_width="wrap_content" android:layout_height="match_parent" Loading Loading @@ -312,12 +323,7 @@ android:visibility="invisible" /> </com.android.systemui.statusbar.phone.NavigationBarRecents> <Space android:layout_width="match_parent" android:layout_height="match_parent" android:layout_weight="1" /> </LinearLayout> <FrameLayout android:layout_width="@dimen/navigation_extra_key_width" Loading packages/SystemUI/src/com/android/systemui/statusbar/phone/NavigationBarView.java +10 −0 Original line number Diff line number Diff line Loading @@ -243,6 +243,10 @@ public class NavigationBarView extends LinearLayout { return mCurrentView.findViewById(R.id.ime_switcher); } public View getAppShelf() { return mCurrentView.findViewById(R.id.app_shelf); } private void getIcons(Resources res) { mBackIcon = res.getDrawable(R.drawable.ic_sysbar_back); mBackLandIcon = res.getDrawable(R.drawable.ic_sysbar_back_land); Loading Loading @@ -341,6 +345,12 @@ public class NavigationBarView extends LinearLayout { getBackButton() .setVisibility(disableBack ? View.INVISIBLE : View.VISIBLE); getHomeButton() .setVisibility(disableHome ? View.INVISIBLE : View.VISIBLE); getRecentsButton().setVisibility(disableRecent ? View.INVISIBLE : View.VISIBLE); // The app shelf, if it exists, follows the visibility of the home button. View appShelf = getAppShelf(); if (appShelf != null) { appShelf.setVisibility(disableHome ? View.INVISIBLE : View.VISIBLE); } } private boolean inLockTask() { Loading Loading
packages/SystemUI/res/layout/navigation_bar_with_apps.xml +108 −102 Original line number Diff line number Diff line Loading @@ -69,6 +69,14 @@ android:contentDescription="@string/accessibility_home" /> <!-- Container for the app shelf. --> <LinearLayout android:id="@+id/app_shelf" android:orientation="horizontal" android:layout_height="match_parent" android:layout_width="0dp" android:layout_weight="1" > <com.android.systemui.statusbar.phone.NavigationBarApps android:layout_width="wrap_content" android:layout_height="match_parent" Loading Loading @@ -119,12 +127,7 @@ android:visibility="invisible" /> </com.android.systemui.statusbar.phone.NavigationBarRecents> <Space android:layout_width="match_parent" android:layout_height="match_parent" android:layout_weight="1" /> </LinearLayout> <FrameLayout android:layout_width="@dimen/navigation_extra_key_width" Loading Loading @@ -262,6 +265,14 @@ android:contentDescription="@string/accessibility_home" /> <!-- Container for the app shelf. --> <LinearLayout android:id="@+id/app_shelf" android:orientation="horizontal" android:layout_height="match_parent" android:layout_width="0dp" android:layout_weight="1" > <com.android.systemui.statusbar.phone.NavigationBarApps android:layout_width="wrap_content" android:layout_height="match_parent" Loading Loading @@ -312,12 +323,7 @@ android:visibility="invisible" /> </com.android.systemui.statusbar.phone.NavigationBarRecents> <Space android:layout_width="match_parent" android:layout_height="match_parent" android:layout_weight="1" /> </LinearLayout> <FrameLayout android:layout_width="@dimen/navigation_extra_key_width" Loading
packages/SystemUI/src/com/android/systemui/statusbar/phone/NavigationBarView.java +10 −0 Original line number Diff line number Diff line Loading @@ -243,6 +243,10 @@ public class NavigationBarView extends LinearLayout { return mCurrentView.findViewById(R.id.ime_switcher); } public View getAppShelf() { return mCurrentView.findViewById(R.id.app_shelf); } private void getIcons(Resources res) { mBackIcon = res.getDrawable(R.drawable.ic_sysbar_back); mBackLandIcon = res.getDrawable(R.drawable.ic_sysbar_back_land); Loading Loading @@ -341,6 +345,12 @@ public class NavigationBarView extends LinearLayout { getBackButton() .setVisibility(disableBack ? View.INVISIBLE : View.VISIBLE); getHomeButton() .setVisibility(disableHome ? View.INVISIBLE : View.VISIBLE); getRecentsButton().setVisibility(disableRecent ? View.INVISIBLE : View.VISIBLE); // The app shelf, if it exists, follows the visibility of the home button. View appShelf = getAppShelf(); if (appShelf != null) { appShelf.setVisibility(disableHome ? View.INVISIBLE : View.VISIBLE); } } private boolean inLockTask() { Loading