mirror of
https://github.com/SimpleMobileTools/Simple-Calendar.git
synced 2025-06-05 21:59:17 +02:00
apply side padding only to actual app activity, not widget
This commit is contained in:
@@ -53,6 +53,9 @@ class MonthFragment : Fragment(), Calendar {
|
|||||||
setupLabels()
|
setupLabels()
|
||||||
mCalendar = CalendarImpl(this, context)
|
mCalendar = CalendarImpl(this, context)
|
||||||
|
|
||||||
|
val padding = resources.getDimension(R.dimen.activity_margin).toInt()
|
||||||
|
view.calendar_holder.setPadding(padding, padding, padding, padding)
|
||||||
|
|
||||||
return view
|
return view
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -1,10 +1,9 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<RelativeLayout
|
<RelativeLayout
|
||||||
android:id="@+id/calendar_holder"
|
|
||||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
android:id="@+id/calendar_holder"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent">
|
||||||
android:padding="@dimen/activity_margin">
|
|
||||||
|
|
||||||
<include layout="@layout/top_navigation"/>
|
<include layout="@layout/top_navigation"/>
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user