android-fullscreen

Android floating window with hidden statusbar Accessibility problems

强颜欢笑 提交于 2019-12-06 09:33:09
I am working on android 4.4.2 building an application with a system overlay/floating window created by an accessibility service. Edit: I want to be able to hide the status bar GLOBALLY (in any app) (made possible by the code below) however when the overlay is shown i stop receiving acessibilityEvents from the listener and the software/hardware back button When the floating view is injected into windowmanager: AccessibilityEvent listener does not receive updates Soft/hardware back key does not register (home/recents does) in order to hide the status bar both 'FLAG_FULLSCREEN | FLAG_NOT_TOUCH

Rotate screen when HTML5 video playing in fullscreen

折月煮酒 提交于 2019-12-05 22:51:09
First of all, i would like to apologize for my bad level in english, and for all the mistakes i might have done in this post. I'm also a "junior" in Android devloppement (i'm doing this on my free time), i'm not good and experienced enough yet ^^ so sorry if i might have some difficulties to understands the answer you might give me. So what i'm doing ? I'm creating a simple Android App. It's just a Webview to load my website. My website is just a random Youtube video player. First i had the problem to play HTML5 Video in Fullscreen. I succeed to done that with this project VideoEnabledWebView

How to make VideoView full screen

杀马特。学长 韩版系。学妹 提交于 2019-12-05 21:02:22
I want to play a video in my Activity using a VideoView ,and make it fullscreen and landscape mode (with hiding virtual button and status bar)when I click a Button . But it can not hide the virtual button and it has a white line in bottom. This my activity code: public class VideoActivity extends Activity { private VideoView mVideoView; private String mUrl; private Button mFullScreen; private static String TAG = VideoActivity.class.getName(); @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); Log.d(TAG,"onCreate"); setContentView(R.layout.video);

How to completely exit from Immersive full screen mode?

梦想的初衷 提交于 2019-12-05 16:09:23
问题 I would like to implement a button to enable/disable the immersive full screen mode. I'm using those methods but the showSystemUI only shows quickly and hide again... How to completely exit from immersive mode? My methods: // This snippet hides the system bars. @SuppressLint("NewApi") private void hideSystemUI() { try{ // Set the IMMERSIVE flag. // Set the content to appear under the system bars so that the content // doesn't resize when the system bars hide and show. mDecorView

Smooth transition between full-screen-activity and one with notification-bar and action bar

坚强是说给别人听的谎言 提交于 2019-12-05 04:11:58
Background I have an app that has 2 activities : splash activity, which is shown in full screen (no action bar, no notification bar) main activity, which has both action bar (uses actionBarSherlock) and notification bar. The problem For some reason, when going from the first activity to the second, there is a "jumpy" layout process , which shows the content of the second activity without the action bar and notification bar, and a moment later it shows them both. This causes the content below to move too, which is very noticeable. Possible solution As I've seen, a possible solution would be to

How to completely exit from Immersive full screen mode?

允我心安 提交于 2019-12-04 01:22:01
I would like to implement a button to enable/disable the immersive full screen mode. I'm using those methods but the showSystemUI only shows quickly and hide again... How to completely exit from immersive mode? My methods: // This snippet hides the system bars. @SuppressLint("NewApi") private void hideSystemUI() { try{ // Set the IMMERSIVE flag. // Set the content to appear under the system bars so that the content // doesn't resize when the system bars hide and show. mDecorView.setSystemUiVisibility( View.SYSTEM_UI_FLAG_LAYOUT_STABLE | View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION | View.SYSTEM

Android WebView html5 video force fullscreen

纵饮孤独 提交于 2019-12-03 22:33:31
I have been working on this issue for at least one week. I have read all the post about it in StackOverflow but I still not founding the solution and I am starting to think that this is impossible. I want to display an HTML in a webview embebbed in a layout like this: The problem is that if that HTML code has an HTML5 video inside it will be cropped due to a bug in Android OS: Link to bug . I have tried many workarounds but none of them seems to be working. My last attempt is to show the video on fullscreen for devices lower than Jelly Bean (they have fixed the error for this version). I do

Full Screen without navigation & status bars

南楼画角 提交于 2019-12-03 09:45:09
问题 I want to create a activity with full screen. Nothing on above like Notification Bar and nothing below like Home-Button etc.I am able to get this, but also wanted to remove below home-button bar: This is my code. <style name="MyScreen" parent="@style/Theme.AppCompat.Light"> <item name="windowNoTitle">true</item> <item name="windowActionBar">false</item> <item name="android:windowFullscreen">true</item> <item name="android:windowContentOverlay">@null</item> </style> 回答1: What you need is

Create a transparent dialog on top of activity

三世轮回 提交于 2019-12-03 05:30:33
问题 Background I'm trying to put a layer on top of the current activity which would have explanation of what is going on on the current screen, similar to what occurs on contact+ app . I know there are some solutions for this (like the showCase library and the superToolTips library ) , and I also know that I can create a view and set it on top by adding it to the window of the activity , but I need put a whole dialog layer on top. Problem No matter what I try, each solution doesn't work the way I

Full Screen without navigation & status bars

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-03 01:13:49
I want to create a activity with full screen. Nothing on above like Notification Bar and nothing below like Home-Button etc.I am able to get this, but also wanted to remove below home-button bar: This is my code. <style name="MyScreen" parent="@style/Theme.AppCompat.Light"> <item name="windowNoTitle">true</item> <item name="windowActionBar">false</item> <item name="android:windowFullscreen">true</item> <item name="android:windowContentOverlay">@null</item> </style> What you need is called Immersive Full-Screen Mode . // This snippet hides the system bars. private void hideSystemUI() { // Set