Skip to content

Commit

Permalink
design : 식단 날짜부 높이 고정
Browse files Browse the repository at this point in the history
  • Loading branch information
huiwoo-jo committed Apr 3, 2024
1 parent 958eecb commit ab08b74
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package com.dongyang.android.youdongknowme.ui.view.cafeteria

import android.annotation.SuppressLint
import android.util.TypedValue
import android.view.MotionEvent
import android.view.View
import androidx.recyclerview.widget.RecyclerView
Expand Down Expand Up @@ -58,7 +59,11 @@ class CafeteriaFragment : BaseFragment<FragmentCafeteriaBinding, CafeteriaViewMo

binding.cvCafeteriaCalendar.apply {
val dayWidth = wmc.bounds.width() / 5
val dayHeight: Int = (dayWidth * 1.25).toInt()
val dayHeight: Int = TypedValue.applyDimension(
TypedValue.COMPLEX_UNIT_DIP,
124f,
resources.displayMetrics
).toInt()

daySize = Size(dayWidth, dayHeight)
}
Expand Down

0 comments on commit ab08b74

Please sign in to comment.