user1125732
user1125732

Reputation: 1

pop up progress bar of a playing video only on touching the screen

I would like to create a progress bar for my video in such a way that while playing the video in full screen user wouldn't be able to see this progress bar but on touching the screen the progress bar should get pop up. Can any one help me please..

Thank you..

Upvotes: 0

Views: 361

Answers (2)

Shailendra Singh Rajawat
Shailendra Singh Rajawat

Reputation: 8242

although launching a video with standard ACTION_VIEW intent behave in this way by default . but rather you are interested in creating entire View by your own , set a touchListener on rootView and toggle visibility of progressbar ( which is a child of this root view ) on touch .

Action_View example

Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(url));
startActivity(intent);

Upvotes: 1

Yugandhar Babu
Yugandhar Babu

Reputation: 10349

You can switch the progress bar layout view between visible and invisible states to show/hide when user taps on screen.

To achieve popup type display use animation effects (In animation and Out animation for layout).

This is my suggestion only, i didn't tried this. But it may helpful to you please try this.

Upvotes: 0

Related Questions