• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" encoding="utf-8"?>
2<!--
3  ~ Copyright (C) 2017 The Android Open Source Project
4  ~
5  ~ Licensed under the Apache License, Version 2.0 (the "License");
6  ~ you may not use this file except in compliance with the License.
7  ~ You may obtain a copy of the License at
8  ~
9  ~      http://www.apache.org/licenses/LICENSE-2.0
10  ~
11  ~ Unless required by applicable law or agreed to in writing, software
12  ~ distributed under the License is distributed on an "AS IS" BASIS,
13  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  ~ See the License for the specific language governing permissions and
15  ~ limitations under the License
16  -->
17
18<LinearLayout
19    xmlns:android="http://schemas.android.com/apk/res/android"
20    android:padding="@dimen/toggle_padding"
21    android:layout_marginStart="@dimen/car_padding_2"
22    android:layout_marginEnd="@dimen/car_padding_2"
23    android:layout_marginBottom="@dimen/car_padding_5"
24    android:layout_width="match_parent"
25    android:layout_height="wrap_content"
26    android:gravity="center_horizontal"
27    android:orientation="vertical">
28    <FrameLayout
29        android:id="@+id/icon_container"
30        android:layout_width="@dimen/car_touch_target_size"
31        android:layout_height="@dimen/car_touch_target_size"
32        android:background="@drawable/circle_ripple_bg"
33        android:layout_marginBottom="@dimen/car_padding_4"
34        android:gravity="center">
35        <View
36            android:id="@+id/icon_background"
37            android:layout_width="match_parent"
38            android:layout_height="match_parent"
39            android:background="@drawable/circle_bg"/>
40        <ImageView
41            android:id="@+id/tile_icon"
42            android:layout_width="@dimen/car_primary_icon_size"
43            android:layout_height="@dimen/car_primary_icon_size"
44            android:layout_gravity="center"
45            android:src="@drawable/ic_settings_wifi"
46            android:tint="@color/toggle_icon_tint"
47            style="@style/ListIcon" />
48    </FrameLayout>
49    <LinearLayout
50        android:id="@+id/text_container"
51        android:layout_height="wrap_content"
52        android:layout_width="wrap_content"
53        android:orientation="horizontal">
54        <TextView
55            android:id="@+id/tile_text"
56            android:layout_height="wrap_content"
57            android:layout_width="wrap_content"
58            android:gravity="center"
59            android:textAppearance="@style/TextAppearance.Car.Label1"/>
60        <ImageView
61            android:id="@+id/deep_dive_icon"
62            android:layout_width="@dimen/car_primary_icon_size"
63            android:layout_height="@dimen/car_primary_icon_size"
64            android:src="@drawable/ic_arrow_drop_down"
65            android:tint="@color/car_label1"
66            android:layout_marginStart="@dimen/car_padding_1"
67            android:visibility="gone"/>
68    </LinearLayout>
69</LinearLayout>