Full Screen ?

derez

Expert
Licensed User
Longtime User
I am probably missing something, please enlighten me:
Using Fullscreen True in the IDE for the activity, I get some more screensize when working with the designer, but when running the program - there is no difference to the case when fullscreen is false.
See the attached photo.
what is missing ?

Edit: found Klaus's answer to a similar question http://www.b4x.com/forum/basic4andr...ide-title-bar-notification-bar.html#post47591
Now, the designer looks the same as the top photo, the application is without the two bars. Why does the designer still show the activity bar ?
 

Attachments

  • fullscreen.jpg
    fullscreen.jpg
    61.2 KB · Views: 741
Last edited:

derez

Expert
Licensed User
Longtime User
Erel
There are two places to control the fullscreen:
1. in the IDE project - I can change to fullscreen and select to include\ eliminate the title.
2. in the designer - I can select activity fullscreen true or false.

If I select to eliminate everything I still get the activity header during the design phase.
 
Upvote 0

AgeBlackItalia

Member
Licensed User
Longtime User
Sorry - I know this is an old post - but it seemed to fit the bill.

I have a little galaxy mini that I tested my app on ( res 240-320 0.75 )

I have the view set up to those parameters
I have Title and fullscreen off in both IDE options and designer

Then I decided to test the app on a simulated (600-800) phone

It is still coming out as full screen.

Now while that would be acceptable on small phones, it is going to be show stopper on the larger beasts as my app wouldn't sit well on a full screen large phone or even a tablet (that would be horrendous)

What am I missing - how do I stop the app from expanding to full screen all of the time ?
 
Upvote 0

AgeBlackItalia

Member
Licensed User
Longtime User
Yes - top left corner - or anywhere really
As long as it doesn't fill the screen.

It's a small app with two or three boxes and buttons and is going the be swamped on a tab screen.
 
Upvote 0

AgeBlackItalia

Member
Licensed User
Longtime User
Yeh - that worked :)

Is there anything in the manifest I can change to make the background transparent - I have set the activity to drawablecolor with an alpha of 0
and get the screen shot below
(the app is in the right place - but the whole screen is black)
 

Attachments

  • apptest.jpg
    apptest.jpg
    22.4 KB · Views: 514
Upvote 0

MikaL

New Member
Licensed User
Longtime User
Android 4.0 - Full screen still let menu at bottom on screen.
Same code in tablet with android 2.3 put my program full screen...what Im missing=

Settings are Activity Properties
- Full screen = ON
- Include Title = off

I tested putting in manigesdt
supports-screens android:largeScreens="false" <= THIS WAS true
android:normalScreens="true"
android:smallScreens="true"
android:anyDensity="true"/>)

but no efect.

Basic4android is version 1.80.

EDIT:
Find answer from http://www.b4x.com/forum/basic4android-updates-questions/9610-full-screen-not-so-full-2.html
"is not possible to hide the toolbar at the bottom (android 3.0 and above)"

Question

- how can I disable users not to those menu-items - kiosk-style application...
 
Last edited:
Upvote 0

MikaL

New Member
Licensed User
Longtime User
Is there a way to use this kind of approach - cant find out how to hide the action bar...it is possibel to do somehow I think...?

"Controls for system UI visibility

Since the early days of Android, the system has managed a UI component known as the status bar, which resides at the top of handset devices to deliver information such as the carrier signal, time, notifications, and so on. Android 3.0 added the system bar for tablet devices, which resides at the bottom of the screen to provide system navigation controls (Home, Back, and so forth) and also an interface for elements traditionally provided by the status bar. In Android 4.0, the system provides a new type of system UI called the navigation bar. You might consider the navigation bar a re-tuned version of the system bar designed for handsets—it provides navigation controls for devices that don’t have hardware counterparts for navigating the system, but it leaves out the system bar's notification UI and setting controls. As such, a device that provides the navigation bar also has the status bar at the top.

To this day, you can hide the status bar on handsets using the FLAG_FULLSCREEN flag. In Android 4.0, the APIs that control the system bar’s visibility have been updated to better reflect the behavior of both the system bar and navigation bar:

The SYSTEM_UI_FLAG_LOW_PROFILE flag replaces the STATUS_BAR_HIDDEN flag. When set, this flag enables “low profile" mode for the system bar or navigation bar. Navigation buttons dim and other elements in the system bar also hide. Enabling this is useful for creating more immersive games without distraction for the system navigation buttons.
The SYSTEM_UI_FLAG_VISIBLE flag replaces the STATUS_BAR_VISIBLE flag to request the system bar or navigation bar be visible.
The SYSTEM_UI_FLAG_HIDE_NAVIGATION is a new flag that requests the navigation bar hide completely. Be aware that this works only for the navigation bar used by some handsets (it does not hide the system bar on tablets). The navigation bar returns to view as soon as the system receives user input. As such, this mode is useful primarily for video playback or other cases in which the whole screen is needed but user input is not required.

You can set each of these flags for the system bar and navigation bar by calling setSystemUiVisibility() on any view in your activity. The window manager combines (OR-together) all flags from all views in your window and apply them to the system UI as long as your window has input focus. When your window loses input focus (the user navigates away from your app, or a dialog appears), your flags cease to have effect. Similarly, if you remove those views from the view hierarchy their flags no longer apply.

To synchronize other events in your activity with visibility changes to the system UI (for example, hide the action bar or other UI controls when the system UI hides), you should register a View.OnSystemUiVisibilityChangeListener to be notified when the visibility of the system bar or navigation bar changes.

See the OverscanActivity class for a demonstration of different system UI options."

This was from Android 4.0 Platform | Android Developers
 
Upvote 0

BobsYourUncle

Member
Licensed User
Longtime User
Dim System UI Menu Bar

In theory you can use the following code in the Activity_Resume event:

B4X:
 Dim Obj1 As Reflector
 Obj1.Target = ImageView1
 Obj1.RunMethod2("setSystemUiVisibility", 1, "I")

However! It doesn't seem to work on my Galaxy Tab 4.0.3. If I call this code from a button, the menu dims for a fraction of a second, then shows again.

Anybody got any ideas?
 
Upvote 0
Top