FlipTimerView
FlipTimerView copied to clipboard
How to use only parts of the ui
You can use this for now
timerProgramCountdown.findViewById<CountDownDigit>(R.id.firstDigitDays).visibility = GONE
timerProgramCountdown.findViewById<CountDownDigit>(R.id.secondDigitDays).visibility = GONE
timerProgramCountdown.findViewById<CountDownDigit>(R.id.firstDigitHours).visibility = GONE
timerProgramCountdown.findViewById<CountDownDigit>(R.id.secondDigitHours).visibility = GONE
(timerProgramCountdown.children.firstOrNull() as? LinearLayout)?.children?.firstOrNull()?.also {
((it as? RelativeLayout)?.children?.toList()?.getOrNull(2) as? TextView)?.visibility = GONE
}
You can use this for now
timerProgramCountdown.findViewById<CountDownDigit>(R.id.firstDigitDays).visibility = GONE timerProgramCountdown.findViewById<CountDownDigit>(R.id.secondDigitDays).visibility = GONE timerProgramCountdown.findViewById<CountDownDigit>(R.id.firstDigitHours).visibility = GONE timerProgramCountdown.findViewById<CountDownDigit>(R.id.secondDigitHours).visibility = GONE (timerProgramCountdown.children.firstOrNull() as? LinearLayout)?.children?.firstOrNull()?.also { ((it as? RelativeLayout)?.children?.toList()?.getOrNull(2) as? TextView)?.visibility = GONE }
Is hides the days and hours digits and only "Days" text. I need to hide the "Hours" text as well. How to do that?
timerProgramCountdown.findViewById<TextView>(R.id.ddd).visibility = GONE
This will hide the "Hours" text