Home | History | Annotate | Download | only in layout
      1 <?xml version="1.0" encoding="utf-8"?>
      2 <!-- Copyright (C) 2009 The Android Open Source Project
      3 
      4      Licensed under the Apache License, Version 2.0 (the "License");
      5      you may not use this file except in compliance with the License.
      6      You may obtain a copy of the License at
      7 
      8           http://www.apache.org/licenses/LICENSE-2.0
      9 
     10      Unless required by applicable law or agreed to in writing, software
     11      distributed under the License is distributed on an "AS IS" BASIS,
     12      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     13      See the License for the specific language governing permissions and
     14      limitations under the License.
     15 -->
     16 
     17 <LinearLayout
     18   xmlns:android="http://schemas.android.com/apk/res/android"
     19   android:layout_width="match_parent"
     20   android:layout_height="match_parent"
     21   android:orientation="vertical"
     22   android:background="@drawable/background">
     23 
     24   <LinearLayout
     25     android:layout_weight="1"
     26     android:layout_width="match_parent"
     27     android:layout_height="match_parent">
     28 
     29     <!-- Notice that widget sizes are expressed in dip, or device-independent
     30          pixels, while text sizes are expressed in sp, or scale-independent
     31          pixels, to factor in user-chosen font sizes. -->
     32     <FrameLayout
     33       android:layout_width="match_parent"
     34       android:layout_height="match_parent"
     35       android:id="@+id/image_container"
     36       android:background="@drawable/image_container">
     37       <ImageView
     38         android:layout_width="match_parent"
     39         android:layout_height="match_parent"
     40         android:id="@+id/image_view"
     41         android:scaleType="fitCenter"/>
     42       <TextView
     43         android:layout_width="wrap_content"
     44         android:layout_height="wrap_content"
     45         android:layout_gravity="bottom|center_horizontal"
     46         android:id="@+id/status_text"
     47         android:textColor="@android:color/primary_text_dark"
     48         android:textSize="16sp"
     49         android:shadowDx="1.0"
     50         android:shadowDy="1.0"
     51         android:shadowRadius="1"
     52         android:layout_margin="5dip"
     53         android:shadowColor="@android:color/background_dark"/>
     54     </FrameLayout>
     55   </LinearLayout>
     56 
     57   <LinearLayout
     58     android:layout_width="match_parent"
     59     android:layout_height="wrap_content"
     60     android:layout_marginTop="10dip"
     61     android:gravity="center">
     62     <Button
     63       android:text="@string/next_button"
     64       android:id="@+id/next_button"
     65       android:layout_width="wrap_content"
     66       android:layout_height="wrap_content"
     67       android:drawableLeft="@drawable/android"
     68       android:textSize="24sp"/>
     69   </LinearLayout>
     70 
     71 </LinearLayout>
     72