• Source
    1. <android.support.v7.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android"
    2. xmlns:tools="http://schemas.android.com/tools"
    3. android:id="@+id/month_view"
    4. android:layout_width="match_parent"
    5. android:layout_height="wrap_content"
    6. android:minHeight="70dp"
    7. android:layout_margin="2dp"
    8.  
    9. tools:android="http://schemas.android.com/apk/res-auto">
    10. <LinearLayout
    11. android:layout_width="match_parent"
    12. android:layout_height="match_parent"
    13. android:orientation="vertical">
    14.  
    15. <TextView
    16. android:id="@+id/month_name"
    17. android:layout_width="wrap_content"
    18. android:layout_height="@dimen/head_month_size"
    19. android:layout_gravity="center_horizontal"
    20. android:gravity="center" />
    21.  
    22. <ru.workcal.ExpGridView
    23. android:gravity="center"
    24. android:rotation="0"
    25. android:layoutDirection="ltr"
    26. android:layout_width="match_parent"
    27. android:layout_height="wrap_content"
    28. android:id="@+id/month_grid"
    29. android:numColumns="7"
    30. android:stretchMode="columnWidth">
    31. </ru.workcal.ExpGridView>
    32.  
    33. </LinearLayout>
    34. </android.support.v7.widget.CardView>