edit the year view ids

This commit is contained in:
tibbi 2016-10-19 19:15:55 +02:00
parent ed9d0a42cd
commit 40082abc8a
2 changed files with 25 additions and 25 deletions

View File

@ -21,7 +21,7 @@ class YearFragment : Fragment() {
mYear = arguments.getInt(Constants.YEAR_LABEL) mYear = arguments.getInt(Constants.YEAR_LABEL)
val days = DateTime().withYear(mYear).withDayOfMonth(1).withMonthOfYear(2).dayOfMonth().maximumValue val days = DateTime().withYear(mYear).withDayOfMonth(1).withMonthOfYear(2).dayOfMonth().maximumValue
view.february_value.setDays(days) view.month_2.setDays(days)
return view return view
} }

View File

@ -10,7 +10,7 @@
<TableRow android:layout_weight="1"> <TableRow android:layout_weight="1">
<RelativeLayout <RelativeLayout
android:id="@+id/month_1" android:id="@+id/month_1_holder"
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="match_parent" android:layout_height="match_parent"
android:layout_marginRight="@dimen/yearly_padding_full" android:layout_marginRight="@dimen/yearly_padding_full"
@ -26,7 +26,7 @@
android:textSize="@dimen/normal_text_size"/> android:textSize="@dimen/normal_text_size"/>
<com.simplemobiletools.calendar.views.SmallMonthView <com.simplemobiletools.calendar.views.SmallMonthView
android:id="@+id/january_value" android:id="@+id/month_1"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_below="@+id/january_label"/> android:layout_below="@+id/january_label"/>
@ -34,7 +34,7 @@
</RelativeLayout> </RelativeLayout>
<RelativeLayout <RelativeLayout
android:id="@+id/month_2" android:id="@+id/month_2_holder"
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="match_parent" android:layout_height="match_parent"
android:layout_marginLeft="@dimen/yearly_padding_half" android:layout_marginLeft="@dimen/yearly_padding_half"
@ -51,7 +51,7 @@
android:textSize="@dimen/normal_text_size"/> android:textSize="@dimen/normal_text_size"/>
<com.simplemobiletools.calendar.views.SmallMonthView <com.simplemobiletools.calendar.views.SmallMonthView
android:id="@+id/february_value" android:id="@+id/month_2"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_below="@+id/february_label"/> android:layout_below="@+id/february_label"/>
@ -59,7 +59,7 @@
</RelativeLayout> </RelativeLayout>
<RelativeLayout <RelativeLayout
android:id="@+id/month_3" android:id="@+id/month_3_holder"
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="match_parent" android:layout_height="match_parent"
android:layout_marginLeft="@dimen/yearly_padding_full" android:layout_marginLeft="@dimen/yearly_padding_full"
@ -75,7 +75,7 @@
android:textSize="@dimen/normal_text_size"/> android:textSize="@dimen/normal_text_size"/>
<com.simplemobiletools.calendar.views.SmallMonthView <com.simplemobiletools.calendar.views.SmallMonthView
android:id="@+id/march_value" android:id="@+id/month_3"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_below="@+id/march_label"/> android:layout_below="@+id/march_label"/>
@ -85,7 +85,7 @@
<TableRow android:layout_weight="1"> <TableRow android:layout_weight="1">
<RelativeLayout <RelativeLayout
android:id="@+id/month_4" android:id="@+id/month_4_holder"
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="match_parent" android:layout_height="match_parent"
android:layout_marginRight="@dimen/yearly_padding_full" android:layout_marginRight="@dimen/yearly_padding_full"
@ -101,7 +101,7 @@
android:textSize="@dimen/normal_text_size"/> android:textSize="@dimen/normal_text_size"/>
<com.simplemobiletools.calendar.views.SmallMonthView <com.simplemobiletools.calendar.views.SmallMonthView
android:id="@+id/april_value" android:id="@+id/month_4"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:layout_below="@+id/april_label" android:layout_below="@+id/april_label"
@ -109,7 +109,7 @@
</RelativeLayout> </RelativeLayout>
<RelativeLayout <RelativeLayout
android:id="@+id/month_5" android:id="@+id/month_5_holder"
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="match_parent" android:layout_height="match_parent"
android:layout_marginLeft="@dimen/yearly_padding_half" android:layout_marginLeft="@dimen/yearly_padding_half"
@ -126,7 +126,7 @@
android:textSize="@dimen/normal_text_size"/> android:textSize="@dimen/normal_text_size"/>
<com.simplemobiletools.calendar.views.SmallMonthView <com.simplemobiletools.calendar.views.SmallMonthView
android:id="@+id/may_value" android:id="@+id/month_5"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:layout_below="@+id/may_label"/> android:layout_below="@+id/may_label"/>
@ -134,7 +134,7 @@
</RelativeLayout> </RelativeLayout>
<RelativeLayout <RelativeLayout
android:id="@+id/month_6" android:id="@+id/month_6_holder"
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="match_parent" android:layout_height="match_parent"
android:layout_marginLeft="@dimen/yearly_padding_full" android:layout_marginLeft="@dimen/yearly_padding_full"
@ -150,7 +150,7 @@
android:textSize="@dimen/normal_text_size"/> android:textSize="@dimen/normal_text_size"/>
<com.simplemobiletools.calendar.views.SmallMonthView <com.simplemobiletools.calendar.views.SmallMonthView
android:id="@+id/june_value" android:id="@+id/month_6"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:layout_below="@+id/june_label" android:layout_below="@+id/june_label"
@ -161,7 +161,7 @@
<TableRow android:layout_weight="1"> <TableRow android:layout_weight="1">
<RelativeLayout <RelativeLayout
android:id="@+id/month_7" android:id="@+id/month_7_holder"
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="match_parent" android:layout_height="match_parent"
android:layout_marginRight="@dimen/yearly_padding_full" android:layout_marginRight="@dimen/yearly_padding_full"
@ -177,14 +177,14 @@
android:textSize="@dimen/normal_text_size"/> android:textSize="@dimen/normal_text_size"/>
<com.simplemobiletools.calendar.views.SmallMonthView <com.simplemobiletools.calendar.views.SmallMonthView
android:id="@+id/july_value" android:id="@+id/month_7"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:layout_below="@+id/july_label"/> android:layout_below="@+id/july_label"/>
</RelativeLayout> </RelativeLayout>
<RelativeLayout <RelativeLayout
android:id="@+id/month_8" android:id="@+id/month_8_holder"
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="match_parent" android:layout_height="match_parent"
android:layout_marginLeft="@dimen/yearly_padding_half" android:layout_marginLeft="@dimen/yearly_padding_half"
@ -201,14 +201,14 @@
android:textSize="@dimen/normal_text_size"/> android:textSize="@dimen/normal_text_size"/>
<com.simplemobiletools.calendar.views.SmallMonthView <com.simplemobiletools.calendar.views.SmallMonthView
android:id="@+id/august_value" android:id="@+id/month_8"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:layout_below="@+id/august_label"/> android:layout_below="@+id/august_label"/>
</RelativeLayout> </RelativeLayout>
<RelativeLayout <RelativeLayout
android:id="@+id/month_9" android:id="@+id/month_9_holder"
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="match_parent" android:layout_height="match_parent"
android:layout_marginLeft="@dimen/yearly_padding_full" android:layout_marginLeft="@dimen/yearly_padding_full"
@ -224,7 +224,7 @@
android:textSize="@dimen/normal_text_size"/> android:textSize="@dimen/normal_text_size"/>
<com.simplemobiletools.calendar.views.SmallMonthView <com.simplemobiletools.calendar.views.SmallMonthView
android:id="@+id/september_value" android:id="@+id/month_9"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:layout_below="@+id/september_label" android:layout_below="@+id/september_label"
@ -235,7 +235,7 @@
<TableRow android:layout_weight="1"> <TableRow android:layout_weight="1">
<RelativeLayout <RelativeLayout
android:id="@+id/month_10" android:id="@+id/month_10_holder"
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="match_parent" android:layout_height="match_parent"
android:layout_marginRight="@dimen/yearly_padding_full" android:layout_marginRight="@dimen/yearly_padding_full"
@ -251,14 +251,14 @@
android:textSize="@dimen/normal_text_size"/> android:textSize="@dimen/normal_text_size"/>
<com.simplemobiletools.calendar.views.SmallMonthView <com.simplemobiletools.calendar.views.SmallMonthView
android:id="@+id/october_value" android:id="@+id/month_10"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:layout_below="@+id/october_label"/> android:layout_below="@+id/october_label"/>
</RelativeLayout> </RelativeLayout>
<RelativeLayout <RelativeLayout
android:id="@+id/month_11" android:id="@+id/month_11_holder"
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="match_parent" android:layout_height="match_parent"
android:layout_marginLeft="@dimen/yearly_padding_half" android:layout_marginLeft="@dimen/yearly_padding_half"
@ -275,7 +275,7 @@
android:textSize="@dimen/normal_text_size"/> android:textSize="@dimen/normal_text_size"/>
<com.simplemobiletools.calendar.views.SmallMonthView <com.simplemobiletools.calendar.views.SmallMonthView
android:id="@+id/november_value" android:id="@+id/month_11"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:layout_below="@+id/november_label" android:layout_below="@+id/november_label"
@ -283,7 +283,7 @@
</RelativeLayout> </RelativeLayout>
<RelativeLayout <RelativeLayout
android:id="@+id/month_12" android:id="@+id/month_12_holder"
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="match_parent" android:layout_height="match_parent"
android:layout_marginLeft="@dimen/yearly_padding_full" android:layout_marginLeft="@dimen/yearly_padding_full"
@ -299,7 +299,7 @@
android:textSize="@dimen/normal_text_size"/> android:textSize="@dimen/normal_text_size"/>
<com.simplemobiletools.calendar.views.SmallMonthView <com.simplemobiletools.calendar.views.SmallMonthView
android:id="@+id/december_value" android:id="@+id/month_12"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:layout_below="@+id/december_label"/> android:layout_below="@+id/december_label"/>