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

How to use
NineGridViewClickAdapter
in
com.lzy.ninegrid.preview

Best Java code snippets using com.lzy.ninegrid.preview.NineGridViewClickAdapter (Showing top 3 results out of 315)

origin: jeasonlzy/NineGridView

public NineGridViewClickAdapter(Context context, List<ImageInfo> imageInfo) {
  super(context, imageInfo);
  statusHeight = getStatusHeight(context);
}
origin: jeasonlzy/NineGridView

public void bind(NewsContent item) {
  this.item = item;
  title.setText(item.getTitle());
  desc.setText(item.getDesc());
  pubDate.setText(item.getPubDate());
  source.setText(item.getSource());
  ArrayList<ImageInfo> imageInfo = new ArrayList<>();
  List<NewsImage> images = item.getImageurls();
  if (images != null) {
    for (NewsImage image : images) {
      ImageInfo info = new ImageInfo();
      info.setThumbnailUrl(image.getUrl());
      info.setBigImageUrl(image.getUrl());
      imageInfo.add(info);
    }
  }
  nineGrid.setAdapter(new NineGridViewClickAdapter(mContext, imageInfo));
  if (images != null && images.size() == 1) {
    nineGrid.setSingleImageRatio(images.get(0).getWidth() * 1.0f / images.get(0).getHeight());
  }
  itemView.setOnClickListener(this);
}
origin: jeasonlzy/NineGridView

holder.nineGrid.setAdapter(new NineGridViewClickAdapter(context, imageInfo));
com.lzy.ninegrid.previewNineGridViewClickAdapter

Javadoc

================================================ 作 者:廖子尧 版 本:1.0 创建日期:2016/3/21 描 述: 修订历史: ================================================

Most used methods

  • <init>
  • getStatusHeight
    获得状态栏的高度

Popular in Java

  • Finding current android device location
  • notifyDataSetChanged (ArrayAdapter)
  • onRequestPermissionsResult (Fragment)
  • getSystemService (Context)
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • System (java.lang)
    Provides access to system-related information and resources including standard input and output. Ena
  • Selector (java.nio.channels)
    A controller for the selection of SelectableChannel objects. Selectable channels can be registered w
  • DecimalFormat (java.text)
    A concrete subclass of NumberFormat that formats decimal numbers. It has a variety of features desig
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d
  • Top 25 Plugins for Webstorm
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