Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- val fontSize = resources.getDimension(R.dimen.play_title_text_size)
- var size: Float = fontSize
- when (level) {
- Const.PracticeLevelOne -> size = fontSize
- Const.PracticeLevelTwo,
- Const.PracticeLevelThree -> size = (fontSize * 0.80).toFloat()
- }
- title.setTextSize(TypedValue.COMPLEX_UNIT_PX, size)
Add Comment
Please, Sign In to add comment