Android : Show detail on hover or click on bar of Graph View Android

on Saturday, September 6, 2014


Trying to show value of label on hover of bar in Graph View. There is a method called



setOnHoverListener(new View.OnHoverListener() {
@Override
public boolean onHover(View v, MotionEvent event) {
switch (event.getAction()) {
case MotionEvent.ACTION_HOVER_ENTER:

break;
case MotionEvent.ACTION_HOVER_MOVE:

break;
case MotionEvent.ACTION_HOVER_EXIT:

break;
}
return false;
}
});


But the method works on graph view . I need to implemnet on each bar of Graph represented by distinguish labels and values. I have 1000 of bars in graph whose data is fetched from server.Implementing graph view in android o.s. using GraphView-3.1.3.jar . Also implemented achartengine library but not found any solution to this .



Implementation on click or hover on a single bar


0 comments:

Post a Comment