Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="utf-8"?>
- <layout xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto"
- xmlns:tools="http://schemas.android.com/tools">
- <android.support.constraint.ConstraintLayout
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- tools:context=".application.home.HomeActivity">
- <com.condecosoftware.core.dayview.DayView
- android:id="@+id/dayView"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- app:timeColumnWidth="52dp"
- app:timeColumnPadding="16dp"
- app:hourHeight="96dp"
- app:textSize="14sp"
- app:eventNameTextSize="18sp"
- app:hourSeparatorHeight="1dp"
- app:timeTextColor="@color/slateGrey"
- app:timeColumnBGColor="@color/white_2"
- app:hourSeparatorColor="@color/white_2"
- app:nowLineColor="@color/lipstick"
- app:eventColumnBGColor="@android:color/white"
- app:eventBGColor="@color/brightSkyBlue"
- app:eventCornerRadius="3.8dp"
- app:eventTextColor="@android:color/white"/>
- </android.support.constraint.ConstraintLayout>
- </layout>
- @SuppressLint("MissingSuperCall")
- override fun onCreateView(inflater: LayoutInflater?, container: ViewGroup?,
- savedInstanceState: Bundle?): View? {
- val viewBinding = FragmentBookingsTodayBinding.inflate(inflater ?: LayoutInflater.from(context))
- // Setup day view listeners
- viewBinding.dayView.eventClickListener = this
- viewBinding.dayView.eventLongPressListener = this
- viewBinding.dayView.dayViewCallbacks = this
- this.viewBinding = viewBinding
- return viewBinding.root
- }
Add Comment
Please, Sign In to add comment