阻止在RelativeLayout右边缘附近调整视图大小

时间:2015-09-17 08:17:55

标签: android view

如何阻止RelativeLayoutView右边缘附近调整大小。 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;

0 个答案:

没有答案