gluon

under gluon project how to get the Android assets folder

风格不统一 提交于 2019-12-12 04:39:01
问题 I had creat a gluon project ,then I put some folders and files under assets folder(Android) and I want to read the files in application,now how do I can read the assets folder ? or how do I get the android Context or AssetManager ? under gluon project there is no Activity class or any class extends Activity.I had read all of the gluonMobile API, javaFXports API and developer docs, there is no help! Dose anyone can help me? I nearly got crazy! 回答1: FXActivity which you obtain via FXActivity

Gluon Mobile Share Button Implementation

僤鯓⒐⒋嵵緔 提交于 2019-12-12 03:46:40
问题 Does Gluon Mobile have any guidance on implementing a share button? My goal is to be able to share a string containing a link to different apps on the phone. At the moment, I need this only for the iOS implementation. I was able to find this link that provides a simple way to do this in Objective-C: - (IBAction)shareButton:(UIBarButtonItem *)sender { NSString *textToShare = @"Look at this awesome website for aspiring iOS Developers!"; NSURL *myWebsite = [NSURL URLWithString:@"http://www

Gluon 4.x.x artifacts not in the Nexus repo?

江枫思渺然 提交于 2019-12-12 01:43:34
问题 Upgrading my project to Gluon Charm 4.3.0 involved updating the dependencies in build.gradle. According to the docs I need to upgrade all 4 charm dependencies; the base and the three platform related ones. http://docs.gluonhq.com/charm/4.3.0/#_adding_gluon_mobile_to_an_existing_project When I try to compile I get an "could not resolve all dependencies", and indeed, if I take a peek in the Nexus repo mentioned in the documentation I do see a 4.3.0 for the base, but all the platform based

Gluon mobile app NavigationDrawer back button issue

我的梦境 提交于 2019-12-11 13:39:33
问题 I'm working with a multiple view project with FXML, generated by the Gluon plugin for IntelliJ. When I navigate to the secondary view, coming from the primary view, and I push the back button on my physical android device, the view changes back to the primary view. This is normal behavior. The problem is that the NavigationDrawer stays on the secondary view. You can observe this because you won't be able to navigate to the secondary view. When you push secondary in the navigation pane,

Textfield focus issue on javafxports 8.60.7

若如初见. 提交于 2019-12-11 13:03:02
问题 After switching to javafxports version 8.60.7 I encounter some strange bevahiour on TextField . When I tap on a textfield the keyboard shows up, but the textfield doesn't get focused and I am not able to input any character. When I switch the keyboard type (from SwiftKey to Google or vice versa) it works, but only on the selected textfield. I am still not able to focus any other textField. Furthermore after selecting a textField, the view seems to freeze. I can not navigate back, or show

Gluon Application can't load FXML on ios when I using H2 database as embedded

假装没事ソ 提交于 2019-12-11 11:37:09
问题 I have create Gluon mobile application that using H2 database as embedded mode. It working fine on Window,Mac,Android. But it unluckily it not working on iOS simulator (The fxml can't load). If I comment the code to load Driver, the UI will load properly. Code Load Driver //load the driver class try { Class.forName(DBCONFIG.DB_DRIVER).newInstance(); } catch (ClassNotFoundException e) { System.out.println("class not found"); e.printStackTrace(); } catch (IllegalAccessException e) { System.out

Gluon AppBar keep in the view

徘徊边缘 提交于 2019-12-11 08:10:07
问题 I'm trying to build a message window with App Bar on the top This screen consist of Gluon App Bar on the top and VBox in bottom which has rest of the element shown in the screen. Issue is when i click on the text area to enter text the App Bar goes out of scope. Is there a way I can set App Bar to be always on top? 回答1: If you are deploying your app on Android, the TextField and TextArea controls include a built-in check: when those input controls get focused, if required the scene is moved

Creating Custom Android Notifications using Gluon-Mobile

╄→гoц情女王★ 提交于 2019-12-11 08:08:27
问题 I have created Android Notification using Gluon-Mobile using localNotification. But,this time I want to create custom Android Native Notification. I have been referring this Go Native docs. So,far I have Tried this Below .I have placed this code under android/java/com/sample package, but it's not working. package com.sample; import android.app.Activity; import android.app.NotificationManager; import android.content.Context; import javafxports.android.FXActivity; import android.app

How to use Gluon folders of iOS, android, desktop (And main) that make up a Gluon project?

99封情书 提交于 2019-12-11 06:14:54
问题 I am trying to set up my Gluon project by putting platform/os specific code in their respective folder (The automatically created project set up in a newly created Gluon project). However no matter what task I do with Gradle it end up taking what is the Main folder. Lets say I want to have a com.gluonhq.charm.glisten.mvc.View with a javafx.scene.control.Button in it - and have it labeled differently by stating from which folder it came from (main, android, desktop or iOS). How would that be