feat(creator): 채널 홈 Activity 진입점을 추가한다
This commit is contained in:
@@ -31,6 +31,8 @@ abstract class BaseActivity<T : ViewBinding>(
|
||||
lateinit var binding: T
|
||||
private set
|
||||
|
||||
protected open val shouldApplySystemBarTopInset: Boolean = true
|
||||
|
||||
val screenWidth: Int by lazy {
|
||||
resources.displayMetrics.widthPixels
|
||||
}
|
||||
@@ -81,7 +83,7 @@ abstract class BaseActivity<T : ViewBinding>(
|
||||
|
||||
// 루트는 좌/우/하만 처리(상단은 Toolbar에 위임). IME가 등장하면 하단 패딩을 IME 높이까지 확장
|
||||
val left = max(systemBars.left, ime.left)
|
||||
val top = systemBars.top
|
||||
val top = if (shouldApplySystemBarTopInset) systemBars.top else 0
|
||||
val right = max(systemBars.right, ime.right)
|
||||
val bottom = max(systemBars.bottom, ime.bottom)
|
||||
v.setPadding(left, top, right, bottom)
|
||||
|
||||
Reference in New Issue
Block a user