apply side padding only to actual app activity, not widget

This commit is contained in:
tibbi 2016-09-24 19:27:40 +02:00
parent 67784321a8
commit f973266c0a
2 changed files with 5 additions and 3 deletions

View File

@ -53,6 +53,9 @@ class MonthFragment : Fragment(), Calendar {
setupLabels()
mCalendar = CalendarImpl(this, context)
val padding = resources.getDimension(R.dimen.activity_margin).toInt()
view.calendar_holder.setPadding(padding, padding, padding, padding)
return view
}

View File

@ -1,10 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
android:id="@+id/calendar_holder"
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/calendar_holder"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:padding="@dimen/activity_margin">
android:layout_height="match_parent">
<include layout="@layout/top_navigation"/>