title: Android Add horizontalscrollbar and verticalscrollbar to a view dynamically
body: <p>HI, <br>I have a problem in dynamically adding horizontal and vertical scrollbar to a view . Basically the application zoom in and zoom out an image. I want to put horizontal and vertical scrollbar dynamically whenever view is out bounds. i.e. when zoom in is click and view is gonna out of bond, then it automatically add scrollbar. I am using these two methods but they didn't work correctly.  <br>
       &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
       setVerticalScrollBarEnabled(true);   <br>
       &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
      setHorizontalScrollBarEnabled(true);
  <br> 
  Does i have to put these methods inside onDraw(Canvas canvas) method of the view? 
  <br>
  Note: I am not creating view using xml file. I am creating view using a class which is inherited from View. <br>
  Thank you!!</p>