activity_calendar.xml 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. android:id="@+id/layout_calendar"
  4. android:layout_width="fill_parent"
  5. android:layout_height="fill_parent"
  6. android:background="@color/white"
  7. >
  8. <RelativeLayout
  9. android:id="@+id/layout_top"
  10. android:layout_width="fill_parent"
  11. android:layout_height="50dp"
  12. android:visibility="visible"
  13. android:background="@color/calendar_top_bg">
  14. <TextView
  15. android:id="@+id/calendarCenter"
  16. style="@style/main_bar_text_style"
  17. android:layout_width="wrap_content"
  18. android:layout_height="wrap_content"
  19. android:layout_centerHorizontal="true"
  20. android:layout_centerVertical="true"
  21. android:layout_margin="8dp" />
  22. <ImageButton
  23. android:id="@+id/calendarLeft"
  24. android:layout_width="wrap_content"
  25. android:layout_height="wrap_content"
  26. android:layout_marginLeft="12dp"
  27. android:layout_alignParentLeft="true"
  28. android:layout_centerVertical="true"
  29. android:background="@null"
  30. android:contentDescription="@null"
  31. android:src="@drawable/calendar_month_left" />
  32. <ImageButton
  33. android:id="@+id/calendarRight"
  34. android:layout_width="wrap_content"
  35. android:layout_height="wrap_content"
  36. android:layout_marginRight="12dp"
  37. android:layout_alignParentRight="true"
  38. android:layout_centerVertical="true"
  39. android:background="@null"
  40. android:contentDescription="@null"
  41. android:src="@drawable/calendar_month_right" />
  42. </RelativeLayout>
  43. <com.jiaju.widget.CalendarView
  44. android:id="@+id/calendar"
  45. android:layout_width="fill_parent"
  46. android:layout_height="fill_parent"
  47. android:layout_alignParentLeft="true"
  48. android:background="@color/white"
  49. android:layout_below="@id/layout_top" />
  50. </RelativeLayout>