Skip to content

Instantly share code, notes, and snippets.

@TarekBenDriss
Created August 9, 2019 13:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save TarekBenDriss/42533589301200adec6e21bc7e068a5f to your computer and use it in GitHub Desktop.
Save TarekBenDriss/42533589301200adec6e21bc7e068a5f to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:custom="http://schemas.android.com/apk/res-auto"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".CustomCalendarActivity">
<com.bendriss.customcalendar.CustomCalendar
android:id="@+id/singleCalendar"
custom:layout_constraintStart_toStartOf="parent"
custom:layout_constraintEnd_toEndOf="parent"
custom:layout_constraintTop_toTopOf="parent"
custom:layout_constraintBottom_toBottomOf="parent"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
<com.bendriss.customcalendar.DoubleCustomCalendar
android:id="@+id/doubleCalendar"
android:visibility="invisible"
custom:layout_constraintStart_toStartOf="parent"
custom:layout_constraintEnd_toEndOf="parent"
custom:layout_constraintTop_toTopOf="parent"
custom:layout_constraintBottom_toBottomOf="parent"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
<Button
android:layout_width="0dp"
android:layout_height="wrap_content"
custom:layout_constraintStart_toStartOf="parent"
custom:layout_constraintEnd_toEndOf="parent"
custom:layout_constraintBottom_toBottomOf="parent"
android:layout_margin="16dp"
android:id="@+id/change"
android:text="Change Calendar"
/>
</android.support.constraint.ConstraintLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment