1<?xml version="1.0" encoding="utf-8"?> 2<!-- 3 ~ Copyright (C) 2015 The Android Open Source Project 4 ~ 5 ~ Licensed under the Apache License, Version 2.0 (the "License"); 6 ~ you may not use this file except in compliance with the License. 7 ~ You may obtain a copy of the License at 8 ~ 9 ~ http://www.apache.org/licenses/LICENSE-2.0 10 ~ 11 ~ Unless required by applicable law or agreed to in writing, software 12 ~ distributed under the License is distributed on an "AS IS" BASIS, 13 ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 ~ See the License for the specific language governing permissions and 15 ~ limitations under the License. 16 --> 17 18<com.android.tv.ui.BlockScreenView xmlns:android="http://schemas.android.com/apk/res/android" 19 android:layout_width="match_parent" 20 android:layout_height="match_parent" 21 android:visibility="gone" 22 android:background="@android:color/black"> 23 24 <ImageView 25 android:id="@+id/background_image" 26 android:layout_width="match_parent" 27 android:layout_height="match_parent" 28 android:scaleType="fitCenter" 29 android:visibility="gone" /> 30 31 <!-- This layout is used for the animation --> 32 <LinearLayout 33 android:id="@+id/block_screen_container" 34 android:orientation="vertical" 35 android:layout_width="match_parent" 36 android:layout_height="match_parent" 37 android:gravity="center" > 38 <FrameLayout 39 android:id="@+id/image_container" 40 android:layout_width="wrap_content" 41 android:layout_height="wrap_content" 42 android:layout_gravity="center" > 43 <ImageView 44 android:id="@+id/block_screen_icon" 45 android:layout_width="@dimen/tvview_block_icon_width" 46 android:layout_height="@dimen/tvview_block_icon_height" 47 android:layout_gravity="center" 48 android:scaleType="fitCenter" 49 android:contentDescription="@null" /> 50 <ImageView 51 android:id="@+id/block_screen_shrunken_icon" 52 android:src="@drawable/ic_message_lock_preview" 53 android:layout_width="@dimen/shrunken_tvview_block_icon_width" 54 android:layout_height="@dimen/shrunken_tvview_block_icon_height" 55 android:layout_gravity="center" 56 android:visibility="gone" 57 android:contentDescription="@null" /> 58 </FrameLayout> 59 <Space 60 android:id="@+id/space" 61 android:layout_width="match_parent" 62 android:layout_height="@dimen/tvview_block_vertical_spacing" /> 63 <TextView 64 android:id="@+id/block_screen_text" 65 android:layout_width="600dp" 66 android:layout_height="wrap_content" 67 android:layout_gravity="center" 68 android:gravity="center" 69 android:fontFamily="@string/font" 70 android:textSize="@dimen/tvview_block_text_size" 71 android:lineSpacingExtra="@dimen/tvview_block_line_spacing_extra" 72 android:textColor="@color/tvview_block_text_color" /> 73 </LinearLayout> 74</com.android.tv.ui.BlockScreenView> 75