I have searched on the internet and haven't found a clear answer so I'd try here. I hope there is a standard way to do this since I saw this in a few apps.
What I want to achieve is make the button disappear after 5 seconds when there is no action on the screen, and when users tap the screen, the button will appear. An example is the zoomin and zoom out button in the built-in browsers in android. And the buttons might be shared by multiple activities (prev and next pages), is there a way to just write one layout for the buttons and reuse it in different activities? Thanks.