




















2011-09-15 20:31 清炒白菜 阅读(943) 评论(0) 收藏 举报
LinearLayout rootLayout = (LinearLayout)findViewById(R.id.root_layout);
LinearLayout.LayoutParams params = new LinearLayout.LayoutParams(
LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT);
params.gravity = Gravity.RIGHT;
ImageView btnSend = new ImageView (this);
btnSend.setLayoutParams(params);
rootLayout.addView(btnSend);
http://stackoverflow.com/questions/4616445/align-imageview-in-linearlayout-by-code
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。