javafxports

JavaFX ScrollPane on Android - Too Slow

百般思念 提交于 2020-01-06 15:42:34
问题 I have just coded a simple example of using a scrolling pane in JavaFX. Just one ScrollPane placed in the Scene, and the ScrollPane holds a Label component with a large text. Using gradle I have uploaded the app on a Nexus 4 android device. As you can see from the video I have uploaded, the scrolling is way too slow. I am sure others have experienced this. Any suggestion of how this can be changed to the native speed scroll is really much appreciated. Source code of the app can be downloaded

javafxports how to call android native Media Player

隐身守侯 提交于 2019-12-27 15:57:53
问题 As the javafxports Media is not yet implemented I'm looking to use the Android Native MediaPlayer instead. Does anyone know how to do this. 回答1: If you have a look at the GoNative sample here (docs and code), you'll find a way to add Android native code to your JavaFX project. This is a simple example of adding android.media.MediaPlayer to a JavaFX project using the Gluon plugin. Based on a Single View project, let's add first an interface with the required audio method signatures: public

Build failure for JavaFX android app using the gluon mobile plugin

删除回忆录丶 提交于 2019-12-25 18:40:08
问题 I just started a new gluon mobile multi view project with FXML and tried to run it before changing anything (apart from updating the jfxmobile-plugin version in the build.gradle file from 1.2.0 to 1.3.2). it works fine on desktop, but when i try to run the androidinstall gradle task (with my android phone connected) it fails. It gives me the following error: :mergeClassesIntoJar :shrinkMultiDexComponents :createMainDexList :writeInputListFile [ant:java] Java Result: 1 :dex FAILED FAILURE:

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

How about intel native lib inside an android javafxport apk

情到浓时终转凉″ 提交于 2019-12-25 07:49:47
问题 I see that inside generated apk, in lib directory there are only armeabi native shared libs. I try to install it on intel-atom android emulator, but installing I have this error: adb install d:\Mypack.apk [100%] /data/local/tmp/Mypack.apk pkg: /data/local/tmp/Mypack.apk Failure [INSTALL_FAILED_NO_MATCHING_ABIS] In lib\armeaby there are these .so: libactivity.so libdecora_sse.so libglass_monocle.so libjavafx_font.so libjavafx_font_freetype.so libjavafx_iio.so libprism_common.so libprism_es2

javafxports 8.60.7 - using Back button on Android - none exit application

走远了吗. 提交于 2019-12-25 07:17:43
问题 Using only javafxports 8.60.7 for Android (without Gluon Mobile) - when you press the Back button, the application will not exit. How can I fix this? 回答1: While JavaFXPorts allows you running plain JavaFX on Android, there are some platform features not implemented by the OpenJFX project, like the back button you mention. Gluon Mobile deals properly with the back button both in Views and Layers, but if you are not using it, you will have to take care of it. This question already has an answer

Cannot install JavaFX app on Android x86_64

女生的网名这么多〃 提交于 2019-12-25 06:58:27
问题 I managed to build a JavaFX app using gradle and javafxport but the apk fail to install on my device. Here is my build.gradle: task wrapper(type: Wrapper) { gradleVersion = '2.4' } buildscript { repositories { jcenter() } dependencies { classpath 'org.javafxports:jfxmobile-plugin:1.0.0-b10' } } apply plugin: 'org.javafxports.jfxmobile' mainClassName = 'java.Main' repositories { jcenter() } jfxmobile { ios { forceLinkClasses = ['java.**.*'] } android { applicationPackage = 'com.superflush.java

Javafxports and SQLite -> open failed: EPERM (Operation not permitted)

允我心安 提交于 2019-12-24 17:48:04
问题 i m trying to code a simple sqlite code with javafxports. build.gradle: buildscript { repositories { jcenter() } dependencies { classpath 'org.javafxports:jfxmobile-plugin:1.0.6' } } apply plugin: 'org.javafxports.jfxmobile' repositories { jcenter() maven { url "https://oss.sonatype.org/content/repositories/snapshots/" } maven { url "https://oss.sonatype.org/content/repositories/releases" } } ext.CHARM_DOWN_VERSION = "1.0.0" dependencies{ compile 'org.xerial:sqlite-jdbc:3.8.11' compile "com

Gluon Charm down 3.0.0 - how to create cusom plugin

╄→尐↘猪︶ㄣ 提交于 2019-12-24 06:43:40
问题 How to create custom plugin in Gluon Charm down 3.0.0? Or something similar. I have package sk.ltorok.gluon.bluetooth.plugins and this package contains two classes BluetoothServiceFactory and BluetoothService and this is code: package sk.ltorok.gluon.bluetooth.plugins; import com.gluonhq.charm.down.DefaultServiceFactory; public class BluetoothServiceFactory extends DefaultServiceFactory<BluetoothService> { public BluetoothServiceFactory() { super(BluetoothService.class); } } ... and next

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.