Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use only parts of the ui #15

Open
PembaTamang opened this issue Aug 13, 2020 · 1 comment
Open

How to use only parts of the ui #15

PembaTamang opened this issue Aug 13, 2020 · 1 comment

Comments

@PembaTamang
Copy link

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

@shridhar-creoit
Copy link

shridhar-creoit commented Sep 21, 2020

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
    }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants