activity_gesture.xml 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  2. xmlns:tools="http://schemas.android.com/tools"
  3. android:layout_width="match_parent"
  4. android:layout_height="match_parent"
  5. tools:context="com.app.gokitchen.GestureActivity" >
  6. <!-- Header aligned to top -->
  7. <RelativeLayout
  8. android:id="@+id/header"
  9. android:layout_width="match_parent"
  10. android:layout_height="wrap_content"
  11. android:layout_alignParentTop="true"
  12. android:background="#FC9"
  13. android:gravity="center" >
  14. <ImageView
  15. android:contentDescription="@string/app_name"
  16. android:id="@+id/imageView1"
  17. android:layout_width="match_parent"
  18. android:layout_height="100dp"
  19. android:layout_alignParentTop="true"
  20. android:scaleType="centerCrop"
  21. android:src="@drawable/help" />
  22. </RelativeLayout>
  23. <!-- Footer aligned to bottom -->
  24. <RelativeLayout
  25. android:id="@+id/footer"
  26. android:layout_width="match_parent"
  27. android:layout_height="wrap_content"
  28. android:layout_alignParentBottom="true"
  29. android:background="#BCDF46"
  30. android:gravity="center" >
  31. <TextView
  32. android:layout_width="wrap_content"
  33. android:layout_height="wrap_content"
  34. android:layout_margin="3dp"
  35. android:text="@string/copyrigth"
  36. android:textColor="#000"
  37. android:textSize="12sp" />
  38. </RelativeLayout>
  39. <!-- Content below header and above footer -->
  40. <android.gesture.GestureOverlayView
  41. android:id="@+id/gestures"
  42. android:layout_width="match_parent"
  43. android:layout_height="match_parent"
  44. android:paddingBottom="@dimen/activity_vertical_margin"
  45. android:paddingLeft="@dimen/activity_horizontal_margin"
  46. android:paddingRight="@dimen/activity_horizontal_margin"
  47. android:paddingTop="@dimen/activity_vertical_margin"
  48. tools:context="com.app.gokitchen.GestureActivity" >
  49. <View
  50. android:id="@+id/viewGesture"
  51. android:layout_width="wrap_content"
  52. android:layout_height="wrap_content"
  53. android:layout_centerHorizontal="true"
  54. android:layout_centerVertical="true" />
  55. </android.gesture.GestureOverlayView>
  56. </RelativeLayout>