Creating An Overlay Activity
Solution 1:
From what I can remember, only one Activity
can be active at any given time. So while that small Activity
in the corner is running, the other activitys will be paused and you wont be able to interact with them. You should try using a Fragment instead. You can have multiple fragments visible at the same time. Although I believe that only one Fragment
can be active at any given time like an Activity
, when you click on different fragments, the one you click on becomes active and you can interact with it. This might help you achieve what your looking for.
Solution 2:
i don't think that there is such a thing "an overlay activity" .
however, instead of using an activity, you could make the view on top, like i've shown here . when the user touches it, you would need to decide what would happen, and if you need to expand its size to be larger to show something else to the user...
btw, if all the activity does is to create an on top view, you can call finish() right at the end of the onCreate() method. also you can avoid using setContentView in case you inflate the view anyway...
Post a Comment for "Creating An Overlay Activity"