title: Using android-color-picker in a fragment?
body: <p>I am fairly new to android development and want to use the Android-Color_picker "AmbilWarna" inside a fragment. I am getting the error:</p>
  
  <pre><code>The constructor AmbilWarnaDialog(HomeFragment, int, new OnAmbilWarnaListener(){}) is undefined.
  </code></pre>
  
  <p>Is this because I am using a Fragment instead of a Fragment activity The tutorial I was using uses an Activity.</p>
  
  <p>I am using the following tutorial:
  <a href="http://wptrafficanalyzer.in/blog/android-color-picker-application-using-ambilwarna-color-picker-library/" rel="nofollow">http://wptrafficanalyzer.in/blog/android-color-picker-application-using-ambilwarna-color-picker-library/</a>   </p>
  
  <pre><code>public class HomeFragment extends SherlockFragment implements TabListener {
  
  
  private View homeView;
  
  @Override
  public View onCreateView(LayoutInflater inflater, final ViewGroup container,
          Bundle savedInstanceState) {
  
      homeView = inflater.inflate(R.layout.homefragment, container, false);
  
      Button sColorBtn = (Button) homeView.findViewById(R.id.button2);
      OnClickListener clickListener = new OnClickListener() {
  
          @Override
          public void onClick(View v) {
              colorpicker();
          }
      };
  
      // Setting click event listener for the button
      sColorBtn.setOnClickListener(clickListener);
      return sColorBtn;
  }
  
  public void colorpicker() {
      //     initialColor is the initially-selected color to be shown in the rectangle on the left of the arrow.
      //     for example, 0xff000000 is black, 0xff0000ff is blue. Please be aware of the initial 0xff which is the alpha.
  
      AmbilWarnaDialog dialog = new AmbilWarnaDialog(this, 0xff0000ff, new OnAmbilWarnaListener() {
  
          // Executes, when user click Cancel button
          @Override
          public void onCancel(AmbilWarnaDialog dialog){
          }
  
          // Executes, when user click OK button
          @Override
          public void onOk(AmbilWarnaDialog dialog, int color) {
              Toast.makeText(getBaseContext(), "Selected Color : " + color, Toast.LENGTH_LONG).show();
          }
      });
      dialog.show();
  }
  </code></pre>