android-fullscreen

Create a transparent dialog on top of activity

让人想犯罪 __ 提交于 2019-12-02 17:53:07
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 need it to work. in short , what I need is: full screen dialog. no change (not visual and not logical)

Using full screen Activity

梦想的初衷 提交于 2019-11-30 18:27:28
I am making a simple game and so far I've been using the Blank Activity. Now I want it to cover the entire screen, Will I need to Recode the entire thing using a FullScreen Activity? I've tried looking for something online but every thing i came across had adding this bit:​ requestWindowFeature(Window.FEATURE_NO_TITLE); getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN); Which causes the app to crash as soon as it is launched on a device. SO please if anyone can show me my error. Here is a link to the logcat output as well as the game

Full Screen Notification only showing as a Heads Up

自闭症网瘾萝莉.ら 提交于 2019-11-30 17:15:19
I have been banging my head against the table with this problem for 3 days now, please tell me where I have strayed. When I am getting an incoming VoIP call, I am trying to show a full screen notification, just like the PhoneApp does. I am ok with heads up, if the user is in an immersive activity. However, I am getting only a heads up notification, and never getting a full screen. I need to notification to ignore the lock screen as well. Here is what I am doing: String callJson = call.toJson(uber).toString(); uber.requestWakeState(UberVoice.WAKE_STATE_FULL); final Notification.Builder builder

Overlapping shadow effect remains on Navigation Drawer's NavigationView

我的梦境 提交于 2019-11-30 01:51:14
问题 I have refined the Navigation Drawer Activity project template of Android Studio, which uses Toolbar , v7.app.ActionBarDrawerToggle and NavigationView instead of the NavigationDrawerFragment (and layout/fragment_navigation_drawer.xml). It is perfectly working. Then, I go further. I have my Navigation Drawer project in immersive-sticky (full screen) mode. @Override public void onWindowFocusChanged(boolean hasFocus) { super.onWindowFocusChanged(hasFocus); if (hasFocus) { View decorationView =

android - requestWindowFeature(Window.FEATURE_NO_TITLE) exception

℡╲_俬逩灬. 提交于 2019-11-29 16:10:14
I am setting a specific activity full screen when the use hits a START button. In this case the showStopButton() is called . It's running fine. But if I insert requestWindowFeature(Window.FEATURE_NO_TITLE); then it crashes , stating that it should be call before adding content. How should I handle it to set NO_TITLE w the FULL_SCREEN ?? private void showStopButton(){ // requestWindowFeature(Window.FEATURE_NO_TITLE); getWindow().addFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN); getWindow().clearFlags(WindowManager.LayoutParams.FLAG_FORCE_NOT_FULLSCREEN); getWindow().findViewById(android.R

How to set activity to fullscreen mode in Android? [duplicate]

时间秒杀一切 提交于 2019-11-28 22:23:13
问题 This question already has answers here : Fullscreen Activity in Android? (28 answers) Closed 6 years ago . How to set full screen mode for activity in Android? I am using the following code to set full screen but it generates an error: Exception: android.util.AndroidRuntimeException: requestFeature() must be called before adding content. Code: getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN); requestWindowFeature(Window.FEATURE_NO

android - requestWindowFeature(Window.FEATURE_NO_TITLE) exception

对着背影说爱祢 提交于 2019-11-28 09:43:11
问题 I am setting a specific activity full screen when the use hits a START button. In this case the showStopButton() is called . It's running fine. But if I insert requestWindowFeature(Window.FEATURE_NO_TITLE); then it crashes , stating that it should be call before adding content. How should I handle it to set NO_TITLE w the FULL_SCREEN ?? private void showStopButton(){ // requestWindowFeature(Window.FEATURE_NO_TITLE); getWindow().addFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN); getWindow()

Android make a dialog appear in fullscreen

我只是一个虾纸丫 提交于 2019-11-28 06:23:05
I need the dialog to fill the screen except for some space at the top and the bottom. I've search for a solution but couldn't find one probably because I'm declaring it in an onClickListener . Can someone please give a solution? Activity code: sort.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { // TODO Auto-generated method stub AlertDialog.Builder sort = new AlertDialog.Builder(HomeScreen.this); // Get the layout inflater LayoutInflater inflater = HomeScreen.this.getLayoutInflater(); View sortView = inflater.inflate(R.layout.sort_layout, null); sort

full screen application android

被刻印的时光 ゝ 提交于 2019-11-27 22:16:21
i have two questions: one how can i run my application in full screen how video players run videos in full screen. i have tried alot and still struggling to achieve this but couldn't find a solution. the list of solution i found but they are not fulfilling my requirements this hides only the notification bar. requestWindowFeature(Window.FEATURE_NO_TITLE); getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,WindowManager.LayoutParams.FLAG_FULLSCREEN); also hides only the notification bar android:label="@string/app_name" android:theme="@android:style/Theme.NoTitleBar.Fullscreen"> it

setSystemUiVisibility(SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION) does not work

断了今生、忘了曾经 提交于 2019-11-27 20:17:44
I've been battling with setSystemUiVisibility() to try to hide the soft navigation buttons for a while (for a video player). It does not seem to work as advertised. Here is my code, inside a visible FrameLayout . void setNavVisibility(boolean visible) { int newVis = SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN; if (!visible) { newVis |= SYSTEM_UI_FLAG_LOW_PROFILE | SYSTEM_UI_FLAG_HIDE_NAVIGATION; } setSystemUiVisibility(newVis); } Slightly modified from the SDK example: void setNavVisibility(boolean visible) { int newVis = SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN | SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION | SYSTEM