| <?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. |
| --> |
| |
| <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" |
| xmlns:app="http://schemas.android.com/apk/res-auto" |
| android:id="@+id/metadata" |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:orientation="horizontal"> |
| |
| <androidx.cardview.widget.CardView |
| android:layout_width="0dp" |
| android:layout_height="wrap_content" |
| android:layout_weight="1" |
| android:layout_marginHorizontal="4dp" |
| app:cardCornerRadius="?android:dialogCornerRadius" |
| app:cardElevation="@dimen/single_metadata_card_elevation" |
| app:cardMaxElevation="@dimen/single_metadata_card_elevation" |
| app:cardPreventCornerOverlap="false" |
| app:cardUseCompatPadding="true" |
| app:contentPadding="0dp"> |
| |
| <LinearLayout |
| android:layout_width="match_parent" |
| android:layout_height="match_parent" |
| android:orientation="vertical"> |
| |
| <!-- Wraps the image and the "lock screen" label overlapping it. --> |
| <FrameLayout |
| android:id="@+id/lock_wallpaper_section" |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content"> |
| |
| <com.android.wallpaper.widget.WallpaperThumbnailView |
| android:id="@+id/lock_wallpaper_image" |
| android:layout_width="match_parent" |
| android:layout_height="@dimen/both_metadata_thumb_height" |
| android:layout_gravity="top" |
| android:clickable="true" |
| android:contentDescription="@string/currently_set_lock_wallpaper_thumbnail" |
| android:focusable="true" |
| android:foreground="?attr/selectableItemBackground" |
| android:nextFocusForward="@+id/lock_wallpaper_attribution_section" /> |
| |
| <ImageButton |
| style="?attr/borderlessButtonStyle" |
| android:id="@+id/lock_wallpaper_explore_button" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:layout_margin="@dimen/single_metadata_explore_button_margin" |
| android:layout_gravity="top|end" |
| android:background="@drawable/button_over_thumbnail_background" |
| android:clickable="true" |
| android:contentDescription="@string/explore" |
| android:focusable="true" |
| android:padding="@dimen/single_metadata_explore_section_button_padding" |
| android:src="@drawable/ic_explore_24px" |
| android:visibility="gone" /> |
| </FrameLayout> |
| |
| <!-- Wraps the attribution section. --> |
| <RelativeLayout |
| android:id="@id/lock_wallpaper_attribution_section" |
| android:layout_width="match_parent" |
| android:layout_height="@dimen/both_metadata_attribution_section_height" |
| android:layout_marginEnd="@dimen/single_metadata_pane_attributions_margin_right" |
| android:layout_marginStart="@dimen/single_metadata_pane_attributions_margin_left" |
| android:paddingBottom="@dimen/single_metadata_pane_wallpaper_subtitle_margin_bottom" |
| android:focusable="true"> |
| |
| |
| |
| <TextView |
| android:id="@+id/lock_wallpaper_label" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:layout_gravity="start|top" |
| android:layout_alignParentTop="true" |
| android:layout_alignParentStart="true" |
| android:layout_marginTop="@dimen/single_metadata_pane_wallpaper_label_margin_top" |
| android:gravity="top" |
| android:text="@string/lock_screen_message" |
| android:textAppearance="@style/TitleTextAppearance" |
| android:textColor="@color/currently_set_presentation_mode_text_color" |
| android:maxLines="2" |
| android:ellipsize="end" |
| android:textSize="@dimen/abc_text_size_subhead_material" |
| android:textStyle="bold" /> |
| |
| <TextView |
| android:id="@+id/lock_wallpaper_title" |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:layout_above="@+id/lock_wallpaper_subtitle1" |
| android:layout_alignParentStart="true" |
| android:ellipsize="end" |
| android:maxLines="1" |
| android:textAppearance="@android:style/TextAppearance.DeviceDefault.Small" |
| android:textColor="@color/currently_set_both_attribution_title_text_color" |
| android:textSize="@dimen/both_metadata_title_text_size" |
| android:textStyle="bold" /> |
| |
| <TextView |
| android:id="@+id/lock_wallpaper_subtitle1" |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:layout_above="@+id/lock_wallpaper_subtitle2" |
| android:layout_alignParentStart="true" |
| android:ellipsize="end" |
| android:maxLines="1" |
| android:textAppearance="@android:style/TextAppearance.DeviceDefault.Small" |
| android:textColor="@color/currently_set_both_attribution_subtitle_text_color" |
| android:textSize="@dimen/abc_text_size_caption_material" /> |
| |
| <TextView |
| android:id="@+id/lock_wallpaper_subtitle2" |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:layout_alignParentBottom="true" |
| android:layout_alignParentStart="true" |
| android:ellipsize="end" |
| android:maxLines="1" |
| android:textAppearance="@android:style/TextAppearance.DeviceDefault.Small" |
| android:textColor="@color/currently_set_both_attribution_subtitle_text_color" |
| android:textSize="@dimen/abc_text_size_caption_material" /> |
| |
| </RelativeLayout> |
| |
| </LinearLayout> |
| </androidx.cardview.widget.CardView> |
| |
| <androidx.cardview.widget.CardView |
| android:layout_width="0dp" |
| android:layout_height="wrap_content" |
| android:layout_weight="1" |
| android:layout_marginHorizontal="4dp" |
| app:cardCornerRadius="?android:dialogCornerRadius" |
| app:cardElevation="@dimen/single_metadata_card_elevation" |
| app:cardMaxElevation="@dimen/single_metadata_card_elevation" |
| app:cardPreventCornerOverlap="false" |
| app:cardUseCompatPadding="true" |
| app:contentPadding="0dp"> |
| |
| <LinearLayout |
| android:layout_width="match_parent" |
| android:layout_height="match_parent" |
| android:orientation="vertical"> |
| |
| <!-- Wraps the image and the "home screen" label overlapping it. --> |
| <FrameLayout |
| android:id="@+id/home_wallpaper_section" |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content"> |
| |
| <com.android.wallpaper.widget.WallpaperThumbnailView |
| android:id="@+id/home_wallpaper_image" |
| android:layout_width="match_parent" |
| android:layout_height="@dimen/both_metadata_thumb_height" |
| android:layout_gravity="top" |
| android:clickable="true" |
| android:contentDescription="@string/currently_set_home_wallpaper_thumbnail" |
| android:focusable="true" |
| android:foreground="?attr/selectableItemBackground" |
| android:nextFocusForward="@+id/home_wallpaper_attribution_section" /> |
| |
| <ImageButton |
| style="?attr/borderlessButtonStyle" |
| android:id="@+id/home_wallpaper_explore_button" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:layout_margin="@dimen/single_metadata_explore_button_margin" |
| android:layout_gravity="top|end" |
| android:background="@drawable/button_over_thumbnail_background" |
| android:clickable="true" |
| android:contentDescription="@string/explore_home_screen" |
| android:focusable="true" |
| android:padding="@dimen/single_metadata_explore_section_button_padding" |
| android:src="@drawable/ic_explore_24px" |
| android:visibility="gone" /> |
| |
| <FrameLayout |
| android:id="@+id/home_wallpaper_presentation_section" |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:layout_gravity="bottom" |
| android:padding="@dimen/both_metadata_scrim_content_bottom_margin" |
| android:background="@drawable/presentation_mode_content_protection" |
| android:visibility="gone"> |
| <TextView |
| android:id="@+id/home_wallpaper_presentation_mode" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:layout_gravity="center_vertical|start" |
| android:gravity="start" |
| android:textColor="@color/material_white_100" |
| android:textSize="@dimen/abc_text_size_body_2_material"/> |
| |
| <ImageButton |
| style="?attr/borderlessButtonStyle" |
| android:id="@+id/skip_home_wallpaper" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:layout_marginEnd="0dp" |
| android:layout_gravity="center_vertical|end" |
| android:background="@android:color/transparent" |
| android:clickable="true" |
| android:contentDescription="@string/refresh_daily_wallpaper_home_content_description" |
| android:focusable="true" |
| android:nextFocusForward="@id/home_wallpaper_image" |
| android:padding="@dimen/single_metadata_explore_section_button_padding" |
| android:src="@drawable/ic_refresh_24px" |
| android:visibility="gone" /> |
| </FrameLayout> |
| </FrameLayout> |
| |
| <!-- Wraps the attribution section. --> |
| <RelativeLayout |
| android:id="@id/home_wallpaper_attribution_section" |
| android:layout_width="match_parent" |
| android:layout_height="@dimen/both_metadata_attribution_section_height" |
| android:layout_marginEnd="@dimen/single_metadata_pane_attributions_margin_right" |
| android:layout_marginStart="@dimen/single_metadata_pane_attributions_margin_left" |
| android:paddingBottom="@dimen/single_metadata_pane_wallpaper_subtitle_margin_bottom" |
| android:focusable="true"> |
| <TextView |
| android:id="@+id/home_wallpaper_label" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:layout_gravity="start|top" |
| android:gravity="top" |
| android:layout_alignParentTop="true" |
| android:layout_alignParentStart="true" |
| android:layout_marginTop="@dimen/single_metadata_pane_wallpaper_label_margin_top" |
| android:text="@string/home_screen_message" |
| android:textAppearance="@style/TitleTextAppearance" |
| android:textColor="@color/currently_set_presentation_mode_text_color" |
| android:textSize="@dimen/abc_text_size_subhead_material" |
| android:maxLines="2" |
| android:ellipsize="end" |
| android:textStyle="bold" /> |
| |
| <TextView |
| android:id="@+id/home_wallpaper_title" |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:layout_above="@+id/home_wallpaper_subtitle1" |
| android:layout_alignParentStart="true" |
| android:ellipsize="end" |
| android:maxLines="1" |
| android:textAppearance="@android:style/TextAppearance.DeviceDefault.Small" |
| android:textColor="@color/currently_set_both_attribution_title_text_color" |
| android:textSize="@dimen/both_metadata_title_text_size" |
| android:textStyle="bold" /> |
| |
| <TextView |
| android:id="@+id/home_wallpaper_subtitle1" |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:layout_above="@+id/home_wallpaper_subtitle2" |
| android:layout_alignParentStart="true" |
| android:ellipsize="end" |
| android:maxLines="1" |
| android:textAppearance="@android:style/TextAppearance.DeviceDefault.Small" |
| android:textColor="@color/currently_set_both_attribution_subtitle_text_color" |
| android:textSize="@dimen/abc_text_size_caption_material" /> |
| |
| <TextView |
| android:id="@+id/home_wallpaper_subtitle2" |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:layout_alignParentBottom="true" |
| android:layout_alignParentStart="true" |
| android:ellipsize="end" |
| android:maxLines="1" |
| android:textAppearance="@android:style/TextAppearance.DeviceDefault.Small" |
| android:textColor="@color/currently_set_both_attribution_subtitle_text_color" |
| android:textSize="@dimen/abc_text_size_caption_material" /> |
| |
| </RelativeLayout> |
| |
| </LinearLayout> |
| </androidx.cardview.widget.CardView> |
| |
| </LinearLayout> |