| <?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:layout_marginBottom="@dimen/single_metadata_pane_bottom_offset" |
| android:layout_marginEnd="@dimen/single_metadata_pane_horizontal_offset" |
| android:layout_marginLeft="@dimen/single_metadata_pane_horizontal_offset" |
| android:layout_marginRight="@dimen/single_metadata_pane_horizontal_offset" |
| android:layout_marginStart="@dimen/single_metadata_pane_horizontal_offset" |
| android:layout_marginTop="@dimen/single_metadata_pane_vertical_offset" |
| android:orientation="vertical"> |
| |
| <android.support.v7.widget.CardView |
| android:layout_width="match_parent" |
| android:layout_height="@dimen/single_metadata_card_layout_height" |
| app:cardCornerRadius="@dimen/single_metadata_card_corner_radius" |
| app:cardElevation="@dimen/single_metadata_card_elevation" |
| app:cardMaxElevation="@dimen/single_metadata_card_elevation" |
| app:cardPreventCornerOverlap="false" |
| app:cardUseCompatPadding="true" |
| app:contentPadding="0dp"> |
| |
| <View |
| android:layout_width="match_parent" |
| android:layout_height="match_parent" |
| android:background="@color/secondary_color" /> |
| |
| <LinearLayout |
| android:layout_width="match_parent" |
| android:layout_height="match_parent" |
| android:orientation="horizontal"> |
| |
| <com.android.wallpaper.widget.WallpaperThumbnailView |
| android:id="@+id/wallpaper_image" |
| android:layout_width="@dimen/single_metadata_pane_thumb_width" |
| android:layout_height="match_parent" |
| android:clickable="true" |
| android:contentDescription="@string/currently_set_wallpaper_thumbnail" |
| android:focusable="true" |
| android:foreground="?attr/selectableItemBackground" /> |
| |
| <RelativeLayout |
| android:layout_width="match_parent" |
| android:layout_height="match_parent"> |
| |
| <LinearLayout |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:layout_alignParentTop="true" |
| android:layout_above="@+id/wallpaper_explore_section" |
| android:layout_marginEnd="@dimen/single_metadata_pane_attributions_margin_right" |
| android:layout_marginLeft="@dimen/single_metadata_pane_attributions_margin_left" |
| android:layout_marginRight="@dimen/single_metadata_pane_attributions_margin_right" |
| android:layout_marginStart="@dimen/single_metadata_pane_attributions_margin_left" |
| android:focusable="true" |
| android:orientation="vertical"> |
| |
| <TextView |
| android:id="@+id/wallpaper_presentation_mode" |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:layout_marginTop="@dimen/single_metadata_pane_wallpaper_label_margin_top" |
| android:textColor="@color/currently_set_presentation_mode_text_color" |
| android:textSize="@dimen/abc_text_size_body_2_material" |
| android:textStyle="bold" /> |
| |
| <TextView |
| android:id="@+id/wallpaper_title" |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:layout_marginTop="@dimen/single_metadata_pane_wallpaper_title_margin_top" |
| android:ellipsize="end" |
| android:maxLines="2" |
| android:textColor="@color/currently_set_title_text_color" |
| android:textSize="@dimen/single_metadata_pane_wallpaper_title_text_size" /> |
| |
| <TextView |
| android:id="@+id/wallpaper_subtitle" |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:layout_marginTop="@dimen/single_metadata_pane_wallpaper_subtitle_margin_top" |
| android:ellipsize="end" |
| android:maxLines="2" |
| android:textColor="@color/currently_set_subtitle_text_color" |
| android:textSize="@dimen/single_metadata_pane_wallpaper_subtitle_text_size" /> |
| |
| </LinearLayout> |
| |
| <LinearLayout |
| android:id="@+id/wallpaper_explore_section" |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:layout_alignParentBottom="true" |
| android:orientation="vertical" |
| android:visibility="gone"> |
| |
| <View |
| android:layout_width="match_parent" |
| android:layout_height="1dp" |
| android:background="@color/currently_set_divider_background_color" /> |
| |
| <LinearLayout |
| android:layout_width="match_parent" |
| android:layout_height="@dimen/single_metadata_explore_section_height" |
| android:orientation="horizontal"> |
| |
| <ImageButton |
| android:id="@+id/skip_wallpaper_button" |
| style="?attr/borderlessButtonStyle" |
| android:layout_width="@dimen/single_metadata_explore_section_height" |
| android:layout_height="match_parent" |
| android:layout_marginEnd="@dimen/single_metadata_skip_button_margin_end" |
| android:layout_marginLeft="@dimen/single_metadata_skip_button_margin_start" |
| android:layout_marginRight="@dimen/single_metadata_skip_button_margin_end" |
| android:layout_marginStart="@dimen/single_metadata_skip_button_margin_start" |
| android:clickable="true" |
| android:contentDescription="@string/refresh_daily_wallpaper_content_description" |
| android:focusable="true" |
| android:padding="@dimen/single_metadata_explore_section_button_padding" |
| android:src="@drawable/ic_refresh_24px" |
| android:visibility="gone" /> |
| |
| <ImageButton |
| android:id="@+id/wallpaper_explore_button_notext" |
| style="?attr/borderlessButtonStyle" |
| android:layout_width="@dimen/single_metadata_explore_section_height" |
| android:layout_height="match_parent" |
| android:layout_marginLeft="@dimen/single_metadata_explore_button_margin_left" |
| android:layout_marginStart="@dimen/single_metadata_explore_button_margin_left" |
| 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" /> |
| |
| <Button |
| android:id="@+id/wallpaper_explore_button" |
| style="?attr/borderlessButtonStyle" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:layout_marginLeft="@dimen/single_metadata_explore_button_margin_left" |
| android:layout_marginStart="@dimen/single_metadata_explore_button_margin_left" |
| android:clickable="true" |
| android:contentDescription="@string/explore" |
| android:drawablePadding="@dimen/explore_button_drawable_padding" |
| android:ellipsize="end" |
| android:focusable="true" |
| android:maxLines="1" |
| android:text="@string/explore" |
| android:textColor="@color/currently_set_explore_button_color" |
| android:visibility="gone" /> |
| |
| </LinearLayout> |
| |
| |
| </LinearLayout> |
| |
| </RelativeLayout> |
| |
| </LinearLayout> |
| |
| </android.support.v7.widget.CardView> |
| |
| </LinearLayout> |