2013年12月4日星期三

android4.0 how full screen

Found online methods are tried , no effect
getWindow () getDecorView () setSystemUiVisibility (View.SYSTEM_UI_FLAG_HIDE_NAVIGATION)..;
getWindow () getDecorView () setSystemUiVisibility (View.STATUS_BAR_HIDDEN)..;
getWindow () getDecorView () setSystemUiVisibility (View.SYSTEM_UI_FLAG_LOW_PROFILE)..;

The three also tried.

XML also tried setting

android: theme = "@ android: style / Theme.NoTitleBar.Fullscreen"
The 2.2 effective 4.0 completely ineffective .

have brothers Manga
------ Solution ----------------------------- ---------------
getWindow () getDecorView () setSystemUiVisibility (View.SYSTEM_UI_FLAG_SHOW_FULLSCREEN)..;
Try this , then do not go to XML inside the set , otherwise the situation will be invalid code
------ Solution ---------------- ----------------------------

    @Override
    public void onCreate(Bundle savedInstanceState) {
 
    
        super.onCreate(savedInstanceState);
        this.getWindow().setFlags(LayoutParams.FLAG_FULLSCREEN,  LayoutParams.FLAG_FULLSCREEN);         
        setContentView(R.layout.activity_main);

        .....
    }

------ Solution ------ --------------------------------------
estimate is you add the wrong place , added before setContentView (R.layout.xxx), added after it not ,
------ Solution ---------------------- ----------------------
http://blog.csdn.net/vrix/article/details/7823145

you try the last method
------ Solution ----------------------------- ---------------
not to rename SystemUI.apk, this will cause a lot of problems. Before I realized that renumbering source. The height of the StatusBar to 0 , so there is not any problem
------ Solution ------------------------ --------------------
refer http://bbs.imp3.net/thread-10603387-1-1.html
--- --- eference ---------------------------------------
yesterday did not ROOT,
then tried again today ROOT
or not.
Ladies and gentlemen, there is no other way
------ eference ---------------------------- -----------
getWindow () getDecorView () setSystemUiVisibility (View.STATUS_BAR_HIDDEN)..;
getWindow () getDecorView () setSystemUiVisibility (View.SYSTEM_UI_FLAG_LOW_PROFILE)..;
Both only temporarily hidden, but still black bars

getWindow () getDecorView () setSystemUiVisibility (View.SYSTEM_UI_FLAG_HIDE_NAVIGATION)..;
This completely ignore

getWindow () getDecorView () setSystemUiVisibility (View.SYSTEM_UI_FLAG_SHOW_FULLSCREEN)..;
This system is not publicly SYSTEM_UI_FLAG_SHOW_FULLSCREEN = 4,
getWindow () getDecorView () setSystemUiVisibility (4)..;
completely ignore


this.getWindow () setFlags (LayoutParams.FLAG_FULLSCREEN, LayoutParams.FLAG_FULLSCREEN).;
This completely ignoring
------ eference --------------------------------- ------
ROOT after I tried to SYSTEMUI.APK renamed
In this way, the system does not start after following SYSTEMBAR, but the situation appeared with VIDEOVIEW is a blank screen
help ah
------ eference ---------------------------------- -----
requestWindowFeature (Window.FEATURE_INDETERMINATE_PROGRESS);
requestWindowFeature (Window.FEATURE_NO_TITLE); Try again
added onCreate () method inside setContentView (R.layout.xxx) above ;
------ eference -------------- -------------------------
completely ignoring what is the meaning ?
------ eference --------------------------------------- < br>
programs completely ignore this line of code
------ eference ---------------------------- -----------


requestWindowFeature (Window.FEATURE_NO_TITLE);
This line can work.

but the following softkeys or in the


------ eference ------------------------------------ ---

this has been tried
------ eference -------------------------- -------------
this.getWindow () setFlags (LayoutParams.FLAG_FULLSCREEN, LayoutParams.FLAG_FULLSCREEN).;

You put in the position right? Seems to have put setContentView before
------ eference --------------------------------- ------

is
------ eference -------------------------- -------------
own top up
------ eference --------------------- ------------------
Thank you for your help
rename SYSTEMUI.APK is still used to solve
have time to study other methods it
first task
------ eference --------------------------------- ------



getWindow () getDecorView () setSystemUiVisibility (View.SYSTEM_UI_FLAG_SHOW_FULLSCREEN)..;
This system is not publicly SYSTEM_UI_FLAG_SHOW_FULLSCREEN = 4,
disclose the value of the 4.1 version
------ eference ---------------------------- -----------
go on top . . . The same question . . . All kinds are tested or not ah

------ eference ------------------------------------ ---
top. . . . . there is a need
------ eference ------------------------------------ ---
I would estimate the landlord is taking the tablet 's code , is that, no matter how flat is set up is that the status bar into a small point, such as : View pictures when playing videos or when I was test : On 4.0, if a source can be resolved:
solution is as follows :
1.PhoneWindowManager.java file
function setInitialDisplaySize () Set :
mStatusBarHeight = 0;
2. in systemui application code, for
TabletStatusBar.java files for :
mStatusBarView for processing, then solve all the problems :
mStatusBarView.setVisibility (View.VISIBLE); or
mStatusBarView.setVisibility (View.GONE);

------ eference ------------------------------------ ---
getWindow () getDecorView () setSystemUiVisibility (8)..;
can Oh
on 4.0

没有评论:

发表评论