| <?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" |
| android:id="@+id/metadata" |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:orientation="horizontal"> |
| |
| <LinearLayout |
| android:layout_width="0dp" |
| android:layout_height="wrap_content" |
| android:layout_marginEnd="2dp" |
| android:layout_marginRight="2dp" |
| android:layout_weight="1" |
| android:background="@color/secondary_color" |
| android:orientation="vertical"> |
| |
| <!-- Wraps the image and the "home screen" label overlapping it. --> |
| <FrameLayout |
| android:id="@+id/home_wallpaper_section" |
| android:layout_width="wrap_content" |
| 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" /> |
| |
| <LinearLayout |
| android:id="@+id/home_wallpaper_top_section" |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:background="@color/currently_set_both_header_scrim" |
| android:focusable="true" |
| android:nextFocusForward="@+id/home_wallpaper_explore_button_legacy" |
| android:orientation="horizontal" |
| android:visibility="invisible"> |
| |
| <LinearLayout |
| android:layout_width="0dp" |
| android:layout_height="wrap_content" |
| android:layout_weight="1" |
| android:orientation="vertical"> |
| |
| <TextView |
| android:id="@+id/home_wallpaper_label" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:layout_marginEnd="@dimen/both_metadata_content_side_margin" |
| android:layout_marginLeft="@dimen/both_metadata_content_side_margin" |
| android:layout_marginRight="@dimen/both_metadata_content_side_margin" |
| android:layout_marginStart="@dimen/both_metadata_content_side_margin" |
| android:layout_marginTop="@dimen/both_metadata_scrim_content_top_margin" |
| android:text="@string/home_screen_message" |
| android:textColor="@color/currently_set_both_title_text_color" |
| android:textSize="@dimen/abc_text_size_subhead_material" |
| android:textStyle="bold" /> |
| |
| <TextView |
| android:id="@+id/home_wallpaper_presentation_mode" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:layout_marginBottom="@dimen/both_metadata_scrim_content_bottom_margin" |
| android:layout_marginEnd="@dimen/both_metadata_content_side_margin" |
| android:layout_marginLeft="@dimen/both_metadata_content_side_margin" |
| android:layout_marginRight="@dimen/both_metadata_content_side_margin" |
| android:layout_marginStart="@dimen/both_metadata_content_side_margin" |
| android:textColor="@color/currently_set_both_presentation_mode_text_color" |
| android:textSize="@dimen/abc_text_size_body_2_material" /> |
| |
| </LinearLayout> |
| |
| <ImageButton |
| android:id="@+id/home_wallpaper_explore_button_legacy" |
| style="?attr/borderlessButtonStyle" |
| android:layout_width="@dimen/both_metadata_explore_button_size" |
| android:layout_height="@dimen/both_metadata_explore_button_size" |
| android:layout_gravity="center_vertical|end" |
| android:clickable="true" |
| android:contentDescription="@string/explore_home_screen" |
| android:focusable="true" |
| android:nextFocusForward="@id/home_wallpaper_image" |
| android:src="@drawable/ic_explore_24px" |
| android:visibility="gone" /> |
| |
| <ImageButton |
| android:id="@+id/skip_home_wallpaper" |
| style="?attr/borderlessButtonStyle" |
| android:layout_width="@dimen/both_metadata_explore_button_size" |
| android:layout_height="@dimen/both_metadata_explore_button_size" |
| android:layout_gravity="center_vertical|end" |
| android:clickable="true" |
| android:contentDescription="@string/refresh_daily_wallpaper_home_content_description" |
| android:focusable="true" |
| android:nextFocusForward="@id/home_wallpaper_image" |
| android:src="@drawable/ic_refresh_24px" |
| android:visibility="gone" /> |
| |
| </LinearLayout> |
| |
| </FrameLayout> |
| |
| <!-- Wraps the attribution section. --> |
| <FrameLayout |
| android:id="@id/home_wallpaper_attribution_section" |
| android:layout_width="match_parent" |
| android:layout_height="@dimen/both_metadata_attribution_section_height" |
| android:focusable="true" |
| android:nextFocusForward="@+id/lock_wallpaper_top_section"> |
| |
| <LinearLayout |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:layout_gravity="top" |
| android:orientation="horizontal"> |
| |
| <TextView |
| android:id="@+id/home_wallpaper_title" |
| android:layout_width="0dp" |
| android:layout_height="wrap_content" |
| android:layout_marginEnd="@dimen/both_metadata_content_side_margin" |
| android:layout_marginLeft="@dimen/both_metadata_content_side_margin" |
| android:layout_marginRight="@dimen/both_metadata_content_side_margin" |
| android:layout_marginStart="@dimen/both_metadata_content_side_margin" |
| android:layout_marginTop="@dimen/both_metadata_attribution_section_top_margin" |
| android:layout_weight="1" |
| android:ellipsize="end" |
| android:maxLines="2" |
| android:textColor="@color/currently_set_both_title_text_color" |
| android:textSize="@dimen/both_metadata_title_text_size" |
| android:textStyle="bold" /> |
| |
| <ImageButton |
| android:id="@+id/home_wallpaper_explore_button" |
| style="?attr/borderlessButtonStyle" |
| android:layout_width="@dimen/both_metadata_explore_button_size" |
| android:layout_height="@dimen/both_metadata_explore_button_size" |
| android:clickable="true" |
| android:contentDescription="@string/explore_home_screen" |
| android:focusable="true" |
| android:nextFocusForward="@id/home_wallpaper_image" |
| android:src="@drawable/ic_explore_24px" |
| android:visibility="gone" /> |
| |
| </LinearLayout> |
| |
| <LinearLayout |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:layout_gravity="bottom" |
| android:layout_marginBottom="@dimen/both_metadata_attribution_section_bottom_margin" |
| android:layout_marginEnd="@dimen/both_metadata_content_side_margin" |
| android:layout_marginLeft="@dimen/both_metadata_content_side_margin" |
| android:layout_marginRight="@dimen/both_metadata_content_side_margin" |
| android:layout_marginStart="@dimen/both_metadata_content_side_margin" |
| android:orientation="vertical"> |
| |
| <TextView |
| android:id="@+id/home_wallpaper_subtitle1" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:ellipsize="end" |
| android:maxLines="1" |
| 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="wrap_content" |
| android:layout_height="wrap_content" |
| android:ellipsize="end" |
| android:maxLines="1" |
| android:textColor="@color/currently_set_both_attribution_subtitle_text_color" |
| android:textSize="@dimen/abc_text_size_caption_material" /> |
| |
| </LinearLayout> |
| |
| </FrameLayout> |
| |
| </LinearLayout> |
| |
| <LinearLayout |
| android:layout_width="0dp" |
| android:layout_height="wrap_content" |
| android:layout_marginLeft="2dp" |
| android:layout_weight="1" |
| android:background="@color/secondary_color" |
| android:orientation="vertical"> |
| |
| <!-- Wraps the image and the "lock screen" label overlapping it. --> |
| <FrameLayout |
| android:id="@+id/lock_wallpaper_section" |
| android:layout_width="wrap_content" |
| 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" /> |
| |
| <LinearLayout |
| android:id="@id/lock_wallpaper_top_section" |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:background="@color/currently_set_both_header_scrim" |
| android:focusable="true" |
| android:nextFocusForward="@+id/lock_wallpaper_explore_button_legacy" |
| android:orientation="horizontal" |
| android:visibility="invisible"> |
| |
| <LinearLayout |
| android:layout_width="0dp" |
| android:layout_height="wrap_content" |
| android:layout_weight="1" |
| android:orientation="vertical"> |
| |
| <TextView |
| android:id="@+id/lock_wallpaper_label" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:layout_gravity="start|top" |
| android:layout_marginEnd="@dimen/both_metadata_content_side_margin" |
| android:layout_marginLeft="@dimen/both_metadata_content_side_margin" |
| android:layout_marginRight="@dimen/both_metadata_content_side_margin" |
| android:layout_marginStart="@dimen/both_metadata_content_side_margin" |
| android:layout_marginTop="@dimen/both_metadata_scrim_content_top_margin" |
| android:text="@string/lock_screen_message" |
| android:textColor="@color/currently_set_both_title_text_color" |
| android:textSize="@dimen/abc_text_size_subhead_material" |
| android:textStyle="bold" /> |
| |
| <TextView |
| android:id="@+id/lock_wallpaper_presentation_mode" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:layout_gravity="start|bottom" |
| android:layout_marginBottom="@dimen/both_metadata_scrim_content_bottom_margin" |
| android:layout_marginEnd="@dimen/both_metadata_content_side_margin" |
| android:layout_marginLeft="@dimen/both_metadata_content_side_margin" |
| android:layout_marginRight="@dimen/both_metadata_content_side_margin" |
| android:layout_marginStart="@dimen/both_metadata_content_side_margin" |
| android:textColor="@color/currently_set_both_presentation_mode_text_color" |
| android:textSize="@dimen/abc_text_size_body_2_material" /> |
| |
| </LinearLayout> |
| |
| <ImageButton |
| android:id="@+id/lock_wallpaper_explore_button_legacy" |
| style="?attr/borderlessButtonStyle" |
| android:layout_width="@dimen/both_metadata_explore_button_size" |
| android:layout_height="@dimen/both_metadata_explore_button_size" |
| android:layout_gravity="center_vertical|end" |
| android:clickable="true" |
| android:contentDescription="@string/explore_lock_screen" |
| android:focusable="true" |
| android:nextFocusForward="@id/lock_wallpaper_image" |
| android:src="@drawable/ic_explore_24px" |
| android:visibility="gone" /> |
| |
| </LinearLayout> |
| |
| </FrameLayout> |
| |
| <!-- Wraps the attribution section. --> |
| <FrameLayout |
| android:id="@id/lock_wallpaper_attribution_section" |
| android:layout_width="match_parent" |
| android:layout_height="@dimen/both_metadata_attribution_section_height" |
| android:focusable="true"> |
| |
| <LinearLayout |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:layout_gravity="top" |
| android:orientation="horizontal"> |
| |
| <TextView |
| android:id="@+id/lock_wallpaper_title" |
| android:layout_width="0dp" |
| android:layout_height="wrap_content" |
| android:layout_marginEnd="@dimen/both_metadata_content_side_margin" |
| android:layout_marginLeft="@dimen/both_metadata_content_side_margin" |
| android:layout_marginRight="@dimen/both_metadata_content_side_margin" |
| android:layout_marginStart="@dimen/both_metadata_content_side_margin" |
| android:layout_marginTop="@dimen/both_metadata_attribution_section_top_margin" |
| android:layout_weight="1" |
| android:ellipsize="end" |
| android:maxLines="2" |
| android:textColor="@color/currently_set_both_attribution_title_text_color" |
| android:textSize="@dimen/both_metadata_title_text_size" |
| android:textStyle="bold" /> |
| |
| <ImageButton |
| android:id="@+id/lock_wallpaper_explore_button" |
| style="?attr/borderlessButtonStyle" |
| android:layout_width="@dimen/both_metadata_explore_button_size" |
| android:layout_height="@dimen/both_metadata_explore_button_size" |
| android:clickable="true" |
| android:contentDescription="@string/explore_lock_screen" |
| android:focusable="true" |
| android:nextFocusForward="@+id/lock_wallpaper_image" |
| android:src="@drawable/ic_explore_24px" |
| android:visibility="gone" /> |
| |
| </LinearLayout> |
| |
| <LinearLayout |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:layout_gravity="bottom" |
| android:layout_marginBottom="@dimen/both_metadata_attribution_section_bottom_margin" |
| android:layout_marginEnd="@dimen/both_metadata_content_side_margin" |
| android:layout_marginLeft="@dimen/both_metadata_content_side_margin" |
| android:layout_marginRight="@dimen/both_metadata_content_side_margin" |
| android:layout_marginStart="@dimen/both_metadata_content_side_margin" |
| android:orientation="vertical"> |
| |
| <TextView |
| android:id="@+id/lock_wallpaper_subtitle1" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:ellipsize="end" |
| android:maxLines="1" |
| 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="wrap_content" |
| android:layout_height="wrap_content" |
| android:ellipsize="end" |
| android:maxLines="1" |
| android:textColor="@color/currently_set_both_attribution_subtitle_text_color" |
| android:textSize="@dimen/abc_text_size_caption_material" /> |
| |
| </LinearLayout> |
| |
| </FrameLayout> |
| |
| </LinearLayout> |
| |
| </LinearLayout> |