blob: 2f5c7a86ed2bcf58d9547a6da144d1a46492674c [file] [log] [blame]
<?xml version="1.0" encoding="utf-8"?><!--
~ Copyright 2019 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.
-->
<androidx.constraintlayout.widget.ConstraintLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:background="?android:attr/selectableItemBackground"
android:layout_width="match_parent"
android:layout_height="@dimen/car_ui_list_item_check_box_height">
<androidx.constraintlayout.widget.Guideline
android:id="@+id/car_ui_check_box_start_guideline"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="vertical"
app:layout_constraintGuide_begin="@dimen/car_ui_list_item_check_box_start_inset" />
<androidx.constraintlayout.widget.Guideline
android:id="@+id/car_ui_check_box_end_guideline"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="vertical"
app:layout_constraintGuide_end="@dimen/car_ui_list_item_check_box_end_inset" />
<FrameLayout
android:id="@+id/check_box_container"
android:layout_width="@dimen/car_ui_list_item_check_box_icon_container_width"
android:layout_height="0dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toStartOf="@+id/car_ui_check_box_start_guideline"
app:layout_constraintTop_toTopOf="parent">
<CheckBox
android:id="@+id/checkbox"
android:clickable="false"
android:focusable="false"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center" />
</FrameLayout>
<TextView
android:id="@+id/text"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="@dimen/car_ui_list_item_text_start_margin"
android:textAppearance="@style/TextAppearance.CarUi.ListItem"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="@+id/car_ui_check_box_end_guideline"
app:layout_constraintStart_toEndOf="@+id/check_box_container"
app:layout_constraintTop_toTopOf="parent" />
</androidx.constraintlayout.widget.ConstraintLayout>