[codenameone-discussions] Re: Using themes, setting Selected Foreground on TAB fails to change foreground color as defined in theme
Tabs only use the pressed/unselected states as they are normally toggle buttons. I'm not aware of an issue there but it could be, I'll need a test case in the issue tracker to see if there's an issue. -- You received this message because you are subscribed to the Google Groups "CodenameOne Discussions" group. To unsubscribe from this group and stop receiving emails from it, send an email to codenameone-discussions+unsubscr...@googlegroups.com. Visit this group at https://groups.google.com/group/codenameone-discussions. To view this discussion on the web visit https://groups.google.com/d/msgid/codenameone-discussions/76748574-188b-44a1-94ca-e254693d7833%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[codenameone-discussions] Re: How i Can Initialize Firebase in cn1?
Hi, firebase is added implicitly when using push notification build hints. -- You received this message because you are subscribed to the Google Groups "CodenameOne Discussions" group. To unsubscribe from this group and stop receiving emails from it, send an email to codenameone-discussions+unsubscr...@googlegroups.com. Visit this group at https://groups.google.com/group/codenameone-discussions. To view this discussion on the web visit https://groups.google.com/d/msgid/codenameone-discussions/c7d84342-7c13-409a-916a-a100461d4e67%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[codenameone-discussions] Re: getting Internal Application Error: Null Pointer Exception: Attempt to invoke virtual method on com.codenameone1.r.x
You need to look at the stack trace which you can see in the device log. -- You received this message because you are subscribed to the Google Groups "CodenameOne Discussions" group. To unsubscribe from this group and stop receiving emails from it, send an email to codenameone-discussions+unsubscr...@googlegroups.com. Visit this group at https://groups.google.com/group/codenameone-discussions. To view this discussion on the web visit https://groups.google.com/d/msgid/codenameone-discussions/c67380e3-5da9-4b6c-a771-1fa9ecc992d7%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[codenameone-discussions] Re: About the Chinese characters in the URL request
Did you use the methods I mentioned? You don't need to UTF encode. -- You received this message because you are subscribed to the Google Groups "CodenameOne Discussions" group. To unsubscribe from this group and stop receiving emails from it, send an email to codenameone-discussions+unsubscr...@googlegroups.com. Visit this group at https://groups.google.com/group/codenameone-discussions. To view this discussion on the web visit https://groups.google.com/d/msgid/codenameone-discussions/20710cd8-3996-44a8-8f6f-7bb41921e22c%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[codenameone-discussions] Re: SQLite and BLOB type
Flash is slow especially in write. RAM/CPU cache are faster and they deplete with larger files. Feel free to benchmark this on a device. If it's easy feel free to implement a PR. -- You received this message because you are subscribed to the Google Groups "CodenameOne Discussions" group. To unsubscribe from this group and stop receiving emails from it, send an email to codenameone-discussions+unsubscr...@googlegroups.com. Visit this group at https://groups.google.com/group/codenameone-discussions. To view this discussion on the web visit https://groups.google.com/d/msgid/codenameone-discussions/62d5b399-8fe1-48eb-aa33-2ca43328a72d%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[codenameone-discussions] Re: Using themes, setting Selected Foreground on TAB fails to change foreground color as defined in theme
Perhaps I did not explain my issue. I have used this Above example and set : "tb.setTabUIID(null);" as suggested. As I investigated further, it appears this method of overriding the Tabs class with SpanButton is where the Selected Tab does not seem to recognize that it is "selected" The UIID theme has selected, unselected and Pressed colors defined. Only the Unselected and Pressed states trigger events that conform to the defined color states. I have confirmed the Tabs class does indicate the correct index selected, (tb.getSelectedIndex()) just that the color defined in custom.setTextUIID("mpiTabMetal") ; is not utilized. Thoughts? On Wednesday, April 3, 2019 at 2:38:17 PM UTC-4, shop.servi...@gmail.com wrote: > > If you are experiencing an issue please mention the full platform your > issue applies to: > IDE: NetBeans/Eclipse/IDEA NetBeans 8.2 > Desktop OS Windows 10 Pro > Simulator Latest > Device PC, Android & IOS > > I am looking to set the selected Color of a Tab (Tabs Object) when > selected. > > I set the selected ForeGround color to say Green > > However the Selected Tab does not change color when selected so there is > no visual way to see which tab has been selected. > > I am using this model: > Tabs tb = new Tabs(Component.TOP) { > @Override > protected Component createTab(String title, Image icon) { > SpanButton custom = new SpanButton(title); > custom.setIcon(icon); > custom.setUIID("Container"); > custom.setTextUIID("Tab"); > custom.setIconPosition(BorderLayout.NORTH); > custom.setIconUIID("Tab"); > return custom; > } > @Override > protected void setTabSelectedIcon(Component tab, Image > icon) { > ((SpanButton) tab).setPressedIcon(icon); > } > protected void selectTab(Component tab) { > } > @Override > protected void bindTabActionListener(Component tab, > ActionListener l) { > ((SpanButton) tab).addActionListener(l); > } > }; > tb.setTabUIID(null); > > I have changed the custom.setUIID("Container"); to a theme where selected > foreground is green, where unselected is black > > As described in the documentation: > https://www.codenameone.com/blog/tip-customize-tabs-behavior.html > > Regards > > -- You received this message because you are subscribed to the Google Groups "CodenameOne Discussions" group. To unsubscribe from this group and stop receiving emails from it, send an email to codenameone-discussions+unsubscr...@googlegroups.com. Visit this group at https://groups.google.com/group/codenameone-discussions. To view this discussion on the web visit https://groups.google.com/d/msgid/codenameone-discussions/c72cc3ea-16b8-4853-95b8-0e159093850e%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[codenameone-discussions] How i Can Initialize Firebase in cn1?
hi, i need to add firebase to my cn1app with these attributes buildscript { // ... dependencies { // ... // Add the following line: classpath 'com.google.gms:google-services:4.2.0' // Google Services plugin } } apply plugin: 'com.android.application' android { // ... } // Add the following line to the bottom of the file: apply plugin: 'com.google.gms.google-services' // Google Play services Gradle plugin apply plugin: 'com.android.application' android { // ... } // Add the following line to the bottom of the file: apply plugin: 'com.google.gms.google-services' // Google Play services Gradle plugin apply plugin: 'com.android.application' android { // ... } // Add the following line to the bottom of the file: apply plugin: 'com.google.gms.google-services' // Google Play services Gradle plugin dependencies { // ... implementation 'com.google.firebase:firebase-core:16.0.8' // Getting a "Could not find" error? Make sure that you've added // Google's Maven repository to your root-level build.gradle file } i tried to add these hints android.gradlePlugin=apply plugin: 'com.google.gms.google-services'; android.gradleDep=compile 'com.google.gms:google-services:4.2.0'; implementation 'com.google.firebase:firebase-core:16.0.8'; but i get this error FAILURE: Build failed with an exception. * Where: Build file '/tmp/build812279652249867934xxx/MyApplication/build.gradle' line: 2 * What went wrong: A problem occurred evaluating root project 'MyApplication'. > Plugin with id 'com.google.gms.google-services' not found. how i can fix it? how i can add classpath dependencies in gradel project file? -- You received this message because you are subscribed to the Google Groups "CodenameOne Discussions" group. To unsubscribe from this group and stop receiving emails from it, send an email to codenameone-discussions+unsubscr...@googlegroups.com. Visit this group at https://groups.google.com/group/codenameone-discussions. To view this discussion on the web visit https://groups.google.com/d/msgid/codenameone-discussions/e360a54f-6a9b-40e2-a1a7-9f9fd968f3bc%40googlegroups.com. For more options, visit https://groups.google.com/d/optout. User-level: 1000 Request Args: - android.gradleDep=compile 'com.google.gms:google-services:4.2.0'; implementation 'com.google.firebase:firebase-core:16.0.8'; java.version=8 ios.newStorageLocation=true android.gradlePlugin=apply plugin: 'com.google.gms.google-services'; --- Executing: /home/ec2-user/android-sdk/tools/android create project --target android-27 --name MyApplication --path /tmp/build812279652249867934xxx/MyApplication --activity MyApplicationStub --package com.bedspeed.cn1init --gradle --gradle-version 3.0.1 Created directory /tmp/build812279652249867934xxx/MyApplication/src/main/java Created directory /tmp/build812279652249867934xxx/MyApplication/src/main/java/com/bedspeed/cn1init Added file /tmp/build812279652249867934xxx/MyApplication/src/main/java/com/bedspeed/cn1init/MyApplicationStub.java Created directory /tmp/build812279652249867934xxx/MyApplication/src/androidTest/java Created directory /tmp/build812279652249867934xxx/MyApplication/src/androidTest/java/com/bedspeed/cn1init Added file /tmp/build812279652249867934xxx/MyApplication/src/androidTest/java/com/bedspeed/cn1init/MyApplicationStubTest.java Created directory /tmp/build812279652249867934xxx/MyApplication/src/main/res Created directory /tmp/build812279652249867934xxx/MyApplication/src/main/res/values Added file /tmp/build812279652249867934xxx/MyApplication/src/main/res/values/strings.xml Created directory /tmp/build812279652249867934xxx/MyApplication/src/main/res/layout Added file /tmp/build812279652249867934xxx/MyApplication/src/main/res/layout/main.xml Created directory /tmp/build812279652249867934xxx/MyApplication/src/main/res/drawable-xhdpi Created directory /tmp/build812279652249867934xxx/MyApplication/src/main/res/drawable-hdpi Created directory /tmp/build812279652249867934xxx/MyApplication/src/main/res/drawable-mdpi Created directory /tmp/build812279652249867934xxx/MyApplication/src/main/res/drawable-ldpi Added file /tmp/build812279652249867934xxx/MyApplication/src/main/AndroidManifest.xml Added file /tmp/build812279652249867934xxx/MyApplication/build.gradle Created directory /tmp/build812279652249867934xxx/MyApplication/gradle/wrapper Process return code is 0 Executing: /home/ec2-user/jdk1.8.0_45/bin/java -Dretrolambda.inputDir=/tmp/build812279652249867934xxx/Classes -Dretrolambda.classpath=/tmp/build812279652249867934xxx/Classes:/tmp/temp6222423730603957483.jar -Dretrolambda.outputDir=/tmp/build812279652249867934xxx/Classes_retrolamda -Dretrolambda.bytecodeVersion=49 -Dretrolambda.defaultMethods=true -jar /tmp/temp4495235761897469049.jar Retrolambda 2.5.1 00:00 INFO: Bytecode version: 49 (Java 5) 00:00 INFO: Default methods: true 00:00 INFO: Input directory:
[codenameone-discussions] getting Internal Application Error: Null Pointer Exception: Attempt to invoke virtual method on com.codenameone1.r.x
If you are experiencing an issue please mention the full platform your issue applies to: IDE: NetBeans/Eclipse/IDEA NetBeans 8.2 Desktop OS Windows 10 Pro Simulator latest Device Android 6+ and IOS 12+ Just started getting this error on both Android and IOS this week. Have not trouble shot this to tell you the code path where this occurs as My App is not catching this and therefore I do not have a stack trace. Thoughts? -- You received this message because you are subscribed to the Google Groups "CodenameOne Discussions" group. To unsubscribe from this group and stop receiving emails from it, send an email to codenameone-discussions+unsubscr...@googlegroups.com. Visit this group at https://groups.google.com/group/codenameone-discussions. To view this discussion on the web visit https://groups.google.com/d/msgid/codenameone-discussions/79fc9db5-48a2-458b-9094-70aec21e97ba%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.