• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" encoding="utf-8"?><!--
2     Copyright (C) 2017 The Android Open Source Project
3
4     Licensed under the Apache License, Version 2.0 (the "License");
5     you may not use this file except in compliance with the License.
6     You may obtain a copy of the License at
7
8          http://www.apache.org/licenses/LICENSE-2.0
9
10     Unless required by applicable law or agreed to in writing, software
11     distributed under the License is distributed on an "AS IS" BASIS,
12     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13     See the License for the specific language governing permissions and
14     limitations under the License.
15-->
16<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
17    android:id="@+id/daily_refresh"
18    android:layout_width="match_parent"
19    android:layout_height="match_parent"
20    android:background="@color/secondary_color"
21    android:clickable="true"
22    android:focusable="true"
23    android:foreground="?attr/selectableItemBackground"
24    android:paddingEnd="@dimen/rotation_tile_padding_right"
25    android:paddingLeft="@dimen/rotation_tile_padding_left"
26    android:paddingRight="@dimen/rotation_tile_padding_right"
27    android:paddingStart="@dimen/rotation_tile_padding_left">
28
29    <LinearLayout
30        android:layout_width="wrap_content"
31        android:layout_height="wrap_content"
32        android:layout_gravity="bottom"
33        android:layout_marginBottom="@dimen/rotation_tile_textarea_margin_bottom"
34        android:orientation="vertical">
35
36        <TextView
37            android:id="@+id/rotation_tile_title"
38            android:layout_width="wrap_content"
39            android:layout_height="wrap_content"
40            android:layout_marginBottom="@dimen/rotation_tile_textarea_title_margin_bottom"
41            android:text="@string/daily_refresh_tile_title"
42            android:textColor="@color/rotation_tile_enabled_title_text_color"
43            android:textSize="@dimen/rotation_tile_title_size" />
44
45        <LinearLayout
46            android:layout_width="wrap_content"
47            android:layout_height="wrap_content"
48            android:orientation="horizontal">
49
50            <ImageView
51                android:id="@+id/rotation_tile_refresh_icon"
52                android:layout_width="wrap_content"
53                android:layout_height="wrap_content"
54                android:layout_marginLeft="@dimen/rotation_tile_refresh_icon_offset"
55                android:layout_marginStart="@dimen/rotation_tile_refresh_icon_offset"
56                android:src="@drawable/ic_refresh_18px" />
57
58            <TextView
59                android:id="@+id/rotation_tile_message"
60                android:layout_width="wrap_content"
61                android:layout_height="wrap_content"
62                android:layout_marginLeft="@dimen/rotation_tile_textarea_subtitle_margin_left"
63                android:layout_marginStart="@dimen/rotation_tile_textarea_subtitle_margin_left"
64                android:text="@string/daily_refresh_tile_subtitle"
65                android:textColor="@color/rotation_tile_enabled_subtitle_text_color"
66                android:textSize="@dimen/abc_text_size_caption_material" />
67
68        </LinearLayout>
69
70    </LinearLayout>
71
72</FrameLayout>
73