Posts

Showing posts from December, 2014

Creating Simple Horizontal graph in android using android Weight property without any External Libraries

Image
Hi Coders , This a simple example for how to make simple graph in android without using any external library this a small part of the my xml file wich is used make the graph part,Hope you guys can do the rest.. the out put of the graph is given at the bottom.. Initially i set the weight of each text view to 50 dp this my java code  friend there might me some extra codes because its part of my project, so i cant show the entire project ...  The libary name Ion is used for getting the json data from the web,and according to that value graph is set TextView c1gtexy=(TextView )FindViewById(R.id.country1_bar); TextView c2gtexy=(TextView )FindViewById(R.id.country2_bar); TextView c1gtexy=(TextView )FindViewById(R.id.country1_bar); TextView c2gtexy=(TextView )FindViewById(R.id.country2_bar); public void getPredictions() { if (new NetworkData().isNetworkAvailable(this)) { Ion.with(getApplicationContext())