80,453
社区成员
![](https://csdnimg.cn/release/cmsfe/public/img/topic.427195d5.png)
![](https://csdnimg.cn/release/cmsfe/public/img/me.40a70ab0.png)
![](https://csdnimg.cn/release/cmsfe/public/img/task.87b52881.png)
![](https://csdnimg.cn/release/cmsfe/public/img/share-circle.3e0b7822.png)
<LinearLayout
android:id="@+id/ll_title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="horizontal">
</LinearLayout>
llTitle = (LinearLayout) findViewById(R.id.ll_title);
LayoutParams lp = new LayoutParams(LayoutParams.WRAP_CONTENT,
LayoutParams.WRAP_CONTENT);
lp.setMargins(10, 10, 10, 10);
for (int i = 0; i < Base.assessmenttitle.length; i++) {
bt = new Button(this);
bt.setBackgroundResource(R.drawable.recommended_title_default);
bt.setLayoutParams(lp);
bt.setTextSize(15);
bt.setText(Base.assessmenttitle[i]);
llTitle.addView(bt);
}