本文整理汇总了Java中org.appcelerator.titanium.view.TiUIView.getLayoutParams方法的典型用法代码示例。如果您正苦于以下问题:Java TiUIView.getLayoutParams方法的具体用法?Java TiUIView.getLayoutParams怎么用?Java TiUIView.getLayoutParams使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.appcelerator.titanium.view.TiUIView
的用法示例。
在下文中一共展示了TiUIView.getLayoutParams方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: createView
import org.appcelerator.titanium.view.TiUIView; //导入方法依赖的package包/类
@Override
public TiUIView createView(Activity activity) {
TiUIView view = new TiView(this);
view.getLayoutParams().autoFillsHeight = true;
view.getLayoutParams().autoFillsWidth = true;
TiUIWebView webView = getWebView();
view.add(webView);
webView.getWebView().requestFocus(View.FOCUS_DOWN);
webView.getWebView().setOnTouchListener(new View.OnTouchListener() {
@Override
public boolean onTouch(View v, MotionEvent e) {
switch (e.getAction()) {
case MotionEvent.ACTION_DOWN:
case MotionEvent.ACTION_UP:
if (!v.hasFocus())
v.requestFocus();
break;
}
return false;
}
});
add(getProgressBar());
return view;
}
示例2: createView
import org.appcelerator.titanium.view.TiUIView; //导入方法依赖的package包/类
@Override
public TiUIView createView(Activity activity)
{
TiUIView view = new ExampleView(this);
view.getLayoutParams().autoFillsHeight = true;
view.getLayoutParams().autoFillsWidth = true;
return view;
}
示例3: createView
import org.appcelerator.titanium.view.TiUIView; //导入方法依赖的package包/类
@Override
public TiUIView createView(Activity activity) {
TiUIView flipview = new TiFlipView(this);
flipview.getLayoutParams().autoFillsHeight = true;
flipview.getLayoutParams().autoFillsWidth = true;
return flipview;
}
示例4: createView
import org.appcelerator.titanium.view.TiUIView; //导入方法依赖的package包/类
@Override
public TiUIView createView(Activity activity)
{
TiUIView view = new TiView(this);
view.getLayoutParams().autoFillsHeight = true;
view.getLayoutParams().autoFillsWidth = true;
return view;
}
示例5: createView
import org.appcelerator.titanium.view.TiUIView; //导入方法依赖的package包/类
@Override
public TiUIView createView(Activity activity)
{
TiUIView view = new ScannerUIView(this, activity);
view.getLayoutParams().autoFillsHeight = true;
view.getLayoutParams().autoFillsWidth = true;
return view;
}