use of com.trovebox.android.common.ui.widget.HorizontalListView.OnDownListener in project mobile-android by photo.
the class PhotoDetailsFragment method initThumbnailsList.
public void initThumbnailsList(View v) {
thumbnailsList = (HorizontalListView) v.findViewById(R.id.thumbs);
LayoutParams params = thumbnailsList.getLayoutParams();
params.height = mImageThumbWithBorderSize;
thumbnailsList.setLayoutParams(params);
thumbnailsList.setAdapter(thumbnailsAdapter);
thumbnailsList.setOnItemClickListener(new OnItemClickListener() {
@Override
public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
TrackerUtils.trackButtonClickEvent("thumb", PhotoDetailsFragment.this);
CommonUtils.debug(TAG, "Thumb clicked.");
detailsVisible = true;
mViewPager.setCurrentItem(position);
}
});
thumbnailsList.setOnDownListener(new OnDownListener() {
@Override
public void onDown(MotionEvent e) {
CommonUtils.debug(TAG, "Thumbnails List onDown");
detailsVisible = true;
}
});
}
Aggregations