Loading packages/CarSystemUI/res/layout/car_left_navigation_bar.xml +14 −0 Original line number Original line Diff line number Diff line Loading @@ -47,6 +47,18 @@ android:paddingBottom="30dp" android:paddingBottom="30dp" /> /> <com.android.systemui.statusbar.car.CarNavigationButton android:id="@+id/grid" android:layout_height="wrap_content" android:layout_width="match_parent" systemui:intent="intent:#Intent;component=com.android.car.home/.AppGridActivity;end" systemui:longIntent="intent:#Intent;action=android.intent.action.MAIN;category=android.intent.category.HOME;launchFlags=0x14000000;end" android:src="@drawable/car_ic_apps" android:background="?android:attr/selectableItemBackground" android:paddingTop="30dp" android:paddingBottom="30dp" /> <com.android.systemui.statusbar.car.CarNavigationButton <com.android.systemui.statusbar.car.CarNavigationButton android:id="@+id/hvac" android:id="@+id/hvac" android:layout_height="wrap_content" android:layout_height="wrap_content" Loading @@ -58,6 +70,7 @@ android:paddingTop="30dp" android:paddingTop="30dp" android:paddingBottom="30dp" android:paddingBottom="30dp" /> /> </LinearLayout> </LinearLayout> <LinearLayout <LinearLayout Loading @@ -78,6 +91,7 @@ android:alpha="0.7" android:alpha="0.7" /> /> <com.android.systemui.statusbar.policy.Clock <com.android.systemui.statusbar.policy.Clock android:id="@+id/clock" android:id="@+id/clock" android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:textAppearance="@style/TextAppearance.StatusBar.Clock" Loading packages/CarSystemUI/res/layout/car_navigation_bar.xml +10 −10 Original line number Original line Diff line number Diff line Loading @@ -22,6 +22,8 @@ android:layout_height="match_parent" android:layout_height="match_parent" android:background="@drawable/system_bar_background" android:background="@drawable/system_bar_background" android:orientation="vertical"> android:orientation="vertical"> <!--The 20dp padding is the difference between the background selected icon size and the ripple that was chosen, thus it's a hack to make it look pretty and not an official margin value--> <LinearLayout <LinearLayout android:id="@id/nav_buttons" android:id="@id/nav_buttons" android:layout_width="match_parent" android:layout_width="match_parent" Loading @@ -37,7 +39,6 @@ systemui:componentNames="com.android.car.carlauncher/.CarLauncher" systemui:componentNames="com.android.car.carlauncher/.CarLauncher" systemui:icon="@drawable/car_ic_overview" systemui:icon="@drawable/car_ic_overview" systemui:intent="intent:#Intent;action=android.intent.action.MAIN;category=android.intent.category.HOME;launchFlags=0x14000000;end" systemui:intent="intent:#Intent;action=android.intent.action.MAIN;category=android.intent.category.HOME;launchFlags=0x14000000;end" systemui:longIntent="intent:#Intent;action=com.google.android.demandspace.START;end" systemui:selectedIcon="@drawable/car_ic_overview_selected" systemui:selectedIcon="@drawable/car_ic_overview_selected" systemui:useMoreIcon="false" systemui:useMoreIcon="false" /> /> Loading Loading @@ -108,13 +109,11 @@ android:layout_height="match_parent" android:layout_height="match_parent" android:layout_weight="1"/> android:layout_weight="1"/> <!-- Click handling will be initialized in CarNavigationBarView because its id = notifications which is treated special for the opening of the notification panel --> <com.android.systemui.statusbar.car.CarNavigationButton <com.android.systemui.statusbar.car.CarNavigationButton android:id="@+id/notifications" android:id="@+id/notifications" style="@style/NavigationBarButton" style="@style/NavigationBarButton" android:src="@drawable/car_ic_notification" systemui:icon="@drawable/car_ic_notification" systemui:longIntent="intent:#Intent;component=com.android.car.bugreport/.BugReportActivity;end" systemui:selectedIcon="@drawable/car_ic_notification_selected" systemui:selectedIcon="@drawable/car_ic_notification_selected" systemui:useMoreIcon="false" systemui:useMoreIcon="false" /> /> Loading @@ -124,13 +123,13 @@ android:layout_height="match_parent" android:layout_height="match_parent" android:layout_weight="1"/> android:layout_weight="1"/> <com.android.systemui.statusbar.car.CarFacetButton <com.android.systemui.statusbar.car.AssitantButton android:id="@+id/assist" android:id="@+id/assist" style="@style/NavigationBarButton" style="@style/NavigationBarButton" systemui:icon="@drawable/ic_mic_white" systemui:icon="@drawable/ic_mic_white" systemui:intent="intent:#Intent;action=com.google.android.demandspace.START;end" systemui:useMoreIcon="false" systemui:useMoreIcon="false" /> /> </LinearLayout> </LinearLayout> <LinearLayout <LinearLayout Loading @@ -138,10 +137,11 @@ android:layout_width="match_parent" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_height="wrap_content" android:layout_weight="1" android:layout_weight="1" android:paddingStart="@*android:dimen/car_keyline_1" android:paddingStart="@dimen/car_keyline_1" android:paddingEnd="@*android:dimen/car_keyline_1" android:paddingEnd="@dimen/car_keyline_1" android:gravity="center" android:gravity="center" android:visibility="gone"> android:visibility="gone"> </LinearLayout> </LinearLayout> </com.android.systemui.statusbar.car.CarNavigationBarView> </com.android.systemui.statusbar.car.CarNavigationBarView> No newline at end of file packages/CarSystemUI/res/layout/car_right_navigation_bar.xml +17 −0 Original line number Original line Diff line number Diff line Loading @@ -25,6 +25,9 @@ android:orientation="vertical" android:orientation="vertical" android:background="@drawable/system_bar_background"> android:background="@drawable/system_bar_background"> <!-- phone.NavigationBarView has rot0 and rot90 but we expect the car head unit to have a fixed rotation so skip this level of the hierarchy. --> <LinearLayout <LinearLayout android:layout_height="match_parent" android:layout_height="match_parent" android:layout_width="match_parent" android:layout_width="match_parent" Loading @@ -47,6 +50,18 @@ android:paddingBottom="30dp" android:paddingBottom="30dp" /> /> <com.android.systemui.statusbar.car.CarNavigationButton android:id="@+id/grid" android:layout_height="wrap_content" android:layout_width="match_parent" systemui:intent="intent:#Intent;component=com.android.car.home/.AppGridActivity;launchFlags=0x14000000;end" systemui:longIntent="intent:#Intent;action=android.intent.action.MAIN;category=android.intent.category.HOME;launchFlags=0x14000000;end" android:src="@drawable/car_ic_apps" android:background="?android:attr/selectableItemBackground" android:paddingTop="30dp" android:paddingBottom="30dp" /> <com.android.systemui.statusbar.car.CarNavigationButton <com.android.systemui.statusbar.car.CarNavigationButton android:id="@+id/hvac" android:id="@+id/hvac" android:layout_height="wrap_content" android:layout_height="wrap_content" Loading @@ -58,6 +73,7 @@ android:paddingTop="30dp" android:paddingTop="30dp" android:paddingBottom="30dp" android:paddingBottom="30dp" /> /> </LinearLayout> </LinearLayout> <LinearLayout <LinearLayout Loading @@ -78,6 +94,7 @@ android:alpha="0.7" android:alpha="0.7" /> /> <com.android.systemui.statusbar.policy.Clock <com.android.systemui.statusbar.policy.Clock android:id="@+id/clock" android:id="@+id/clock" android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:textAppearance="@style/TextAppearance.StatusBar.Clock" Loading Loading
packages/CarSystemUI/res/layout/car_left_navigation_bar.xml +14 −0 Original line number Original line Diff line number Diff line Loading @@ -47,6 +47,18 @@ android:paddingBottom="30dp" android:paddingBottom="30dp" /> /> <com.android.systemui.statusbar.car.CarNavigationButton android:id="@+id/grid" android:layout_height="wrap_content" android:layout_width="match_parent" systemui:intent="intent:#Intent;component=com.android.car.home/.AppGridActivity;end" systemui:longIntent="intent:#Intent;action=android.intent.action.MAIN;category=android.intent.category.HOME;launchFlags=0x14000000;end" android:src="@drawable/car_ic_apps" android:background="?android:attr/selectableItemBackground" android:paddingTop="30dp" android:paddingBottom="30dp" /> <com.android.systemui.statusbar.car.CarNavigationButton <com.android.systemui.statusbar.car.CarNavigationButton android:id="@+id/hvac" android:id="@+id/hvac" android:layout_height="wrap_content" android:layout_height="wrap_content" Loading @@ -58,6 +70,7 @@ android:paddingTop="30dp" android:paddingTop="30dp" android:paddingBottom="30dp" android:paddingBottom="30dp" /> /> </LinearLayout> </LinearLayout> <LinearLayout <LinearLayout Loading @@ -78,6 +91,7 @@ android:alpha="0.7" android:alpha="0.7" /> /> <com.android.systemui.statusbar.policy.Clock <com.android.systemui.statusbar.policy.Clock android:id="@+id/clock" android:id="@+id/clock" android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:textAppearance="@style/TextAppearance.StatusBar.Clock" Loading
packages/CarSystemUI/res/layout/car_navigation_bar.xml +10 −10 Original line number Original line Diff line number Diff line Loading @@ -22,6 +22,8 @@ android:layout_height="match_parent" android:layout_height="match_parent" android:background="@drawable/system_bar_background" android:background="@drawable/system_bar_background" android:orientation="vertical"> android:orientation="vertical"> <!--The 20dp padding is the difference between the background selected icon size and the ripple that was chosen, thus it's a hack to make it look pretty and not an official margin value--> <LinearLayout <LinearLayout android:id="@id/nav_buttons" android:id="@id/nav_buttons" android:layout_width="match_parent" android:layout_width="match_parent" Loading @@ -37,7 +39,6 @@ systemui:componentNames="com.android.car.carlauncher/.CarLauncher" systemui:componentNames="com.android.car.carlauncher/.CarLauncher" systemui:icon="@drawable/car_ic_overview" systemui:icon="@drawable/car_ic_overview" systemui:intent="intent:#Intent;action=android.intent.action.MAIN;category=android.intent.category.HOME;launchFlags=0x14000000;end" systemui:intent="intent:#Intent;action=android.intent.action.MAIN;category=android.intent.category.HOME;launchFlags=0x14000000;end" systemui:longIntent="intent:#Intent;action=com.google.android.demandspace.START;end" systemui:selectedIcon="@drawable/car_ic_overview_selected" systemui:selectedIcon="@drawable/car_ic_overview_selected" systemui:useMoreIcon="false" systemui:useMoreIcon="false" /> /> Loading Loading @@ -108,13 +109,11 @@ android:layout_height="match_parent" android:layout_height="match_parent" android:layout_weight="1"/> android:layout_weight="1"/> <!-- Click handling will be initialized in CarNavigationBarView because its id = notifications which is treated special for the opening of the notification panel --> <com.android.systemui.statusbar.car.CarNavigationButton <com.android.systemui.statusbar.car.CarNavigationButton android:id="@+id/notifications" android:id="@+id/notifications" style="@style/NavigationBarButton" style="@style/NavigationBarButton" android:src="@drawable/car_ic_notification" systemui:icon="@drawable/car_ic_notification" systemui:longIntent="intent:#Intent;component=com.android.car.bugreport/.BugReportActivity;end" systemui:selectedIcon="@drawable/car_ic_notification_selected" systemui:selectedIcon="@drawable/car_ic_notification_selected" systemui:useMoreIcon="false" systemui:useMoreIcon="false" /> /> Loading @@ -124,13 +123,13 @@ android:layout_height="match_parent" android:layout_height="match_parent" android:layout_weight="1"/> android:layout_weight="1"/> <com.android.systemui.statusbar.car.CarFacetButton <com.android.systemui.statusbar.car.AssitantButton android:id="@+id/assist" android:id="@+id/assist" style="@style/NavigationBarButton" style="@style/NavigationBarButton" systemui:icon="@drawable/ic_mic_white" systemui:icon="@drawable/ic_mic_white" systemui:intent="intent:#Intent;action=com.google.android.demandspace.START;end" systemui:useMoreIcon="false" systemui:useMoreIcon="false" /> /> </LinearLayout> </LinearLayout> <LinearLayout <LinearLayout Loading @@ -138,10 +137,11 @@ android:layout_width="match_parent" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_height="wrap_content" android:layout_weight="1" android:layout_weight="1" android:paddingStart="@*android:dimen/car_keyline_1" android:paddingStart="@dimen/car_keyline_1" android:paddingEnd="@*android:dimen/car_keyline_1" android:paddingEnd="@dimen/car_keyline_1" android:gravity="center" android:gravity="center" android:visibility="gone"> android:visibility="gone"> </LinearLayout> </LinearLayout> </com.android.systemui.statusbar.car.CarNavigationBarView> </com.android.systemui.statusbar.car.CarNavigationBarView> No newline at end of file
packages/CarSystemUI/res/layout/car_right_navigation_bar.xml +17 −0 Original line number Original line Diff line number Diff line Loading @@ -25,6 +25,9 @@ android:orientation="vertical" android:orientation="vertical" android:background="@drawable/system_bar_background"> android:background="@drawable/system_bar_background"> <!-- phone.NavigationBarView has rot0 and rot90 but we expect the car head unit to have a fixed rotation so skip this level of the hierarchy. --> <LinearLayout <LinearLayout android:layout_height="match_parent" android:layout_height="match_parent" android:layout_width="match_parent" android:layout_width="match_parent" Loading @@ -47,6 +50,18 @@ android:paddingBottom="30dp" android:paddingBottom="30dp" /> /> <com.android.systemui.statusbar.car.CarNavigationButton android:id="@+id/grid" android:layout_height="wrap_content" android:layout_width="match_parent" systemui:intent="intent:#Intent;component=com.android.car.home/.AppGridActivity;launchFlags=0x14000000;end" systemui:longIntent="intent:#Intent;action=android.intent.action.MAIN;category=android.intent.category.HOME;launchFlags=0x14000000;end" android:src="@drawable/car_ic_apps" android:background="?android:attr/selectableItemBackground" android:paddingTop="30dp" android:paddingBottom="30dp" /> <com.android.systemui.statusbar.car.CarNavigationButton <com.android.systemui.statusbar.car.CarNavigationButton android:id="@+id/hvac" android:id="@+id/hvac" android:layout_height="wrap_content" android:layout_height="wrap_content" Loading @@ -58,6 +73,7 @@ android:paddingTop="30dp" android:paddingTop="30dp" android:paddingBottom="30dp" android:paddingBottom="30dp" /> /> </LinearLayout> </LinearLayout> <LinearLayout <LinearLayout Loading @@ -78,6 +94,7 @@ android:alpha="0.7" android:alpha="0.7" /> /> <com.android.systemui.statusbar.policy.Clock <com.android.systemui.statusbar.policy.Clock android:id="@+id/clock" android:id="@+id/clock" android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:textAppearance="@style/TextAppearance.StatusBar.Clock" Loading