mirror of
https://github.com/SimpleMobileTools/Simple-Calendar.git
synced 2025-02-16 20:00:39 +01:00
apply side padding only to actual app activity, not widget
This commit is contained in:
parent
67784321a8
commit
f973266c0a
@ -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
|
||||
}
|
||||
|
||||
|
@ -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"/>
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user