The Custom Widgets Mock example shows the implementation and use of custom widgets using the Mock Framework.
The example implements a slider with the value displayed on the cursor, a drop-down list and a date/time picker.
This module contains the application part of the example.
- MICROEJ SDK 6.
- A VEE Port that contains:
- EDC-1.3 or higher.
This example has been tested on:
- Android Studio with MicroEJ plugin for Android Studio 0.1.2.
- STM32F7508-DK VEE Port 2.2.0.
Open the Example-Mock-Framework project in Android Studio.
Make sure to properly setup the VEE Port.
By default, the sample will use the STM32F7508-DK VEE Port.
In Android Studio:
- Open the Gradle tool window by clicking on the elephant icon on the right side,
- Expand the
custom-widgets-app>Tasks>microejlists, - Double-click on
runOnSimulator, - The application starts, the traces are visible in the Run view.
Alternative ways to run in simulation are described in the Run on Simulator documentation.
- The values displayed in the application can be set by using the mock's Slider, List and Timer Picker widgets.
All dependencies are retrieved transitively by Gradle.
N/A.
None.
Markdown
Copyright 2024 MicroEJ Corp. All rights reserved.
Use of this source code is governed by a BSD-style license that can be found with this software.
