Changed some small code style issues
This commit is contained in:
parent
3147be1d9b
commit
6906a373b9
|
@ -73,7 +73,7 @@ class SmallMonthView(context: Context, attrs: AttributeSet, defStyle: Int) : Vie
|
|||
override fun onDraw(canvas: Canvas) {
|
||||
super.onDraw(canvas)
|
||||
if (mDayWidth == 0f) {
|
||||
if(resources.configuration.orientation == Configuration.ORIENTATION_LANDSCAPE){
|
||||
if (resources.configuration.orientation == Configuration.ORIENTATION_LANDSCAPE) {
|
||||
mDayWidth = (canvas.width / 9.2).toFloat()
|
||||
} else mDayWidth = (canvas.width / 8).toFloat()
|
||||
}
|
||||
|
|
|
@ -31,8 +31,7 @@
|
|||
android:layout_height="wrap_content"
|
||||
android:layout_below="@+id/month_1_label"
|
||||
android:layout_marginLeft="@dimen/yearly_month_left_padding"
|
||||
android:layout_marginStart="@dimen/yearly_month_left_padding"
|
||||
/>
|
||||
android:layout_marginStart="@dimen/yearly_month_left_padding" />
|
||||
|
||||
</RelativeLayout>
|
||||
|
||||
|
|
|
@ -15,6 +15,9 @@
|
|||
|
||||
<dimen name="repeat_type_margin_start">40dp</dimen>
|
||||
|
||||
<dimen name="yearly_month_left_padding">40dp</dimen>
|
||||
<dimen name="yearly_month_right_padding">40dp</dimen>
|
||||
|
||||
<dimen name="meta_text_size">14sp</dimen>
|
||||
<dimen name="day_text_size">17sp</dimen>
|
||||
<dimen name="month_text_size">22sp</dimen>
|
||||
|
|
Loading…
Reference in New Issue