| <?xml version="1.0" encoding="utf-8"?> |
| <!-- |
| Copyright 2016, 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. |
| --> |
| <FrameLayout |
| xmlns:android="http://schemas.android.com/apk/res/android" |
| xmlns:app="http://schemas.android.com/apk/res/com.android.support.car.lenspicker" |
| android:id="@+id/dismiss_area" |
| android:layout_width="match_parent" |
| android:layout_height="match_parent" |
| android:background="@color/car_lens_picker_bg_color" |
| android:clipChildren="false"> |
| |
| <RelativeLayout |
| android:id="@+id/title_checkbox_container" |
| android:layout_gravity="center_horizontal" |
| android:layout_width="match_parent" |
| android:layout_height="@dimen/car_app_bar_height" > |
| |
| <TextView |
| android:id="@+id/title" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:layout_alignParentStart="true" |
| android:layout_centerVertical="true" |
| style="@style/CarBody1.Light" /> |
| |
| <CheckBox |
| android:id="@+id/always_checkbox" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:layout_alignParentEnd="true" |
| android:layout_centerVertical="true" |
| android:buttonTint="@color/car_body1_light" |
| android:button="@drawable/ic_checkbox_selector" |
| android:checked="true" |
| android:paddingStart="@dimen/resolver_list_checkbox_spacing" |
| android:text="@string/alwaysUse" |
| style="@style/CarBody1.Light" /> |
| </RelativeLayout> |
| |
| <androidx.car.widget.PagedListView |
| android:id="@+id/list_view" |
| android:layout_width="match_parent" |
| android:layout_height="match_parent" |
| android:layout_marginTop="@dimen/car_app_bar_height" |
| app:showPagedListViewDivider="false" /> |
| <RelativeLayout |
| android:id="@+id/no_app_installed" |
| android:layout_width="match_parent" |
| android:layout_height="match_parent" |
| android:visibility="gone" |
| android:layout_marginTop="@dimen/car_app_bar_height" > |
| <ImageView |
| android:id="@+id/error_icon" |
| android:layout_width="@dimen/lens_no_compatible_app_installed_icon_size" |
| android:layout_height="@dimen/lens_no_compatible_app_installed_icon_size" |
| android:layout_marginTop="@dimen/lens_no_compatible_app_installed_icon_top_margin" |
| android:layout_centerHorizontal="true" |
| android:layout_alignParentTop="true" |
| android:src="@drawable/ic_error" /> |
| <TextView |
| android:id="@+id/error_text" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:layout_below="@id/error_icon" |
| android:layout_marginTop="@dimen/lens_no_compatible_app_installed_text_top_margin" |
| android:layout_marginLeft="@dimen/lens_no_compatible_app_installed_text_left_margin" |
| android:layout_marginRight="@dimen/lens_no_compatible_app_installed_text_right_margin" |
| android:gravity="center" |
| android:textColor="@color/car_grey_100" |
| style="@style/CarBody1" /> |
| </RelativeLayout> |
| </FrameLayout> |