FlipTimerView icon indicating copy to clipboard operation
FlipTimerView copied to clipboard

How to use only parts of the ui

Open PembaTamang opened this issue 3 years ago • 1 comments

I just want to use the hour and min part or hour min and secs without the day. How do I do that??

PembaTamang avatar Aug 13 '20 10:08 PembaTamang

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
    }

shridhar-creoit avatar Sep 21 '20 05:09 shridhar-creoit