SwipeView类似桌面的滑动界面(3)
来源:未知 责任编辑:责任编辑 发表时间:2013-12-06 08:44 点击:次
return false;
}
@Override
public void requestChildFocus(View child, View focused)
{
//this will now pass trackball events down to onRequestFocusInDescendants
requestFocus();
}
/**
* {@inheritDoc}
*/
@Override
public void addView(View child)
{
this.addView(child,-1);
}
/**
* {@inheritDoc}
*/
@Override
public void addView (View child, int index)
{
ViewGroup.LayoutParams params;
if(child.getLayoutParams()==null)
{
params = new LayoutParams(mPageWidth, LayoutParams.FILL_PARENT);
}
else
{
params = child.getLayoutParams();
params.width = mPageWidth;
}
this.addView(child, index, params);
}
/**
* {@inheritDoc}
*/
@Override
public void addView (View child, ViewGroup.LayoutParams params)
{
params.width = mPageWidth;
this.addView (child, -1, params);
}
/**
* {@inheritDoc}
*/
@Override
public void addView (View child, int index, ViewGroup.LayoutParams params)
{
最新推荐更多>>>
- 发表评论
-
- 最新评论 更多>>