blob: 58e3b885b1915364f86304eee4f18272d11fe1fc [file] [log] [blame]
<?xml version="1.0" encoding="utf-8"?>
<!--
~ Copyright (C) 2017 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
-->
<com.android.car.list.InterceptTouchRelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/tile_container"
android:padding="@dimen/toggle_padding"
android:layout_marginStart="@dimen/car_padding_2"
android:layout_marginEnd="@dimen/car_padding_2"
android:layout_marginBottom="@dimen/car_padding_5"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<FrameLayout
android:id="@+id/icon_container"
android:layout_width="@dimen/car_touch_target_size"
android:layout_height="@dimen/car_touch_target_size"
android:background="@drawable/circle_bg"
android:layout_centerHorizontal="true"
android:layout_marginBottom="@dimen/car_padding_4">
<ImageButton
android:id="@+id/tile_icon"
android:layout_width="@dimen/car_primary_icon_size"
android:layout_height="@dimen/car_primary_icon_size"
android:layout_gravity="center"
android:src="@drawable/ic_settings_wifi"
android:tint="@color/car_card"
android:background="@null"
style="@style/ListIcon" />
</FrameLayout>
<TextView
android:id="@+id/tile_text"
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:paddingTop="@dimen/car_padding_1"
android:layout_centerHorizontal="true"
android:layout_below="@id/icon_container"
android:textAppearance="@style/TextAppearance.Car.Label1"/>
</com.android.car.list.InterceptTouchRelativeLayout>