XLabels overlay each other in achartengite in Android 4.3 - android

I have a problem with overlay of x labels in achartengine TimeChart with time format => chart.setDateFormat("kk:mm:ss").
If I test in in Android 4.0.4 (Samsung galaxy tab) the x labels are visible in a way that they don't overlay each other.
But the problem is in Android 4.3 (HTC One - Full HD), where it seems that this filtering is not working, so there are too much of labels and they overlay each other and user can not read anything. It seems that it happens also in Y axis where the values are doubles.

OK.
So I found the solution. The problem was, that I'm using achartengine as an library project and I was building achartengine project in API 10, and my app was in API 14.
Because of that I had some strange behavior. When I changed achartengine project library to be build in API 14, the problem disappeared.
:)

Related

Android 10 not showing carpenter (🪚) emoji in TextView, Even though I used Android X Emoji lib

My testing device Android 10 (Nokia 6.1 plus) doesn't render a carpenter (🪚) emoji. It is showing fine in the Samsung devices. I did try few libraries like:
Android X Emoji Compact - https://developer.android.com/jetpack/androidx/releases/emoji#1.1.0
vanniktech/Emoji - https://github.com/vanniktech/Emoji#google
I am not sure what is the issue with only this emoji. It shows a not-supported kind of emoji rectangle. Please check out the screenshot here:
Not sure, If I am doing anything wrong here.

AndroidPlot PieChart not visible in listview

I'm using android plot in my app. I have different "widgets" composed into a listview. Some of them use a pie chart. For some reason those are not visible for Android < 5.0. For Android 5.0, 6.0 and 7.0 it seems ok though. Any ideas?
P.S
Already tried to play around with chart.invalidate() or chart.redraw().

canvas.drawText seems does not work properly in Android api >19

I have an issue that is making me crazy.
I created an Android library for a Custom gauge view of a car applicaction.
On this gauge view there's a scale with values drawn with function Canvas.drawText().
Everything was working fine when running whis view on devices with API 19 and 22, up to when last week I updated Android Studio 2.2.
Since that time the values on the scale are not properly written if I run it on a device with API >19. If I run it on device with API =< 19 everything is fine.
This is the test project that can be cloned from Github:
https://github.com/dequadelisonz/CarDashDemo.git
This is what I should correctly see (on device with API <=19):
And this is what I see on device with API >19:
As you can see in the 2 gauges there are only few digits in one of the two. All the other texts seems to be disappeared.
Hope someone can do the trick to fix this thing....
Thanks!
Fixed thanks to this post
https://stackoverflow.com/a/14989037/746068
It seems there is a bug on Android APIs > 15 so that text is not properly drawn on canvas.

Issues with SKMaps with certain devices

I have found two issues with SKMaps 3.0.0 with two of my Android devices, although they seem to not be issues on other devices (such as my tablet).
Devices include:
Samsung S6 Edge+ Android:6.0.1
Nexus 6 Android:5.1.1
EDIT:STILL BROKEN WITH 3.0.1 SKPolyline.setOutlineSize() seems to have a maximum size around 10. Setting it any higher does not affect the line size. I reported this to the skobbler team already and nothing has been done about it.
EDIT:FIXED WITH 3.0.1 SKMapSurfaceView.animateToLocation() seems to animate the location to the location to the bottom of the map, so that the center of the map is exactly half way above the spot I would have liked to animate to. Sometimes it works correctly, but this is rare.
If anyone has encountered these issues and has solutions please let me know...
The issued has been fixed with in our 3.0.2 release, now the line width and the outline width of the polyline can be set to any value between 0 and 100.
You can find the links for the 3.0.2 release candidate builds in our forum:
http://forum.skobbler.com/showthread.php/14515-3-0-2-release-candidate-builds
Regarding the first problem reported, it seems there's a bug in the SDK. Our dev team is handling the issue. The feature will be available in a future version of our SDK.

legend not working in afreechart in tablet android

I am using Afreechart to create charts for my android app. In emulator legend is visible but in android tablet legend is not showing up. Previously it was working properly but when i add some other activities to my app,its not working. am using afreechart-0.0.4.jar.my minSdkversion 3 and target is 15.
I found the solution for my question..
The thing that pointed me in the right direction was the fact that the graphs would behave perfectly on the emulator, independently from what version of Android the emulator was running. That made me think that maybe the hardware acceleration (which if I am not mistaken was introduced with HoneyComb) had something to do with this. A little more googling showed me that other graphics libraries had similar issues on ICS and JellyBean, so I tried switching off the hardware acceleration for the chart view:
chartView.setLayerType(View.LAYER_TYPE_SOFTWARE, null);
Now the graphs and the legends show up just as expected on any device. Hope it helps someone....

Categories

Resources