Tabnine Logo
AbstractWheelTextAdapter
Code IndexAdd Tabnine to your IDE (free)

How to use
AbstractWheelTextAdapter
in
kankan.wheel.widget.adapters

Best Java code snippets using kankan.wheel.widget.adapters.AbstractWheelTextAdapter (Showing top 7 results out of 315)

origin: wulianghuan/Cascade_Master

@Override
public View getEmptyItem(View convertView, ViewGroup parent) {
  if (convertView == null) {
    convertView = getView(emptyItemResourceId, parent);
  }
  if (emptyItemResourceId == TEXT_VIEW_ITEM_RESOURCE && convertView instanceof TextView) {
    configureTextView((TextView)convertView);
  }
    
  return convertView;
}
origin: babylikebird/YinYueTai

@Override
public View getItem(int index, View cachedView, ViewGroup parent) {
  View view = super.getItem(index, cachedView, parent);
  return view;
}
origin: wulianghuan/Cascade_Master

@Override
public View getItem(int index, View convertView, ViewGroup parent) {
  if (index >= 0 && index < getItemsCount()) {
    if (convertView == null) {
      convertView = getView(itemResourceId, parent);
    }
    TextView textView = getTextView(convertView, itemTextResourceId);
    if (textView != null) {
      CharSequence text = getItemText(index);
      if (text == null) {
        text = "";
      }
      textView.setText(text);

      if (itemResourceId == TEXT_VIEW_ITEM_RESOURCE) {
        configureTextView(textView);
      }
    }
    return convertView;
  }
  return null;
}
origin: youmu178/WheelPicker

@Override
public View getItem(int index, View convertView, ViewGroup parent) {
  if (index >= 0 && index < getItemsCount()) {
    if (convertView == null) {
      convertView = getView(itemResourceId, parent);
    TextView textView = getTextView(convertView, itemTextResourceId);
    if (!arrayList.contains(textView)) {
      arrayList.add(textView);
      CharSequence text = getItemText(index);
      if (text == null) {
        text = "";
        configureTextView(textView);
origin: youmu178/WheelPicker

@Override
public View getEmptyItem(View convertView, ViewGroup parent) {
  if (convertView == null) {
    convertView = getView(emptyItemResourceId, parent);
  }
  if (emptyItemResourceId == TEXT_VIEW_ITEM_RESOURCE && convertView instanceof TextView) {
    configureTextView((TextView) convertView);
  }
  return convertView;
}

origin: babylikebird/YinYueTai

@Override
public View getItem(int index, View cachedView, ViewGroup parent) {
  View view = super.getItem(index, cachedView, parent);
  return view;
}
origin: youmu178/WheelPicker

@Override
public View getItem(int index, View cachedView, ViewGroup parent) {
  View view = super.getItem(index, cachedView, parent);
  return view;
}
kankan.wheel.widget.adaptersAbstractWheelTextAdapter

Javadoc

Abstract wheel adapter provides common functionality for adapters.

Most used methods

  • configureTextView
    Configures text view. Is called for the TEXT_VIEW_ITEM_RESOURCE views.
  • getItem
  • getItemText
    Returns text for specified item
  • getItemsCount
  • getTextView
    Loads a text view from view
  • getView
    Loads view from resources

Popular in Java

  • Making http requests using okhttp
  • scheduleAtFixedRate (Timer)
  • requestLocationUpdates (LocationManager)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
  • JComboBox (javax.swing)
  • Top PhpStorm plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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