| <?xml version="1.0" encoding="utf-8"?> |
| <!-- |
| Copyright (C) 2023 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/wallpaper_control_container" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:orientation="horizontal" |
| android:divider="@drawable/wallpaper_control_button_group_divider_horizontal" |
| android:showDividers="middle"> |
| <ToggleButton |
| android:id="@+id/information_button" |
| android:layout_width="@dimen/wallpaper_control_button_size" |
| android:layout_height="@dimen/wallpaper_control_button_size" |
| android:background="@android:color/transparent" |
| android:contentDescription="@string/tab_info" |
| android:elevation="@dimen/wallpaper_preview_buttons_elevation" |
| android:foreground="@drawable/wallpaper_control_button_info" |
| android:textOff="" |
| android:textOn="" /> |
| |
| <FrameLayout |
| android:id="@+id/download_button" |
| android:layout_width="@dimen/wallpaper_control_button_size" |
| android:layout_height="@dimen/wallpaper_control_button_size"> |
| <ToggleButton |
| android:id="@+id/download_button_toggle" |
| android:layout_width="match_parent" |
| android:layout_height="match_parent" |
| android:background="@android:color/transparent" |
| android:contentDescription="@string/bottom_action_bar_download" |
| android:foreground="@drawable/wallpaper_control_button_download" |
| android:textOff="" |
| android:textOn="" /> |
| |
| <FrameLayout |
| android:id="@+id/download_button_progress" |
| android:layout_width="match_parent" |
| android:layout_height="match_parent" |
| android:background="@drawable/wallpaper_control_button_off_background" |
| android:visibility="gone"> |
| <ProgressBar |
| android:layout_width="match_parent" |
| android:layout_height="match_parent" |
| android:indeterminateTint="?android:textColorTertiary"/> |
| </FrameLayout> |
| </FrameLayout> |
| |
| <ToggleButton |
| android:id="@+id/delete_button" |
| android:layout_width="@dimen/wallpaper_control_button_size" |
| android:layout_height="@dimen/wallpaper_control_button_size" |
| android:background="@android:color/transparent" |
| android:contentDescription="@string/delete_live_wallpaper" |
| android:elevation="@dimen/wallpaper_preview_buttons_elevation" |
| android:foreground="@drawable/wallpaper_control_button_delete" |
| android:textOff="" |
| android:textOn="" /> |
| |
| <ToggleButton |
| android:id="@+id/edit_button" |
| android:layout_width="@dimen/wallpaper_control_button_size" |
| android:layout_height="@dimen/wallpaper_control_button_size" |
| android:background="@android:color/transparent" |
| android:contentDescription="@string/edit_live_wallpaper" |
| android:elevation="@dimen/wallpaper_preview_buttons_elevation" |
| android:foreground="@drawable/wallpaper_control_button_edit" |
| android:textOff="" |
| android:textOn="" /> |
| |
| <ToggleButton |
| android:id="@+id/customize_button" |
| android:layout_width="@dimen/wallpaper_control_button_size" |
| android:layout_height="@dimen/wallpaper_control_button_size" |
| android:background="@android:color/transparent" |
| android:contentDescription="@string/tab_customize" |
| android:elevation="@dimen/wallpaper_preview_buttons_elevation" |
| android:foreground="@drawable/wallpaper_control_button_customize" |
| android:textOff="" |
| android:textOn="" /> |
| |
| <ToggleButton |
| android:id="@+id/effects_button" |
| android:layout_width="@dimen/wallpaper_control_button_size" |
| android:layout_height="@dimen/wallpaper_control_button_size" |
| android:background="@android:color/transparent" |
| android:contentDescription="@string/tab_effects" |
| android:elevation="@dimen/wallpaper_preview_buttons_elevation" |
| android:foreground="@drawable/wallpaper_control_button_effect" |
| android:textOff="" |
| android:textOn="" /> |
| |
| <ToggleButton |
| android:id="@+id/share_button" |
| android:layout_width="@dimen/wallpaper_control_button_size" |
| android:layout_height="@dimen/wallpaper_control_button_size" |
| android:background="@android:color/transparent" |
| android:contentDescription="@string/tab_share" |
| android:foreground="@drawable/wallpaper_control_button_share" |
| android:textOff="" |
| android:textOn="" /> |
| </LinearLayout> |
| |