当前位置: 首页>>代码示例>>Java>>正文


Java ViewUtils.getItemAt方法代码示例

本文整理汇总了Java中com.comcast.freeflow.utils.ViewUtils.getItemAt方法的典型用法代码示例。如果您正苦于以下问题:Java ViewUtils.getItemAt方法的具体用法?Java ViewUtils.getItemAt怎么用?Java ViewUtils.getItemAt使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在com.comcast.freeflow.utils.ViewUtils的用法示例。


在下文中一共展示了ViewUtils.getItemAt方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: getItemAt

import com.comcast.freeflow.utils.ViewUtils; //导入方法依赖的package包/类
@Override
public FreeFlowItem getItemAt(float x, float y) {
	return (FreeFlowItem) ViewUtils.getItemAt(map, (int) x, (int) y);
}
 
开发者ID:weiwenqiang,项目名称:GitHub,代码行数:5,代码来源:ArtbookLayout.java

示例2: getItemAt

import com.comcast.freeflow.utils.ViewUtils; //导入方法依赖的package包/类
@Override
public FreeFlowItem getItemAt(float x, float y){
	return ViewUtils.getItemAt(proxies, (int)x, (int)y);
}
 
开发者ID:weiwenqiang,项目名称:GitHub,代码行数:5,代码来源:HLayout.java

示例3: getItemAt

import com.comcast.freeflow.utils.ViewUtils; //导入方法依赖的package包/类
@Override
public FreeFlowItem getItemAt(float x, float y) {
	return ViewUtils.getItemAt(proxies, (int) x, (int) y);
}
 
开发者ID:weiwenqiang,项目名称:GitHub,代码行数:5,代码来源:VLayout.java

示例4: touchDown

import com.comcast.freeflow.utils.ViewUtils; //导入方法依赖的package包/类
protected void touchDown(MotionEvent event) {
	if(isAnimatingChanges){
		layoutAnimator.onContainerTouchDown(event);
	}
	
	
	/*
	 * Recompute this just to be safe. TODO: We should optimize this to be
	 * only calculated when a data or layout change happens
	 */
	mScrollableHeight = mLayout.getContentHeight() - getHeight();
	mScrollableWidth = mLayout.getContentWidth() - getWidth();

	if (mTouchMode == TOUCH_MODE_FLING) {
		// Wait for some time to see if the user is just trying
		// to speed up the scroll
		postDelayed(new Runnable() {
			@Override
			public void run() {
				if (mTouchMode == TOUCH_MODE_DOWN) {
					if (mTouchMode == TOUCH_MODE_DOWN) {
						scroller.forceFinished(true);
					}
				}
			}
		}, FLYWHEEL_TIMEOUT);
	}

	beginTouchAt = ViewUtils.getItemAt(frames,
			(int) (viewPortX + event.getX()),
			(int) (viewPortY + event.getY()));

	deltaX = event.getX();
	deltaY = event.getY();

	mTouchMode = TOUCH_MODE_DOWN;

	if (mOnTouchModeChangedListener != null) {
		mOnTouchModeChangedListener.onTouchModeChanged(mTouchMode);
	}

	if (mPendingCheckForTap != null) {
		removeCallbacks(mPendingCheckForTap);
		mPendingCheckForLongPress = null;
	}

	if (beginTouchAt != null) {
		mPendingCheckForTap = new CheckForTap();
	}
	postDelayed(mPendingCheckForTap, ViewConfiguration.getTapTimeout());

}
 
开发者ID:weiwenqiang,项目名称:GitHub,代码行数:53,代码来源:FreeFlowContainer.java


注:本文中的com.comcast.freeflow.utils.ViewUtils.getItemAt方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。