Android Question is B4a APP resizable in Nougat (android 7?)

MbedAndroid

Active Member
Licensed User
Longtime User
I got my app compiled against SDK 25
I inserted following line in the manifest: (see below)
The app shows up in multiwindow mode, but only full screen, so you see only a part of it. Other part is hidden behind the second app in multiwindow mode.
Should it be possible to resize it? Or to scroll it so you can reach each field on the app?

AddPermission(android.permission.ACCESS_NETWORK_STATE)
SetApplicationAttribute(android:icon, "@drawable/icon")
SetApplicationAttribute(android:resizeableActivity, "true")
AddApplicationText(<meta-data android:name="android.max_aspect" android:value="10"/>)
SetApplicationAttribute(android:label, "$LABEL$")
SetApplicationAttribute(android:theme, "@android:style/Theme.Holo")
SetActivityAttribute("main", android:configChanges, "locale")
AddReceiverText(eu.dgconsulting.appupdating.newinst2,
 

DonManfred

Expert
Licensed User
Longtime User
https://developer.android.com/guide/topics/ui/multi-window.html
Layout attributes
With Android 7.0, the <layout> manifest element supports several attributes that affect how an activity behaves in multi-window mode:

android:defaultWidth
Default width of the activity when launched in freeform mode.
android:defaultHeight
Default height of the activity when launched in freeform mode.
android:gravity
Initial placement of the activity when launched in freeform mode. See the Gravity reference for suitable values.
android:minHeight, android:minWidth
Minimum height and minimum width for the activity in both split-screen and freeform modes. If the user moves the divider in split-screen mode to make an activity smaller than the specified minimum, the system crops the activity to the size the user requests.
For example, the following code shows how to specify an activity's default size and location, and its minimum size, when the activity is displayed in freeform mode:
Make sure to add this attributes to your activity too
<activity android:name=".MyActivity">
<layout android:defaultHeight="500dp"
android:defaultWidth="600dp"
android:gravity="top|end"
android:minHeight="450dp"
android:minWidth="300dp" />
</activity>

I don´t know if this is all. Never tried to build a resizeable app.
But i think it is worth to check.
 
Upvote 0

MbedAndroid

Active Member
Licensed User
Longtime User
i assume i need to insert this the manifest as follows

AddApplicationText(
<activity android:name=".MyActivity">
<layout android:defaultHeight="500dp"
android:defaultWidth="600dp"
android:gravity="top|end"
android:minHeight="450dp"
android:minWidth="300dp" />
</activity>
)
 
Upvote 0

MbedAndroid

Active Member
Licensed User
Longtime User
up to now partly success. The app resizes, but not the graphical panel. All menu's and some icons will resize.
All other items are fixed.
Need to investigate why
 
Upvote 0
Top