I am developing an application, in which there is a requirement for showing results in a Bar charts. I have tried developing charts using AChartEngine and Google api and many other apis. But my Requirement is to draw multiple charts in one Activity. I followed this.Its working fine. But when i try to set the background image for the whole screen, Its not working
Can Anybody help me please
Just check this Bar Chart in Android With out any Built in jars. Here you can draw charts without any built in jars. Its just simple Graph creation using the concept of setting the height for the textview in a ListView.
I implemented this by using the Horizontal ListView. Here you have the two double arrays with equal size of elements. And the graph will adjust according to the orientation(Portrait and landscape).
If you want more charts in one activity, you can implement another Horizontal Listview in the layout.
I hope this will help you....
i can help you with paid Library which is nice
is called aiCharts (Bar Charts)
or you should refer GraphViewDemo it is also anice and free libraray to make bar graph
GraphViewDemo
I am writing a blog post on the subject. For one of my clients I created a compound view with an embedded bar chart. I did not find a simple and flexible library to achieve this, so I decided to go with custom views. To my surprise, it was simpler than I had expected: create a custom view that takes a colour and a percentage as attributes and use linear layouts to contain its instances, using layout_weight or a fixed layout_width to maintain proportions. I am very happy with the results.
Related
I want to create an android split pane which has a draggable vertical bar to resize both layouts on each side, what I thought to do is, change the weight of layouts dynamically with onTouch Listener, if anyone can suggest another method or a suitable library for this purpose. it'll be a huge help.
you can use this third party library
https://github.com/MobiDevelop/android-split-pane-layout
I'm using AchartEngine to create charts in android. But not able to show animations. For example : in pies chart i want initial rotations. In bar chart i want bar should grow from top to bottom.
Or is there any API or library which helps to build animated charts in android.
Please suggests or give any sample.
It is possible. You just need to modify the property you want to be modified and then call mChartView.repaint();
I am trying to make android application which display newsfeeds through web,I have done with all functionality, as I programmed well but not design well I am getting problem to desing UI of my Application,I donot have enough idea how to do this, whether I use relative layout,or linear layout etc, Would you suggest me the way how can I design UI in xml file, I would be very grateful to you
Use the UI Guidelines from Android Dev site. Take the trainings provided there if you require. Read the Quick Overview page as well to cover important aspects.
... and here is a resource listing page for further reference.
First you have to learn android layouts. Try with some examples on each layouts. People here can help you if you have any issue with layouts, but don't expect someone to design and code for you.
OK . I would suggest you to use these layouts for this screen
Use ActionbarActivity with menu items ( action icon)
Search view or Edit text
Image view
Text view
Vertical Linearlayout with Imageview and Text view
Grid view with text view items.
when using Achartengine for drawing a chart , the function of Achartengine library will just provide a intent, then you just need to jump to the screen pointing by the intent ; yes .... this can be work perfect .. However , the screen is so simple and the style of the chart screen is totally uncompatible with other screen's , and it seems that the Achartengine library doesn't provide any interface to change the chart UI ( not just the color of line or point), can any one tell me some idea to solve this issue...
any help will be appreciated!
bob
The AChartEngine APIs actually allow you create views as well. This means that you can have a chart together with other UI components under the same screen. There is example code in the AChartEngine demo showing you how to do this.
If you apply an application wide theme through your manifest you will inherit some of them. Things like background colors, etc. Otherwise you have to specify your text/axis/line colors through code when setting up the intent.
I have an upcoming project that requires me to make a custom layout. I have been looking all over for a way to complete this but with no success. The layout will have custom buttons that need to fit the screen and some other custom views. In other words I need it to look the same on all types of devices. So these custom views need to stretch to fit the screens. Something similar to the weather bug app but the buttons will be at the top and there won't be so many options. The buttons will fit the screen width wise. Basically the layout will not contain any stock UI.
I would like to have a book or tutorial that I could follow to help me out here.
check out this blog: http://blog.stylingandroid.com/
there are a lot of good examples for every kind of layout manager in Android.
Furthermore I strongly recommend to you to have a look in the Android's API Demo and source code.
For creating custom view, that's the best resource: http://developer.android.com/guide/topics/ui/custom-components.html
good luck!