Home | History | Annotate | Download | only in layout
      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 <!-- id/intro is used by uitests -->
     19 <com.android.tv.ui.IntroView
     20     xmlns:android="http://schemas.android.com/apk/res/android"
     21     android:id="@+id/intro"
     22     android:layout_width="match_parent"
     23     android:layout_height="match_parent">
     24     <View
     25         android:id="@+id/background"
     26         android:layout_width="match_parent"
     27         android:layout_height="match_parent"
     28         android:background="@color/setup_background" />
     29     <RelativeLayout
     30         android:id="@+id/container"
     31         android:layout_width="match_parent"
     32         android:layout_height="match_parent"
     33         android:paddingTop="111dp"
     34         android:paddingBottom="60dp">
     35         <TextView
     36             android:layout_width="wrap_content"
     37             android:layout_height="wrap_content"
     38             android:layout_centerHorizontal="true"
     39             android:layout_alignParentTop="true"
     40             android:text="@string/intro_title"
     41             android:fontFamily="@string/light_font"
     42             android:textColor="@color/setup_title"
     43             android:textSize="34sp" />
     44         <TextView
     45             android:id="@+id/setup_description"
     46             android:layout_width="wrap_content"
     47             android:layout_height="wrap_content"
     48             android:layout_centerHorizontal="true"
     49             android:layout_alignParentBottom="true"
     50             android:paddingTop="60dp"
     51             android:text="@string/intro_description"
     52             android:fontFamily="@string/font"
     53             android:textColor="@color/setup_description"
     54             android:textSize="14sp"/>
     55         <FrameLayout
     56             android:layout_width="wrap_content"
     57             android:layout_height="wrap_content"
     58             android:layout_centerHorizontal="true"
     59             android:layout_above="@id/setup_description">
     60             <ImageView
     61                 android:layout_width="128dp"
     62                 android:layout_height="128dp"
     63                 android:src="@drawable/ic_welcome_remote" />
     64             <View
     65                 android:id="@+id/welcome_ripple"
     66                 android:layout_width="51dp"
     67                 android:layout_height="51dp"
     68                 android:layout_gravity="center"
     69                 android:background="@drawable/ic_welcome_ripple_anim" />
     70         </FrameLayout>
     71     </RelativeLayout>
     72 </com.android.tv.ui.IntroView>
     73