Hide A Layout After 10 Seconds In Android?

前端 未结 6 383
旧巷少年郎
旧巷少年郎 2021-02-04 07:30

I have a layout displayed on a button click.I want to hide that layout after 10 seconds.

protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(         


        
6条回答
  •  囚心锁ツ
    2021-02-04 08:30

    none of those above are good solutions. Imagine that the view is not visible after 10s (eg: it was scrolled down) so the Visibility.GONE will not work on it. I am still looking for a solutions

提交回复
热议问题