android-fullscreen

Android Popup Window Full Screen

喜欢而已 提交于 2019-12-22 04:42:58
问题 I want to create a popupwindow for fullscreen i've used the following : LayoutInflater inflater = (LayoutInflater) MainActivity.this.getSystemService(Context.LAYOUT_INFLATER_SERVICE); layoutt = inflater.inflate(R.layout.loginto,(ViewGroup) findViewById(R.id.window1)); pwindow = new PopupWindow(layoutt,LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT,true); This covers the action bar but not the full screen.. Also LayuotParams.WRAP_CONTENT is supported by api 11+ . i need the solution to

Android WebView html5 video force fullscreen

只愿长相守 提交于 2019-12-21 06:36:15
问题 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

Android - Making activity full screen with status bar on top of it

前提是你 提交于 2019-12-17 22:09:07
问题 I want to make my activity full screen with status bar on top of it like this picture: I have used this code in manifest inside activity tag: 'android:theme="@style/Theme.AppCompat.Light.NoActionBar"' But my view doesn't start from the status bar & it looks like this: How can I make my activity look like the first one? 回答1: I know that the guy asking the question may have found his own solution but for the people who are still looking for a solution this is a very simple solution but one

How to show imageView full screen on imageView click?

 ̄綄美尐妖づ 提交于 2019-12-17 10:22:39
问题 I am getting images from url and showing it on the imageView. This functionality is working properly. But I want that when I click on that image, then it must be full screen. So how to achieve this functionality? I know I am missing something. Please help me. Screenshot is attached. I want the same functionality in my app also. Here is my code, which I am trying on Image click: @Override public void onClick(View v) { if (isTouch1) { horizontalScrollView.setVisibility(View.GONE); isTouch1 =

About the Full Screen And No Titlebar from manifest

别来无恙 提交于 2019-12-17 09:39:29
问题 I want to set my application to full screen view. I got the idea to set it in an individual activity using FullScreen and NoTitlebar , but i want to set it in my Manifest XML file for the whole application not for each activity... Is this possible? Help me... Thanks. 回答1: To set your App or any individual activity display in Full Screen mode, insert the code <application android:icon="@drawable/icon" android:label="@string/app_name" android:theme="@android:style/Theme.NoTitleBar.Fullscreen">

Status Bar is white when entering immersive full screen mode

泪湿孤枕 提交于 2019-12-13 03:45:37
问题 I make a simple projet about immersive full screen mode according to Using Immersive Full-Screen Mode But first of all it perfect fine when I select Make Immersive button, app is entering immersion fullscreen mode. My problem is after selecting the Cancel Immersive button, and select Make Immsersive again. Although app is immersive mode, in the place of status bar is being white Here is my hide and show functions private void hideSystemUI() { // Set the IMMERSIVE flag. // Set the content to

Android - ViewPager fitsSystemWindows (fullscreen) not working

帅比萌擦擦* 提交于 2019-12-12 18:19:32
问题 I have a ViewPager in my layout: <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" android:id="@+id/main_content" android:layout_width="match_parent" android:layout_height="match_parent" android:fitsSystemWindows="true"> <android.support.v4.view.ViewPager android:id="@+id/container" android:layout_width="match_parent" android:fitsSystemWindows="true" android:layout_height="match_parent" /> </RelativeLayout> And I

How to make VideoView full screen

北城余情 提交于 2019-12-12 09:55:13
问题 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

Fullscreen switching

北战南征 提交于 2019-12-12 04:45:43
问题 I want to control a full screen of the phone with toggle button. I did it, but it works only once. How i can fix it? There is code: final ToggleButton toggle_button_for_full_screen = (ToggleButton) findViewById(R.id.toggleButton1); toggle_button_for_full_screen.setOnCheckedChangeListener(new OnCheckedChangeListener() { boolean variable_for_saving_toggle_button_status; @Override public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) { // TODO Auto-generated method stub if

android chrome fullscreen moves 25px down on rotate

Deadly 提交于 2019-12-12 03:26:15
问题 This javascript and HTML throws up a div with a red background. This outer div contains two inner divs: (i) A 25px high green bar set absolutely to the bottom of its parent (ii) A "toggleFullScreen" button. When the page loads, resize_page() is called to set the dimensions of the the red div fit either: (a) the browser client window or... (b) the device screen ...depending on the result of isDocumentInFullScreenMode() (cut-and-paste from https://developer.mozilla.org/en-US/docs/Web/API