add some margin to the month view
This commit is contained in:
parent
1205122af0
commit
37e03e959f
|
@ -43,7 +43,6 @@ public class MainActivity extends SimpleActivity implements Calendar {
|
||||||
|
|
||||||
@BindDimen(R.dimen.day_text_size) float mDayTextSize;
|
@BindDimen(R.dimen.day_text_size) float mDayTextSize;
|
||||||
@BindDimen(R.dimen.today_text_size) float mTodayTextSize;
|
@BindDimen(R.dimen.today_text_size) float mTodayTextSize;
|
||||||
@BindDimen(R.dimen.activity_margin) int mActivityMargin;
|
|
||||||
|
|
||||||
private static final int PREFILLED_MONTHS = 73;
|
private static final int PREFILLED_MONTHS = 73;
|
||||||
|
|
||||||
|
@ -78,9 +77,6 @@ public class MainActivity extends SimpleActivity implements Calendar {
|
||||||
mTodayTextSize /= mRes.getDisplayMetrics().density;
|
mTodayTextSize /= mRes.getDisplayMetrics().density;
|
||||||
setupLabels();
|
setupLabels();
|
||||||
|
|
||||||
/*final CoordinatorLayout.LayoutParams params = (CoordinatorLayout.LayoutParams) mCalendarHolder.getLayoutParams();
|
|
||||||
params.setMargins(mActivityMargin, mActivityMargin, mActivityMargin, mActivityMargin);*/
|
|
||||||
|
|
||||||
mCalendar = new CalendarImpl(this, getApplicationContext());
|
mCalendar = new CalendarImpl(this, getApplicationContext());
|
||||||
|
|
||||||
final String today = new DateTime().toString(Formatter.DAYCODE_PATTERN);
|
final String today = new DateTime().toString(Formatter.DAYCODE_PATTERN);
|
||||||
|
|
|
@ -9,6 +9,7 @@
|
||||||
<com.simplemobiletools.calendar.views.MyViewPager
|
<com.simplemobiletools.calendar.views.MyViewPager
|
||||||
android:id="@+id/view_pager"
|
android:id="@+id/view_pager"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
|
android:layout_margin="@dimen/activity_margin"
|
||||||
android:layout_height="match_parent"/>
|
android:layout_height="match_parent"/>
|
||||||
|
|
||||||
<android.support.design.widget.FloatingActionButton
|
<android.support.design.widget.FloatingActionButton
|
||||||
|
|
Loading…
Reference in New Issue