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

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

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

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: 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: youmu178/WheelPicker

if (index >= 0 && index < getItemsCount()) {
  if (convertView == null) {
    convertView = getView(itemResourceId, parent);
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;
}
kankan.wheel.widget.adaptersAbstractWheelTextAdaptergetView

Javadoc

Loads view from resources

Popular methods of AbstractWheelTextAdapter

  • 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

Popular in Java

  • Updating database using SQL prepared statement
  • runOnUiThread (Activity)
  • onCreateOptionsMenu (Activity)
  • setContentView (Activity)
  • PrintStream (java.io)
    Fake signature of an existing Java class.
  • Selector (java.nio.channels)
    A controller for the selection of SelectableChannel objects. Selectable channels can be registered w
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • ThreadPoolExecutor (java.util.concurrent)
    An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
  • ZipFile (java.util.zip)
    This class provides random read access to a zip file. You pay more to read the zip file's central di
  • JList (javax.swing)
  • Top Vim 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