Guest User

Untitled

a guest
Oct 21st, 2017
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.79 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <layout xmlns:android="http://schemas.android.com/apk/res/android"
  3. xmlns:app="http://schemas.android.com/apk/res-auto"
  4. xmlns:tools="http://schemas.android.com/tools">
  5.  
  6. <android.support.constraint.ConstraintLayout
  7. android:layout_width="match_parent"
  8. android:layout_height="match_parent"
  9. tools:context=".application.home.HomeActivity">
  10.  
  11. <com.condecosoftware.core.dayview.DayView
  12. android:id="@+id/dayView"
  13. android:layout_width="match_parent"
  14. android:layout_height="match_parent"
  15. app:timeColumnWidth="52dp"
  16. app:timeColumnPadding="16dp"
  17. app:hourHeight="96dp"
  18. app:textSize="14sp"
  19. app:eventNameTextSize="18sp"
  20. app:hourSeparatorHeight="1dp"
  21. app:timeTextColor="@color/slateGrey"
  22. app:timeColumnBGColor="@color/white_2"
  23. app:hourSeparatorColor="@color/white_2"
  24. app:nowLineColor="@color/lipstick"
  25. app:eventColumnBGColor="@android:color/white"
  26. app:eventBGColor="@color/brightSkyBlue"
  27. app:eventCornerRadius="3.8dp"
  28. app:eventTextColor="@android:color/white"/>
  29.  
  30. </android.support.constraint.ConstraintLayout>
  31. </layout>
  32.  
  33. @SuppressLint("MissingSuperCall")
  34. override fun onCreateView(inflater: LayoutInflater?, container: ViewGroup?,
  35. savedInstanceState: Bundle?): View? {
  36.  
  37. val viewBinding = FragmentBookingsTodayBinding.inflate(inflater ?: LayoutInflater.from(context))
  38.  
  39. // Setup day view listeners
  40. viewBinding.dayView.eventClickListener = this
  41. viewBinding.dayView.eventLongPressListener = this
  42. viewBinding.dayView.dayViewCallbacks = this
  43.  
  44. this.viewBinding = viewBinding
  45.  
  46. return viewBinding.root
  47. }
Add Comment
Please, Sign In to add comment