Android P Automotive开机后的待机界面如下:
许久为做UI界面了,不知从何时起,Android系统的一些icon用的是Vector来实现的
界面底部的Navigation Bar:car_navigation_bar.xml
//对应Navigation Bar的圆圈Button
<com.android.systemui.statusbar.car.CarNavigationButton
android:id="@+id/home"
style="@style/NavigationBarButton"
systemui:intent="intent:#Intent;action=android.intent.action.MAIN;category=android.intent.category.HOME;launchFlags=0x14000000;end"
android:src="@drawable/car_ic_overview"
android:background="?android:attr/selectableItemBackground"
/>
//对应Navigation Bar的九个方块图Button
<com.android.systemui.statusbar.car.CarFacetButton
android:id="@+id/grid_nav"
style="@style/NavigationBarButton"
systemui:icon="@drawable/car_ic_apps"
systemui:intent="intent:#Intent;component=com.android.car.carlauncher/.AppGridActivity;launchFlags=0x24000000;end"
systemui:componentNames=