123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 |
- <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:tools="http://schemas.android.com/tools"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- tools:context="com.app.gokitchen.GestureActivity" >
-
- <!-- Header aligned to top -->
- <RelativeLayout
- android:id="@+id/header"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_alignParentTop="true"
- android:background="#FC9"
- android:gravity="center" >
- <ImageView
- android:contentDescription="@string/app_name"
- android:id="@+id/imageView1"
- android:layout_width="match_parent"
- android:layout_height="100dp"
- android:layout_alignParentTop="true"
- android:scaleType="centerCrop"
- android:src="@drawable/help" />
- </RelativeLayout>
-
- <!-- Footer aligned to bottom -->
- <RelativeLayout
- android:id="@+id/footer"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_alignParentBottom="true"
- android:background="#BCDF46"
- android:gravity="center" >
- <TextView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_margin="3dp"
- android:text="@string/copyrigth"
- android:textColor="#000"
- android:textSize="12sp" />
- </RelativeLayout>
-
- <!-- Content below header and above footer -->
-
- <android.gesture.GestureOverlayView
- android:id="@+id/gestures"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:paddingBottom="@dimen/activity_vertical_margin"
- android:paddingLeft="@dimen/activity_horizontal_margin"
- android:paddingRight="@dimen/activity_horizontal_margin"
- android:paddingTop="@dimen/activity_vertical_margin"
- tools:context="com.app.gokitchen.GestureActivity" >
- <View
- android:id="@+id/viewGesture"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_centerHorizontal="true"
- android:layout_centerVertical="true" />
- </android.gesture.GestureOverlayView>
- </RelativeLayout>
|