Center board considering navigation bar
This commit is contained in:
parent
2f141f1b73
commit
d1fa4ec806
1 changed files with 4 additions and 1 deletions
|
@ -67,7 +67,10 @@ abstract class CommonLevelFragment : Fragment() {
|
|||
0
|
||||
}
|
||||
|
||||
val height = displayMetrics.heightPixels - actionBarHeight
|
||||
val resourceId: Int = resources.getIdentifier("navigation_bar_height", "dimen", "android")
|
||||
val bottom = if (resourceId > 0) { resources.getDimensionPixelSize(resourceId) } else 0
|
||||
|
||||
val height = displayMetrics.heightPixels - actionBarHeight - bottom
|
||||
val recyclerViewHeight = (dimensionRepository.areaSize() * boardHeight)
|
||||
val separatorsHeight = (dimensionRepository.areaSeparator() * (boardHeight - 1))
|
||||
|
||||
|
|
Loading…
Reference in a new issue