I’m trying to implement the following chart using Androidplot, and I’m wondering how to set the major and minor grids as shown in the picture with Androidplot? Is it using setLinesPerRangeLabel to achieve it? I’m new to Androidplot so some sample code will be of great help, thanks!
Try playing around with setRangeStep() and setLinesPerRangeLabel() (use setDomainStep() & setLinesPerDomainLabel() for domain)
For the step I use StepMode.SUBDIVIDE. When the setLinesPer[Range/Domain]Label is high enough you should start to see the thicker graph lines.
Related
Could anyone lead me in the right direction to build something like the following image? Specifically the bottom part where the contact images appear.
How could I make the table view horizontal and have an arc?
Looking for answers for both ios and android.
Thanks!
There is a great library out there for this on iOS: https://github.com/nicklockwood/iCarousel
Inverted wheel is what you want, you'll need to tweak it a little but that is easily achieved by looking at the demo project.
This should help you on the Android side:
Basically, you get some images from artwork, then you write code with some trigonometry in it.
This will get you started: android-rotaryknob-view
There is a link at the bottom with more detailed code and explanation.
I am developing an Android app and am a bit stuck on how I go about creating the layout I'm after. I said spotify-like (website not app) as I dont want the parallax effect. It's actually closer to http://www.poormet.com/.
What I have tested so far is a RelativeLayout with an ImageView and Listview (with transparent dividers) within it. This layout shows the image in the background between rows which is a step in the right direction. The issue is I'm at a loss as to how to get the images to change smoothly depending on what listrows are on screen.
Also, if I want to replicate the text over the images like poormet example mentioned above, then it seems to me I am going to have to have alternating transparent and not transparent rows.
Am I on the right track or am I approaching this problem the wrong way?
Any guidance will be greatly appreciated!!!
(also, please let me know if what I have described doesn't make sense - more than happy to clarify)
I am trying to create a Piechart in my android app. this link using achartengine helped. But I still have a problem. I want to display the % of distribution in the pie chart itself
Thanks in advance.
I was also looking for the same. But see the answer given by Dan here. I suppose he is the guy behind AChartEngine and he says that the names of legends and Labels cannot be different.
Update:
Although what I did to over come this was, that I made the legend size as 0. Then in the label I set the label and the computed percentage together. So, in your case, the labels would turn out to be:
Mg+ : 23%
Na+ : 45% ...so on.
Update:2
This issue for present in version 1.0.0 and has been solved in the latest version 1.1.0-rc2 version. You can download it from here. Now as #Dan says it here, we can have different Legend and Label values. We can also use:
renderer.setDisplayValues(true);
to displays the percentage distribution in the pie chart itself.
In order to get the details in % form, you can use the following :
renderer.setChartValuesFormat(NumberFormat.getPercentInstance());
I have got some example of horizontal but with renderscript, i want to run it in android 2.2 hence can't use renderscript.
So, Please help, how to make a vertical carousal or how to start.
At last I got it,needed a lot of hard work and patience but at last my vertical carousal is ready and to without any render script.
I have done it by using coverflow it is horizontal but can be made vertical, it need changes in certain methods in sort change all right to bottom and left to top, but it need huge patience. It's a very good code and one can easily understand how to use it.
Thanks. enjoy..
I have a quiz of sorts. There are a couple images at the top. What I'd like to do is when a wrong answer is given, rumble one if the images for a second or two and have it settle back into position. Just a small shake in the X and Y. Is this doable? The images are in the same layout as the rest. I don't know if that matters.
Thanks for the help
There's a demo of this in the API Demos, under Views/Animation/Shake.
You can probably use a simple View animation to alter the position as outlined at http://developer.android.com/guide/topics/graphics/view-animation.html.