I am looking for possible a gridview that I can add buttons to and it will automatically determine the best number of columns based on device.
Attached is what I'm doing now, its a listview with a row layout of 4 buttons. While is suites my phone it's not very effective on smaller or large devices.
This library requires some configuration. Please see the tutorial: http://www.b4x.com/forum/basic4android-getting-started-tutorials/7300-admob-tutorial-add-ads-your-application.html Reference: Basic4android - AdMob AdMob v2.00 - Based on Google Play Services. This version requires B4A v3.20...
www.b4x.com
Code:
Dim height As Int
If GetDeviceLayoutValues.ApproximateScreenSize < 6 Then
'phones
Root.LoadLayout("layoutPhone")
Else
'tablets
Root.LoadLayout("layoutTablet")
End If
The soon to be released versions of B4A, B4i and B4J include a new feature named: designer script extensions. The new feature allows calling B4X code from the visual designer scripts. Note that the B4X code is not executed at design time. I believe that over time this new feature, with a...