<?xml version="1.0" encoding="utf-8"?><!--
  Copyright 2021 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.
  -->

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@id/glanceView"
    android:orientation="horizontal"
    android:gravity="center">
    <!-- Note: A separate ImageView is used for the icon rather than using the drawable of the
     TextView as TextView.setEnabled is only remotable since API 24, whereas View.setEnabled is
     remotable on all APIs. -->
    <ImageView
        android:id="@id/checkBoxIcon"
        android:layout_width="32dp"
        android:layout_height="32dp"
        android:src="@drawable/abc_btn_check_material_anim_enabled"
        android:layout_centerVertical="true"/>
    <TextView
        android:id="@id/checkBoxText"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"/>
</LinearLayout>
<?xml version="1.0" encoding="utf-8"?><!--
  Copyright 2021 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.
  -->

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@id/glanceView"
    android:orientation="horizontal"
    android:gravity="center">
    <!-- Note: A separate ImageView is used for the icon rather than using the drawable of the
     TextView as TextView.setEnabled is only remotable since API 24, whereas View.setEnabled is
     remotable on all APIs. -->
    <ImageView
        android:id="@id/checkBoxIcon"
        android:layout_width="32dp"
        android:layout_height="32dp"
        android:src="@drawable/abc_btn_check_material_anim_enabled"
        android:layout_centerVertical="true"
        android:tint="?android:attr/colorAccent"/>
    <TextView
        android:id="@id/checkBoxText"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"/>
</LinearLayout>
Set a tint on the checkbox backport
Set a tint on the checkbox backport

It's not yet clear how we can backport changing the tint at runtime for the check box. For now, let's use the accent color

Bug: 200660542
Test: locally, screenshot
Change-Id: Iaa0234f3ad9e3e1ac19f7fa22a10e326f12ad84a
