如何阻止RelativeLayout
在View
右边缘附近调整大小。 RelativeLayout.LayoutParams params = new RelativeLayout.LayoutParams(-2,-2);
params.leftMargin = posx;
params.topMargin = posy;
SomeView.setLayoutParams(params);
RelativeLayout layout = new RelativeLayout(Context);
layout.addView(SomeView);
的部分应该在屏幕之外。像这样的代码:
$keyword = ".in#.com#dot.com#1#2#3#4#5#6#7#8#9#one#two#three#four#five#Six#seven#eight#nine#ten#dot.in#dot in#";
$keyword = implode('|',explode('#',preg_quote($keyword)));
$str = "PHP is dot .com the amazon.in 123455454546 dot in scripting language of choice.";
$str = preg_replace("/($keyword)/i","<b>$0</b>",$str);
echo $str;