Add action divider and supplemental action functionality to list items.
Bug: 143234489
Test: CarUiListItemTest
Change-Id: Ic699068350516601e239d67296c415ce9ff33978
diff --git a/car-ui-lib/res/layout/car_ui_list_item.xml b/car-ui-lib/res/layout/car_ui_list_item.xml
index 1357e59..dfc15a0 100644
--- a/car-ui-lib/res/layout/car_ui_list_item.xml
+++ b/car-ui-lib/res/layout/car_ui_list_item.xml
@@ -79,6 +79,13 @@
app:layout_constraintEnd_toEndOf="@id/car_ui_list_item_end_guideline"
app:layout_constraintTop_toTopOf="parent">
+ <View
+ android:id="@+id/action_divider"
+ android:layout_width="@dimen/car_ui_list_item_action_divider_width"
+ android:layout_height="@dimen/car_ui_list_item_action_divider_height"
+ android:background="@drawable/car_ui_list_item_divider"
+ android:layout_gravity="start|center_vertical"/>
+
<Switch
android:id="@+id/switch_widget"
android:layout_width="wrap_content"
@@ -90,6 +97,13 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center" />
+
+ <ImageView
+ android:id="@+id/supplemental_icon"
+ android:layout_width="@dimen/car_ui_list_item_supplemental_icon_size"
+ android:layout_height="@dimen/car_ui_list_item_supplemental_icon_size"
+ android:layout_gravity="center"
+ android:scaleType="fitXY" />
</FrameLayout>
<androidx.constraintlayout.widget.Guideline