congrats Icon
New! Announcing our next generation AI code completions
Read here
Tabnine Logo
ArrayWheelAdapter.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
kankan.wheel.widget.adapters.ArrayWheelAdapter
constructor

Best Java code snippets using kankan.wheel.widget.adapters.ArrayWheelAdapter.<init> (Showing top 4 results out of 315)

origin: wulianghuan/Cascade_Master

/**
 * 根据当前的市,更新区WheelView的信息
 */
private void updateAreas() {
  int pCurrent = mViewCity.getCurrentItem();
  mCurrentCityName = mCitisDatasMap.get(mCurrentProviceName)[pCurrent];
  String[] areas = mDistrictDatasMap.get(mCurrentCityName);
  if (areas == null) {
    areas = new String[] { "" };
  }
  mViewDistrict.setViewAdapter(new ArrayWheelAdapter<String>(this, areas));
  mViewDistrict.setCurrentItem(0);
}
origin: wulianghuan/Cascade_Master

/**
 * 根据当前的省,更新市WheelView的信息
 */
private void updateCities() {
  int pCurrent = mViewProvince.getCurrentItem();
  mCurrentProviceName = mProvinceDatas[pCurrent];
  String[] cities = mCitisDatasMap.get(mCurrentProviceName);
  if (cities == null) {
    cities = new String[] { "" };
  }
  mViewCity.setViewAdapter(new ArrayWheelAdapter<String>(this, cities));
  mViewCity.setCurrentItem(0);
  updateAreas();
}
origin: IanDarwin/Android-Cookbook-Examples

  /**
   * Initializes one wheel
   * @param id
   * the wheel widget Id
   */
  private void initWheel(int id, String[] wheelMenu1) {
    WheelView wheel = (WheelView) findViewById(id);
    wheel.setViewAdapter(new ArrayWheelAdapter<String>(this, wheelMenu1));
    wheel.setVisibleItems(2);
    wheel.setCurrentItem(0);
    wheel.addChangingListener(changedListener);
    wheel.addScrollingListener(scrolledListener);
  }
}
origin: wulianghuan/Cascade_Master

private void setUpData() {
  initProvinceDatas();
  mViewProvince.setViewAdapter(new ArrayWheelAdapter<String>(MainActivity.this, mProvinceDatas));
  // 设置可见条目数量
  mViewProvince.setVisibleItems(7);
  mViewCity.setVisibleItems(7);
  mViewDistrict.setVisibleItems(7);
  updateCities();
  updateAreas();
}
kankan.wheel.widget.adaptersArrayWheelAdapter<init>

Javadoc

Constructor

Popular methods of ArrayWheelAdapter

    Popular in Java

    • Creating JSON documents from java classes using gson
    • findViewById (Activity)
    • addToBackStack (FragmentTransaction)
    • getOriginalFilename (MultipartFile)
      Return the original filename in the client's filesystem.This may contain path information depending
    • PrintStream (java.io)
      Fake signature of an existing Java class.
    • BigDecimal (java.math)
      An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
    • HashMap (java.util)
      HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
    • ResourceBundle (java.util)
      ResourceBundle is an abstract class which is the superclass of classes which provide Locale-specifi
    • Modifier (javassist)
      The Modifier class provides static methods and constants to decode class and member access modifiers
    • IOUtils (org.apache.commons.io)
      General IO stream manipulation utilities. This class provides static utility methods for input/outpu
    • 14 Best Plugins for Eclipse
    Tabnine Logo
    • Products

      Search for Java codeSearch for JavaScript code
    • IDE Plugins

      IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
    • Company

      About UsContact UsCareers
    • Resources

      FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
    Get Tabnine for your IDE now