Kopaj-Menedzser / app / src / main / res / layout / fragment_month_view.xml
fragment_month_view.xml
Raw
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:orientation="vertical"
    android:layout_width="match_parent"
    android:layout_height="match_parent">

    <!-- Napok nevei (Hétfő, Kedd, ...) -->
    <LinearLayout
        android:id="@+id/weekdaysRow"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:orientation="horizontal"
        android:weightSum="7">

        <!-- Dynamikusan tölthető vagy statikusan -->
        <TextView android:layout_width="0dp"
            android:layout_height="wrap_content" android:layout_weight="1" android:text="H" style="@style/WeekDayStyle"/>
        <TextView android:layout_width="0dp"
            android:layout_height="wrap_content" android:layout_weight="1" android:text="K" style="@style/WeekDayStyle"/>
        <TextView android:layout_width="0dp"
            android:layout_height="wrap_content" android:layout_weight="1" android:text="Sz" style="@style/WeekDayStyle"/>
        <TextView android:layout_width="0dp"
            android:layout_height="wrap_content" android:layout_weight="1" android:text="Cs" style="@style/WeekDayStyle"/>
        <TextView android:layout_width="0dp"
            android:layout_height="wrap_content" android:layout_weight="1" android:text="P" style="@style/WeekDayStyle"/>
        <TextView android:layout_width="0dp"
            android:layout_height="wrap_content" android:layout_weight="1" android:text="Szo" style="@style/WeekDayStyle"/>
        <TextView android:layout_width="0dp"
            android:layout_height="wrap_content" android:layout_weight="1" android:text="V" style="@style/WeekDayStyle"/>
    </LinearLayout>

    <!-- Napok és események -->
    <androidx.recyclerview.widget.RecyclerView
        android:id="@+id/calendarGrid"
        android:layout_width="match_parent"
        android:layout_height="0dp"
        android:layout_weight="1"/>
</LinearLayout>