本文整理汇总了Java中com.github.obsessive.library.pla.PLAAdapterView类的典型用法代码示例。如果您正苦于以下问题:Java PLAAdapterView类的具体用法?Java PLAAdapterView怎么用?Java PLAAdapterView使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
PLAAdapterView类属于com.github.obsessive.library.pla包,在下文中一共展示了PLAAdapterView类的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: onItemClick
import com.github.obsessive.library.pla.PLAAdapterView; //导入依赖的package包/类
@Override
public void onItemClick(PLAAdapterView<?> parent, View view, int position, long id) {
Rect frame = new Rect();
getActivity().getWindow().getDecorView().getWindowVisibleDisplayFrame(frame);
int statusBarHeight = frame.top;
int[] location = new int[2];
view.getLocationOnScreen(location);
location[1] += statusBarHeight;
int width = view.getWidth();
int height = view.getHeight();
if (null != mListViewAdapter) {
if (position >= 0 && position < mListViewAdapter.getDataList().size()) {
mImagesListPresenter.onItemClickListener(position,
mListViewAdapter.getDataList().get(position),
location[0],
location[1],
width,
height);
}
}
}