gluon

create a polyline in gluon mapLayer

冷暖自知 提交于 2019-12-30 10:57:32
问题 Google maps API makes it possible to create a layer on the map containing a polyline linking points together. I have searched where I could to find an example or an implementation for this for gluon's mapLayer. Please advice 回答1: While there's no explicit API for drawing lines, polylines or polygons on top of a MapView , the MapLayer is a layer where you can draw any JavaFX Shape , providing you take care of scaling it to the map coordinates. For that, if you have a look at the PoiLayer class

How can I install “Android Support Library” to deploy a Gluon Mobile application to Android?

不羁的心 提交于 2019-12-28 02:13:07
问题 I would like to develop an Android app using the Gluon Mobile framework. I installed the Gluon plugin in my Netbeans IDE, created a sample project and built it successfully. Now I would like to deploy the app to an Android device. I'm referring to the online documentation [1]: http://docs.gluonhq.com/charm/4.2.0/#_getting_started As in [1], section "2.1.3. Android", I downloaded Android Studio 2.2.3 and installed the build-tools version 23.0.1 and the SDK Platform for API 21 from the Android

Google's Admob library integration import cannot be resolved in javafx

给你一囗甜甜゛ 提交于 2019-12-25 18:36:08
问题 I'm having some issues about Google's AdMob integration on my gluon project. I'm following the answer at this link: Gluon mobile cross-platform adsView At the step 3 i have this problems about imports: The import android cannot be resolved The import com.google cannot be resolved The import javafxports cannot be resolved I've already checked other answers about this kind of problems on other topics but noone of them solved my problem. Can anybody help me to solve the problem? Thanks in

Gluon View layout displaced after taking a picture

我们两清 提交于 2019-12-25 14:47:33
问题 When my app is resumed after taking a picture, the layout of the view is displaced: This effect only occurs when an input node, e.g. TextField was focused and the layout had to be adjusted in order to not make the keyboard cover the input node. Even more interessting, I couldn't reproduce the issue while selecting a picture. The error occurred when I updated Android 6.0 to 7.0 Edit: Every now and then, there is a similar error, when the keyboard is hidden (see link): 来源: https://stackoverflow

Javafx Gluon save XML File

不羁岁月 提交于 2019-12-24 14:34:26
问题 I Want to save a xml File on Android before I asked a questions how to Get a File now I'm stuck ;( I use Gluon(Netbeans plugin and did already everything what He said: JavaFXPorts(Gluon Plugin) Saving Files on Android Can you help me I want to save a XML File on Android, this is my Code yet: public static void loadConfig() throws JAXBException { if (ConfigFile.length() != 0) { JAXBContext jaxbContext = JAXBContext.newInstance(Info.class); Unmarshaller jaxbUnmarshaller = jaxbContext

How can I convert mouse pointer coordinates to a MapPoint using Gluon Maps 1.0.1?

扶醉桌前 提交于 2019-12-24 07:44:59
问题 Using Gluon Mobile 4 and Gluon Maps 1.0.1, I am displaying a map with a layer showing foot steps. When the users double clicks the mouse button, a new foot step is shown. This works great, but I currently need a workaround to convert from pointer coordinates (where the user clicked) to MapPoint s (needed for the layer). Here is how the mouse click is obtained: public MainView(String name) { super(name); MapView mapView = new MapView(); mapView.setZoom(18f); mapView.setCenter(NUREMBERG); layer

InvokeDynamic not supported when building for Android

若如初见. 提交于 2019-12-24 07:43:09
问题 I'm running Gluon/charm version 3.0.0. I added a Java8-compiled library into my JavaFX project (created via the IntelliJ plugin) and on iOS it works and builds as expected, but when executing the gradle tasks android or androidInstall I get this error back: [ant:java] Java Result: 1 :createMainDexList FAILED FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':createMainDexList'. > Exception in thread "main" com.android.dx.cf.iface.ParseException:

Workaround for creating Gluon projects without falling back to previous Buildships?

拜拜、爱过 提交于 2019-12-24 06:28:59
问题 I was trying to create a new (test) Gluon Single View Project to discover a compiling error with my team's iOS app. This was using the latest Buildships version 2x for Eclipse 4.7 Oxygen on Mac OS X 10.12.5. Got to the last step of creating the project and the Finish button was unresponsive. Eclipse Error Log (pictured) showed "Unhandled event loop exception." Thankfully, this SO question (Eclipse gluon new project does not finish) pointed me in the right direction, and I was able to: 1)

use Gluon plugins deploy an android apk then all of the chinese charactor is not disapear

本小妞迷上赌 提交于 2019-12-24 03:23:18
问题 I creat a gluon project use multi view project(FXML) ,then I just modify the buttons character to chinese . the project run under desktop it's no problem but using android->android to deploy an apk and when install on android phone or andorid simulator and run it all of the chinese charactor is not dispear! 回答1: By default Gluon Mobile uses Roboto font, which doesn't include Chinese characters. One easy way you can solve this issue is by setting any of the Android system fonts that do include

Keyboard covers TextField

狂风中的少年 提交于 2019-12-23 03:13:07
问题 As the center node of a gluon view I have a scrollpane which contains several textfields in a vbox. When one of these textfields becomes the focusowner and the keyboard shows up, the textfield doesn't get repositioned according to the layout of the keyboard, so it is left covered by the keyboard. I tried putting android:windowSoftInputMode="adjustResize" in the AndroidManifest, but without any success. As a workaround I translate the y-coordinates of the covered textfield to the visible area.