The attached should fix it. I added a trigger to the original code based on a StackOverflow posting (
view.requestApplyInsets();). That sorted out the problem. Have tested it with Round and Square on the AVD. Have also added/changed the projects manifest:
AddManifestText(<uses-feature android:name="android.hardware.type.watch" />)
SetApplicationAttribute(android:theme, "@android:style/Theme.DeviceDefault")
1. Posting the B4A test project
2. Java Code
3. B4A library files
Have a great 2016!
AVD Manager setup for ROUND:
AVD Manager setup for RECTANGULAR:
ANDROID SDK Manager - you also need to install Android 4.4W.2 (API20)
These are the steps that I have followed to for eg set up the Round display of the AVD Manager:
In B4A:
1. Tools ----> Run AVD Manager
2. Once AVD Manager started you go to the tab that says
Device Definitions
3. Scroll down and look for:
Android Wear Round by Google
Screen 1.7", 320 x 320, Small hdpi
RAM: 512 MiB
4. Click on the
Create AVD... button at the right top of the AVD Manager
5. The AVD setup screen that I have posted in this thread will pop up.
6. Set it up as what I have shown in this thread (NB - we are busy doing
Round as per (3) above. So use the info of the pic that I have posted for
Round.)
7. Click on OK - a screen showing the setup should pop up
8. Click on OK on the screen in (7) above
9. It will automatically go back to the
Android Virtual Devices tab of the AVD Manager
10. Click
Start... (second button from the top on the AVD Manager)
11. Click
Launch on the Launch Options popup that you should see now.
12. A new popup will display
Starting Android Emulator
13. Emulator screen will be generated and will be black except for visible round markings in background and solid black square in foreground
14. Just leave it now to do whatever it is busy doing
15. A white screen should appear in the emulator with the words
Just a minute... and a green round progress indicator displaying
16. Leave it - eventually it will say
Paired... with a tick mark (like a tick mark when you got an answer correct in a test while in school)
17. Once (16) shows then click on
Connect in the B4A logs tab. It should come back with
LogCat connected to: emulator-5554
18. Run the B4A project.
19 It should show the pic I have posted with the emulator Screen showing
ROUND, Width = 320, Height = 320