QML Theme and Component Library for Android
QuickAndroid will be splitted into multiple projects. One of the fork is AndroidNative.pri. It offer native Java components and system service in a more easy installable way. Site: https://github.com/benlau/androidnative.pri
System Requirements 1. Qt 5.4 or above
UI Components
ActionBar , Button , BottomSheet , Drawable , StateListDrawable Page , PageStack , MaterialShadow , Text, TextField, DropDownMenu, Paper TabBar, TabView, FloatingActionButton, ListItem, RaisedButton
Native Components
ImagePicker
Utility Components
InverseMouseArea, RectToRectMatrix, SystemDispatcher, MouseSensor
For user who are already using qpm from qpm.io
1) Run
qpm install
qpm install com.github.benlau.quickandroid
2) Include vendor/vendor.pri in your .pro file
You may skip this step if you are already using qpm
include(vendor/vendor.pri)
1) Download a release and bundle the folder within your source tree.
2) Add this line to your profile file(.pro):
include(quickandroid/quickandroid.pri) # You should modify the path by yourself
In order to get native components like image picker, you need to setup the Java environment according to this guide quickandroid/java-setup-guide.md at master · benlau/quickandroid
An example program is available in the folder of tests/quickandroidexample . You may build it by yourself or download the daily build from drone.io .
Remarks: Daily build for non-master branch may not be working.
If you have any question, please feel free to ask.
Automatic type convertion
| Qt | Java | |--------------|---------| | int | int | | bool | boolean | | QString | String | | QVariantList | List | | QVariantMap | Map |
Apache License 2.0
v0.1.7 1. Migrate to build with gradle 2. Upgrade min Qt version requirement to 5.5.1
v0.1.8 1. Upgrade min Qt version requirement to 5.6 2. Depreate to use A.dp as measurement unit
v1.0 1. Switch 1. NavigationDrawer 1. Slider
Wish 1. SwipeableListItem 2. AssetsManager 3. Haptic Feedback
Q. Looking for component that is not supported yet?
Please feel free to submit the request to our issue tracker. Moreover, you may take a look on other component library:
Q. Looking for iOS Native Component?
Q. Any library for ...?
Q. How to create splash screen for Android?
See Complete Guide to Making a Splash Screen for your QML Android Application — Medium
Libaries
Tools